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_buffer - rw_buffer (
pssh.clients.reader.ConcurrentRWBuffer
) – Read/write buffer
-
reader
¶
-
rw_buffer
¶
- reader (
-
class
pssh.output.
HostOutput
(host, channel, stdin, client, alias=None, exception=None, encoding='utf-8', read_timeout=None, buffers=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
orNone
) – Exception from host if any - read_timeout (float) – Timeout in seconds for reading from buffers.
- buffers (
HostOutputBuffers
) – Host buffer data.
-
alias
¶
-
buffers
¶
-
channel
¶
-
client
¶
-
encoding
¶
-
exception
¶
-
exit_code
¶
-
host
¶
-
read_timeout
¶
-
stderr
¶
-
stdin
¶
-
stdout
¶
-
class
pssh.output.
HostOutputBuffers
(stdout, stderr)¶ Parameters: - stdout (
BufferData
) – Stdout data - stderr (
BufferData
) – Stderr data
-
stderr
¶
-
stdout
¶
- stdout (