Host Output

Output module of ParallelSSH

class pssh.output.BufferData(reader, rw_buffer)
Parameters:
reader
rw_buffer
class pssh.output.HostOutput(host, channel, stdin, client, alias=None, exception=None, encoding='utf-8', read_timeout=None, buffers=None, fully_qualified_command=None)

Host output

Parameters:
  • host (str) – Host name output is for

  • channel (socket.socket compatible object) – SSH channel used for command execution

  • stdin (file()-like object) – Standard input buffer

  • client (pssh.clients.base.single.BaseSSHClient or None.) – SSHClient output is coming from.

  • alias (str) – Host alias.

  • exception (Exception or None) – Exception from host if any

  • read_timeout (float) – Timeout in seconds for reading from buffers.

  • buffers (HostOutputBuffers) – Host buffer data.

  • fully_qualified_command (bytes) – The fully qualified command after any per-host argument substitution and including command string substitution required for executing via sudo or user-switching via ‘su -c’, using any specified shell on run_command and conversion to bytes via provided encoding. The fully_qualified_command is therefor a bytes object that can be saved or otherwise used anywhere bytes can be used without conversion. Use fully_qualified_command.decode(encoding) to decode with the encoding used for the equivalent host output object. Always None on HostOutput from interactive shells.

alias
buffers
channel
client
encoding
exception
property exit_code
fully_qualified_command
host
read_timeout
property stderr
stdin
property stdout
class pssh.output.HostOutputBuffers(stdout, stderr)
Parameters:
stderr
stdout