Host Output
Output module of ParallelSSH
- class pssh.output.BufferData(reader, rw_buffer)
- Parameters:
reader (
gevent.Greenlet) – Greenlet reading data from channel and writing to rw_bufferrw_buffer (
pssh.clients.reader.ConcurrentRWBuffer) – Read/write buffer
- 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.socketcompatible object) – SSH channel used for command executionstdin (
file()-like object) – Standard input bufferclient (
pssh.clients.base.single.BaseSSHClientor None.) – SSHClient output is coming from.alias (str) – Host alias.
exception (
ExceptionorNone) – Exception from host if anyread_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:
stdout (
BufferData) – Stdout datastderr (
BufferData) – Stderr data
- stderr
- stdout