Double hop and returns a command execution result
(hostip, port, username, password, linklocalip, command, hypervisor=None)
| 239 | return result |
| 240 | |
| 241 | def get_process_status(hostip, port, username, password, linklocalip, command, hypervisor=None): |
| 242 | """Double hop and returns a command execution result""" |
| 243 | |
| 244 | ssh_command = _configure_ssh_credentials(hypervisor) |
| 245 | |
| 246 | ssh_command = ssh_command +\ |
| 247 | "-oUserKnownHostsFile=/dev/null -p 3922 %s %s" % ( |
| 248 | linklocalip, |
| 249 | command) |
| 250 | timeout = _configure_timeout(hypervisor) |
| 251 | |
| 252 | result = _execute_ssh_command(hostip, port, username, password, ssh_command) |
| 253 | return result |
| 254 | |
| 255 | |
| 256 | def isAlmostEqual(first_digit, second_digit, range=0): |