WorkerSsh¶
-
class
ClusterShell.Worker.Ssh.
WorkerSsh
(nodes, handler, timeout=None, **kwargs)¶ ClusterShell ssh-based worker Class.
- Remote Shell (ssh) usage example:
>>> worker = WorkerSsh(nodeset, handler=MyEventHandler(), ... timeout=30, command="/bin/hostname") >>> task.schedule(worker) # schedule worker for execution >>> task.resume() # run
- Remote Copy (scp) usage example:
>>> worker = WorkerSsh(nodeset, handler=MyEventHandler(), ... timeout=30, source="/etc/my.conf", ... dest="/etc/my.conf") >>> task.schedule(worker) # schedule worker for execution >>> task.resume() # run
-
class
ClusterShell.Worker.Ssh.
SshClient
(node, command, worker, stderr, timeout, autoclose=False, rank=None)¶ Ssh EngineClient.
-
class
ClusterShell.Worker.Ssh.
ScpClient
(node, source, dest, worker, stderr, timeout, autoclose, preserve, reverse, rank=None)¶ Scp EngineClient.