Run Command
Execute a shell command on a remote node
Signature
def run_command(node_id: str, command: str) -> ExecutionResponseWrapperParameters
node_id(str) – target nodecommand(str) – command to execute
Returns
ExecutionResponseWrapper with:
output– stdout texterror– stderr text (if any)exit_code– process exit codesuccess– boolean convenience (exit_code == 0and no error)execution_time_seconds– time taken
Example
result = client.run_command(node_id, "ls -la")
print(result.output)Exceptions
MissingCredentialsExceptionInternalServerErrorException