4.1. capture via jumpssh execution module
- class nettoolkit.capture.executions.Captures_via_Jump_Server(server: str = '', server_login_username: str = '', server_private_key_file: str = None, server_login_password: str = None, devices: list = <factory>, device_username: str = '', device_password: str = '', cmds_list_dict: dict = <factory>, output_path: str = '.')[source]
Bases:
Multi_Execution,Validate- cmds_list_dict: dict
- device_password: str = ''
- device_username: str = ''
- devices: list
- execute(device)[source]
abstract class method, to be executed for each item in self.items
- Parameters:
hn (str, int, float) – individual items to be executed for each
- output_path: str = '.'
- server: str = ''
- server_login_password: str = None
- server_login_username: str = ''
- server_private_key_file: str = None
- nettoolkit.capture.executions.capture_by_jump_server_login(server, server_login_username, server_private_key_file=None, server_login_password=None, devices=[], devices_auth={'en': '', 'pw': '', 'un': ''}, cmds_list_dict={}, output_path='.', append=False, missing_only=False, cumulative=True, max_connections=100, tablefmt='rounded_outline', failed_retry_count=2, interactive_cmd_report=True, final_cmd_report=False, standard_output=True)[source]
4.2. capture via jumpssh jump_server module
- class nettoolkit.capture.jump_server.JumpServer(server: str = '', server_login_username: str = '', server_private_key_file: str = None, server_login_password: str = None)[source]
Bases:
object- server: str = ''
- server_login_password: str = None
- server_login_username: str = ''
- server_private_key_file: str = None
4.3. capture via jumpssh device module
- class nettoolkit.capture.device.Device(jump_host: <built-in function any>, device: str, device_username: str, device_password: str = '', output_path: str = '', cumulative: bool = False, interactive_cmd_report: bool = False, final_cmd_report: bool = False, failed_retry_count: int = 2, append: bool = False, missing_only: bool = False, standard_output: bool = True, cmds_list_dict: dict = <factory>)[source]
Bases:
object- append: bool = False
- cmds_list_dict: dict
- cumulative: bool = False
- device: str
- device_password: str = ''
- device_types = {'arista': ('arista', 'eos'), 'cisco': ('cisco', 'ios'), 'juniper': ('juniper', 'junos')}
- device_username: str
- failed_retry_count: int = 2
- final_cmd_report: bool = False
- interactive_cmd_report: bool = False
- jump_host: any
- missing_only: bool = False
- output_path: str = ''
- remark_char_dict = {'arista': '!', 'cisco': '!', 'juniper': '#'}
- standard_output: bool = True
4.4. capture via jumpssh commands module
- class nettoolkit.capture.commands.Command(cmd: str, device: str, device_session: <built-in function any>, device_type: str, output_file: str, missing_only: bool = False, output_file_read: str = '', remark_char: str = '', standard_output: bool = True, interactive_cmd_report: bool = False, final_cmd_report: bool = False, failed_retry_count: int = 2)[source]
Bases:
object- property banner_lines
- cmd: str
- device: str
- device_session: any
- device_type: str
- property double_line
- failed_retry_count: int = 2
- final_cmd_report: bool = False
- interactive_cmd_report: bool = False
- missing_only: bool = False
- output_file: str
- output_file_read: str = ''
- remark_char: str = ''
- standard_output: bool = True
- class nettoolkit.capture.commands.Commands(list_of_cmds: list = <factory>, device: str = '', device_session: <built-in function any> = '', device_type: str = '', output_file: str = '', remark_char: str = '', standard_output: bool = True, missing_only: bool = False, cumulative: bool = False, interactive_cmd_report: bool = False, final_cmd_report: bool = False, failed_retry_count: int = 2)[source]
Bases:
object- cumulative: bool = False
- device: str = ''
- device_session: any = ''
- device_type: str = ''
- failed_retry_count: int = 2
- final_cmd_report: bool = False
- interactive_cmd_report: bool = False
- list_of_cmds: list
- missing_only: bool = False
- output_file: str = ''
- remark_char: str = ''
- standard_output: bool = True