3.3. command line processing module
- class nettoolkit.capture_it.clp.CLP(conn, parsed_output)[source]
Bases:
objectparent class for Command processing
- Parameters:
conn (conn) – connection object
parsed_output (bool) – Need to parse output and generate excel or not.
- check_config_authorization(cmd)[source]
check if given command is allowed or not on this device.
- Parameters:
cmd (str) – command to be executed
- Returns:
True/False
- Return type:
bool
- cmd_capture(cmd, cumulative=False, banner=False, del_old_file=False)[source]
start command capture for given command
- Parameters:
cmd (str) – command to be executed
cumulative (bool, optional) – True/False/both. Defaults to False.
banner (bool, optional) – set a banner property to object if given. Defaults to False.
- Returns:
[description]
- Return type:
[type]