WorkerPdsh
- class ClusterShell.Worker.Pdsh.WorkerPdsh(nodes, handler, timeout=None, **kwargs)[source]
ClusterShell pdsh-based worker Class.
- Remote Shell (pdsh) usage example:
>>> worker = WorkerPdsh(nodeset, handler=MyEventHandler(), ... timeout=30, command="/bin/hostname") >>> task.schedule(worker) # schedule worker for execution >>> task.resume() # run
- Remote Copy (pdcp) usage example:
>>> worker = WorkerPdsh(nodeset, handler=MyEventHandler(), ... timeout=30, source="/etc/my.conf", ... dest="/etc/my.conf") >>> task.schedule(worker) # schedule worker for execution >>> task.resume() # run
- Known limitations:
write() is not supported by WorkerPdsh
return codes == 0 are not guaranteed when a timeout is used (rc > 0 are fine)
- COPY_CLASS
alias of
PdcpClient
- SHELL_CLASS
alias of
PdshClient
- class ClusterShell.Worker.Pdsh.PdshClient(node, command, worker, stderr, timeout, autoclose=False, rank=None)[source]
EngineClient which run 'pdsh'