10-18-2016 02:31 PM
Has anyone gotten a python paramiko script to connect and execute a command against a grid member?
My script can connect to sshd on Linux or other network appliances.
10-21-2016 01:40 PM
I havent tried this yet, however we are looking at using ansible modules that are already out in the Galaxy repo to interact with our grid
3 weeks ago - last edited 3 weeks ago
import paramiko ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.connect(hostname='192.168.10.10', username='ubuntu', key_filename='/home/ubuntu/.ssh/mykey.pem') stdin, stdout, stderr = ssh.exec_command('lsb_release -a') for line in stdout.read().splitlines(): print(line) ssh.close()
Using this for executing remote Bash Commands, can't rework it to grid member for last 2 days. Maybe someone can help here? don't want to start the new branch through.
best site to buy research paper