3.2. captures module

class nettoolkit.capture_it.captures.Captures(conn, cumulative=False, parsed_output=False, standard_output=False, append_capture=False)[source]

Bases: CLP

Capture output

Parameters:
  • dtype (str) – device type

  • conn (conn) – connection object

  • cmds (dict, set, list, tuple) – set of commands or commands dictionary

  • cumulative (bool, optional) – True/False/both. Defaults to False.

  • parsed_output (bool) – Need to parse output and generate excel or not.

Inherits:

CLP (class): Command Line Processing class

add_exec_logs()[source]

adds commands execution logs tab to DataFrame

grp_cmd_capture(cmds)[source]

grep the command captures for each commands Unauthorized command will halt execution.

Parameters:

cmds (set, list, tuple) – set of commands

Returns:

None

Return type:

None

write_facts()[source]

writes commands facts in to excel tab