5.1. _captures module
- class capture_it._captures.Captures(dtype, conn, path, visual_progress, logger_list, cumulative=False, parsed_output=False)
Bases:
CLP
Capture output
- Parameters:
dtype (str) – device type
conn (conn) – connection object
cmds (dict, set, list, tuple) – set of commands or commands dictionary
path (str) – path to store the captured output
visual_progress (int) – scale 0 to 10. 0 being no output, 10 all.
logger (list) – device logging messages list
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()
adds commands execution logs tab to DataFrame
- grp_cmd_capture(cmds)
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()
writes commands facts in to excel tab