tobiko.shell

tobiko.shell.find

exception tobiko.shell.find.FilesNotFound(message=None, **properties)

Bases: TobikoException

tobiko.shell.grep

exception tobiko.shell.grep.NoMatchingLinesFound(message=None, **properties)

Bases: TobikoException

tobiko.shell.ifconfig

exception tobiko.shell.ifconfig.IfconfigError(message=None, **properties)

Bases: TobikoException

tobiko.shell.ip

exception tobiko.shell.ip.IpError(message=None, **properties)

Bases: TobikoException

tobiko.shell.ss

class tobiko.shell.ss.SockData

Bases: dict

A single socket information parsed from output of ss command line tool

Output of ss command line tool should be parsed and stored in the dict with keys are items of the SockHeader object. In most of the cases it should contain the following keys:

  • protocol (optional)

  • state (optional)

  • recv_q

  • send_q

  • local_addr (IP or filename)

  • local_port

  • remote_addr (IP or filename)

  • remote_port

  • process (list of processes names)

class tobiko.shell.ss.SockHeader(header_str: str)

Bases: object

class tobiko.shell.ss.SockLine

Bases: str

Single line from the output of ss command line tool

It should match with the corresponding table header that is presented by object of SockHeader class

exception tobiko.shell.ss.SocketLookupError(message=None, **properties)

Bases: TobikoException