3.1. capture_summary module

class nettoolkit.capture_it.cap_summary.LogSummary(c, split_cisco_juniper=True, on_screen_display=False, write_to=None)[source]

Bases: object

class generating summary report for the commands log/raw capture DEPRYCATED…

class nettoolkit.capture_it.cap_summary.SummaryDisplay(d)[source]

Bases: object

class nettoolkit.capture_it.cap_summary.TableReport(all_cmds: dict, cmd_exec_logs_all: dict, host_vs_ips: dict, device_type_all: dict)[source]

Bases: object

class defining methods and properties to write the execution log summary report to excel

Parameters:
  • all_cmds (dict)

  • cmd_exec_logs_all (dict)

  • host_vs_ips (dict)

  • device_type_all (dict)

all_cmds: dict
cmd_exec_logs_all: dict
device_type_all: dict
get_updated_cmd_exec_log()[source]

get the updated command execution log in DFD format to write to excel

Parameters:

transpose (bool) – transpose the output in excel

host_vs_ips: dict
show(tablefmt='rounded_outline')[source]
split_by_device_types()[source]

split the device based on its device types

write_to(file)[source]

writes execution log DFD to provided excel file.

Parameters:

file (str) – excel file name with full path