[python] Improving get_project_dirs method of SSHClient subclass

I noticed I did not have enough testing on my code for getting directories under base project directory. This is part of the code snippet of my SSHClient subclass: The problem The method gets all things under the base directory that is files and directories, that is because I have sliced and diced too much … Continue reading [python] Improving get_project_dirs method of SSHClient subclass

[python]Paramiko’s SSHClient

Paramiko SSH client I wrote a sub class from paramiko in order add on functionality to assist myself to work with Ansible AWX 9.2.0 (dockerless version). The subclass works with my CentOS which hosts the Ansible AWX, the purpose is to use the SSHClient class to download and upload playbooks, check the existence of project … Continue reading [python]Paramiko’s SSHClient

[python]Example script on Cisco router

This is an example script based on this https://github.com/davidbombal/pythonvideos/blob/master/paramiko-pythonssh1.py It works almost like pexpect, however need to have a privilege 15 account to make the SSHClient work, as there is no input to accept enable secret. I was trying to figure out the feasibility of using API to push the configuration, I find the send … Continue reading [python]Example script on Cisco router