MCPcopy Create free account
hub / github.com/apache/cloudstack / execute_command_in_host

Function execute_command_in_host

tools/marvin/marvin/lib/utils.py:236–239  ·  view source on GitHub ↗
(hostip, port, username, password, command, hypervisor=None)

Source from the content-addressed store, hash-verified

234 raise KeyError("Please provide the marvin configuration file with credentials to your hosts")
235
236def execute_command_in_host(hostip, port, username, password, command, hypervisor=None):
237 timeout = _configure_timeout(hypervisor)
238 result = _execute_ssh_command(hostip, port, username, password, command)
239 return result
240
241def get_process_status(hostip, port, username, password, linklocalip, command, hypervisor=None):
242 """Double hop and returns a command execution result"""

Callers 2

verify_network_rulesMethod · 0.90
test_01_connectivityMethod · 0.90

Calls 2

_configure_timeoutFunction · 0.85
_execute_ssh_commandFunction · 0.85

Tested by 2

verify_network_rulesMethod · 0.72
test_01_connectivityMethod · 0.72