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)
Host output
- Parameters:
host (str) – Host name output is for
channel (
socket.socket
compatible object) – SSH channel used for command executionstdin (
file()
-like object) – Standard input bufferclient (
pssh.clients.base.single.BaseSSHClient
or None.) – SSHClient output is coming from.alias (str) – Host alias.
exception (
Exception
orNone
) – Exception from host if anyread_timeout (float) – Timeout in seconds for reading from buffers.
buffers (
HostOutputBuffers
) – Host buffer data.
- alias
- buffers
- channel
- client
- encoding
- exception
- property exit_code
- host
- read_timeout
- property stderr
- stdin
- property stdout
- class pssh.output.HostOutputBuffers(stdout, stderr)
- Parameters:
stdout (
BufferData
) – Stdout datastderr (
BufferData
) – Stderr data
- stderr
- stdout