Napalm ios driver出力結果まとめ
自分用に使いそうなnapalmのios driverの出力結果の見え方をまとめます
get_config
{'candidate': '',
'running': 'Building configuration...\n'
'\n'
'Current configuration : 42458 bytes\n'
'!\n'
'! Last configuration change at 10:40:24 JST Fri Aug 23 2019 by '
'cisco\n'
'!\n'
'version 16.10\n'
'no service pad\n'
'service timestamps debug datetime msec\n'
'service timestamps log datetime msec show-timezone year\n'
'service password-encryption\n'
'service call-home\n'
'no platform punt-keepalive disable-kernel-core\n'
'!\n'
---------------------------略------------------------
get_environment
{'cpu': {0: {'%usage': 1.0}},
'fans': {'invalid': {'status': True}},
'memory': {'available_ram': 1455760728, 'used_ram': 320752788},
'power': {'invalid': {'capacity': -1.0, 'output': -1.0, 'status': True}},
'temperature': {'hotspot': {'is_alert': False,
'is_critical': False,
'temperature': 50.0},
'inlet': {'is_alert': False,
'is_critical': False,
'temperature': 29.0}}}
get_facts
{'fqdn': '***.not set',
'hostname': '***',
'interface_list': ['Vlan1',
'Vlan100',
'Vlan111',
'GigabitEthernet0/0',
'GigabitEthernet1/0/1',
'GigabitEthernet1/0/2',
---------------------------略------------------------
'Te1/1/6',
'Te1/1/7',
'Te1/1/8',
'Fo1/1/1',
'Fo1/1/2',
'TwentyFiveGigE1/1/1',
'TwentyFiveGigE1/1/2',
'Loopback0'],
'model': 'C9300-24P',
'os_version': 'Catalyst L3 Switch Software (CAT9K_IOSXE), Version 16.10.1, '
'RELEASE SOFTWARE (fc3)',
'serial_number': '***',
'uptime': 2070720,
'vendor': 'Cisco'}
get_interfaces(抜粋)
{'FortyGigabitEthernet1/1/1': {'description': '',
'is_enabled': True,
'is_up': False,
'last_flapped': -1.0,
'mac_address': 'AA:BB:CC:DD:EE:FF',
'speed': 40000},
'FortyGigabitEthernet1/1/2': {'description': '',
'is_enabled': True,
'is_up': False,
'last_flapped': -1.0,
'mac_address': 'AA:BB:CC:DD:EE:FF',
'speed': 40000},
'GigabitEthernet0/0': {'description': '',
'is_enabled': True,
'is_up': True,
'last_flapped': -1.0,
'mac_address': 'AA:BB:CC:DD:EE:FF',
'speed': 1000},
'GigabitEthernet1/0/1': {'description': '',
'is_enabled': True,
'is_up': True,
'last_flapped': -1.0,
'mac_address': 'AA:BB:CC:DD:EE:FF',
'speed': 1000},
get_interfaces_counters(抜粋)
{'FortyGigabitEthernet1/1/1': {'rx_broadcast_packets': 0,
'rx_discards': -1,
'rx_errors': 0,
'rx_multicast_packets': 0,
'rx_octets': 0,
'rx_unicast_packets': 0,
'tx_broadcast_packets': -1,
'tx_discards': -1,
'tx_errors': 0,
'tx_multicast_packets': -1,
'tx_octets': 0,
'tx_unicast_packets': 0},
'FortyGigabitEthernet1/1/2': {'rx_broadcast_packets': 0,
'rx_discards': -1,
'rx_errors': 0,
'rx_multicast_packets': 0,
'rx_octets': 0,
'rx_unicast_packets': 0,
'tx_broadcast_packets': -1,
'tx_discards': -1,
'tx_errors': 0,
'tx_multicast_packets': -1,
'tx_octets': 0,
'tx_unicast_packets': 0},
'GigabitEthernet0/0': {'rx_broadcast_packets': 0,
'rx_discards': 0,
'rx_errors': 0,
'rx_multicast_packets': 0,
'rx_octets': 771644371,
'rx_unicast_packets': 10630095,
'tx_broadcast_packets': -1,
'tx_discards': 0,
'tx_errors': 0,
'tx_multicast_packets': -1,
'tx_octets': 4934823218,
'tx_unicast_packets': 15095440},
get_interfaces_ip
{'GigabitEthernet0/0': {'ipv4': {'1.1.1.1': {'prefix_length': 31}}},
'GigabitEthernet1/0/1': {'ipv4': {'2.2.2.2': {'prefix_length': 31}}},
'Loopback0': {'ipv4': {'3.3.3.3': {'prefix_length': 32}}},
'Vlan100': {'ipv4': {'192.168.1.1': {'prefix_length': 29}}},
'Vlan111': {'ipv4': {'4.4.4.4': {'prefix_length': 24}}}}
get_lldp_neighbors
{'GigabitEthernet1/0/1': [{'hostname': '4503E', 'port': 'Gi2/3'}]}
get_lldp_neighbors_detail
{'GigabitEthernet1/0/1': [{'parent_interface': '',
'remote_chassis_id': '****.****.****',
'remote_port': 'Gi2/3',
'remote_port_description': '*** Cat9300-01 ***',
'remote_system_capab': ['bridge', 'router'],
'remote_system_description': 'Cisco IOS Software, '
'IOS-XE Software, '
'Catalyst 4500 L3 '
'Switch Software '
'(cat4500e-UNIVERSALK9-M), '
'Version 03.08.04.E '
'RELEASE SOFTWARE '
'(fc2)',
'remote_system_enable_capab': ['bridge', 'router'],
'remote_system_name': '4503E'}]}
{'candidate': '',
'running': 'Building configuration...\n'
'\n'
'Current configuration : 42458 bytes\n'
'!\n'
'! Last configuration change at 10:40:24 JST Fri Aug 23 2019 by '
'cisco\n'
'!\n'
'version 16.10\n'
'no service pad\n'
'service timestamps debug datetime msec\n'
'service timestamps log datetime msec show-timezone year\n'
'service password-encryption\n'
'service call-home\n'
'no platform punt-keepalive disable-kernel-core\n'
'!\n'
---------------------------略------------------------
{'cpu': {0: {'%usage': 1.0}},
'fans': {'invalid': {'status': True}},
'memory': {'available_ram': 1455760728, 'used_ram': 320752788},
'power': {'invalid': {'capacity': -1.0, 'output': -1.0, 'status': True}},
'temperature': {'hotspot': {'is_alert': False,
'is_critical': False,
'temperature': 50.0},
'inlet': {'is_alert': False,
'is_critical': False,
'temperature': 29.0}}}
get_facts
{'fqdn': '***.not set',
'hostname': '***',
'interface_list': ['Vlan1',
'Vlan100',
'Vlan111',
'GigabitEthernet0/0',
'GigabitEthernet1/0/1',
'GigabitEthernet1/0/2',
---------------------------略------------------------
'Te1/1/6',
'Te1/1/7',
'Te1/1/8',
'Fo1/1/1',
'Fo1/1/2',
'TwentyFiveGigE1/1/1',
'TwentyFiveGigE1/1/2',
'Loopback0'],
'model': 'C9300-24P',
'os_version': 'Catalyst L3 Switch Software (CAT9K_IOSXE), Version 16.10.1, '
'RELEASE SOFTWARE (fc3)',
'serial_number': '***',
'uptime': 2070720,
'vendor': 'Cisco'}
get_interfaces(抜粋)
{'FortyGigabitEthernet1/1/1': {'description': '',
'is_enabled': True,
'is_up': False,
'last_flapped': -1.0,
'mac_address': 'AA:BB:CC:DD:EE:FF',
'speed': 40000},
'FortyGigabitEthernet1/1/2': {'description': '',
'is_enabled': True,
'is_up': False,
'last_flapped': -1.0,
'mac_address': 'AA:BB:CC:DD:EE:FF',
'speed': 40000},
'GigabitEthernet0/0': {'description': '',
'is_enabled': True,
'is_up': True,
'last_flapped': -1.0,
'mac_address': 'AA:BB:CC:DD:EE:FF',
'speed': 1000},
'GigabitEthernet1/0/1': {'description': '',
'is_enabled': True,
'is_up': True,
'last_flapped': -1.0,
'mac_address': 'AA:BB:CC:DD:EE:FF',
'speed': 1000},
get_interfaces_counters(抜粋)
{'FortyGigabitEthernet1/1/1': {'rx_broadcast_packets': 0,
'rx_discards': -1,
'rx_errors': 0,
'rx_multicast_packets': 0,
'rx_octets': 0,
'rx_unicast_packets': 0,
'tx_broadcast_packets': -1,
'tx_discards': -1,
'tx_errors': 0,
'tx_multicast_packets': -1,
'tx_octets': 0,
'tx_unicast_packets': 0},
'FortyGigabitEthernet1/1/2': {'rx_broadcast_packets': 0,
'rx_discards': -1,
'rx_errors': 0,
'rx_multicast_packets': 0,
'rx_octets': 0,
'rx_unicast_packets': 0,
'tx_broadcast_packets': -1,
'tx_discards': -1,
'tx_errors': 0,
'tx_multicast_packets': -1,
'tx_octets': 0,
'tx_unicast_packets': 0},
'GigabitEthernet0/0': {'rx_broadcast_packets': 0,
'rx_discards': 0,
'rx_errors': 0,
'rx_multicast_packets': 0,
'rx_octets': 771644371,
'rx_unicast_packets': 10630095,
'tx_broadcast_packets': -1,
'tx_discards': 0,
'tx_errors': 0,
'tx_multicast_packets': -1,
'tx_octets': 4934823218,
'tx_unicast_packets': 15095440},
get_interfaces_ip
{'GigabitEthernet0/0': {'ipv4': {'1.1.1.1': {'prefix_length': 31}}},
'GigabitEthernet1/0/1': {'ipv4': {'2.2.2.2': {'prefix_length': 31}}},
'Loopback0': {'ipv4': {'3.3.3.3': {'prefix_length': 32}}},
'Vlan100': {'ipv4': {'192.168.1.1': {'prefix_length': 29}}},
'Vlan111': {'ipv4': {'4.4.4.4': {'prefix_length': 24}}}}
get_lldp_neighbors
{'GigabitEthernet1/0/1': [{'hostname': '4503E', 'port': 'Gi2/3'}]}
get_lldp_neighbors_detail
{'GigabitEthernet1/0/1': [{'parent_interface': '',
'remote_chassis_id': '****.****.****',
'remote_port': 'Gi2/3',
'remote_port_description': '*** Cat9300-01 ***',
'remote_system_capab': ['bridge', 'router'],
'remote_system_description': 'Cisco IOS Software, '
'IOS-XE Software, '
'Catalyst 4500 L3 '
'Switch Software '
'(cat4500e-UNIVERSALK9-M), '
'Version 03.08.04.E '
'RELEASE SOFTWARE '
'(fc2)',
'remote_system_enable_capab': ['bridge', 'router'],
'remote_system_name': '4503E'}]}
{'fqdn': '***.not set',
'hostname': '***',
'interface_list': ['Vlan1',
'Vlan100',
'Vlan111',
'GigabitEthernet0/0',
'GigabitEthernet1/0/1',
'GigabitEthernet1/0/2',
---------------------------略------------------------
'Te1/1/6',
'Te1/1/7',
'Te1/1/8',
'Fo1/1/1',
'Fo1/1/2',
'TwentyFiveGigE1/1/1',
'TwentyFiveGigE1/1/2',
'Loopback0'],
'model': 'C9300-24P',
'os_version': 'Catalyst L3 Switch Software (CAT9K_IOSXE), Version 16.10.1, '
'RELEASE SOFTWARE (fc3)',
'serial_number': '***',
'uptime': 2070720,
'vendor': 'Cisco'}
{'FortyGigabitEthernet1/1/1': {'description': '',
'is_enabled': True,
'is_up': False,
'last_flapped': -1.0,
'mac_address': 'AA:BB:CC:DD:EE:FF',
'speed': 40000},
'FortyGigabitEthernet1/1/2': {'description': '',
'is_enabled': True,
'is_up': False,
'last_flapped': -1.0,
'mac_address': 'AA:BB:CC:DD:EE:FF',
'speed': 40000},
'GigabitEthernet0/0': {'description': '',
'is_enabled': True,
'is_up': True,
'last_flapped': -1.0,
'mac_address': 'AA:BB:CC:DD:EE:FF',
'speed': 1000},
'GigabitEthernet1/0/1': {'description': '',
'is_enabled': True,
'is_up': True,
'last_flapped': -1.0,
'mac_address': 'AA:BB:CC:DD:EE:FF',
'speed': 1000},
get_interfaces_counters(抜粋)
{'FortyGigabitEthernet1/1/1': {'rx_broadcast_packets': 0,
'rx_discards': -1,
'rx_errors': 0,
'rx_multicast_packets': 0,
'rx_octets': 0,
'rx_unicast_packets': 0,
'tx_broadcast_packets': -1,
'tx_discards': -1,
'tx_errors': 0,
'tx_multicast_packets': -1,
'tx_octets': 0,
'tx_unicast_packets': 0},
'FortyGigabitEthernet1/1/2': {'rx_broadcast_packets': 0,
'rx_discards': -1,
'rx_errors': 0,
'rx_multicast_packets': 0,
'rx_octets': 0,
'rx_unicast_packets': 0,
'tx_broadcast_packets': -1,
'tx_discards': -1,
'tx_errors': 0,
'tx_multicast_packets': -1,
'tx_octets': 0,
'tx_unicast_packets': 0},
'GigabitEthernet0/0': {'rx_broadcast_packets': 0,
'rx_discards': 0,
'rx_errors': 0,
'rx_multicast_packets': 0,
'rx_octets': 771644371,
'rx_unicast_packets': 10630095,
'tx_broadcast_packets': -1,
'tx_discards': 0,
'tx_errors': 0,
'tx_multicast_packets': -1,
'tx_octets': 4934823218,
'tx_unicast_packets': 15095440},
get_interfaces_ip
{'GigabitEthernet0/0': {'ipv4': {'1.1.1.1': {'prefix_length': 31}}},
'GigabitEthernet1/0/1': {'ipv4': {'2.2.2.2': {'prefix_length': 31}}},
'Loopback0': {'ipv4': {'3.3.3.3': {'prefix_length': 32}}},
'Vlan100': {'ipv4': {'192.168.1.1': {'prefix_length': 29}}},
'Vlan111': {'ipv4': {'4.4.4.4': {'prefix_length': 24}}}}
get_lldp_neighbors
{'GigabitEthernet1/0/1': [{'hostname': '4503E', 'port': 'Gi2/3'}]}
get_lldp_neighbors_detail
{'GigabitEthernet1/0/1': [{'parent_interface': '',
'remote_chassis_id': '****.****.****',
'remote_port': 'Gi2/3',
'remote_port_description': '*** Cat9300-01 ***',
'remote_system_capab': ['bridge', 'router'],
'remote_system_description': 'Cisco IOS Software, '
'IOS-XE Software, '
'Catalyst 4500 L3 '
'Switch Software '
'(cat4500e-UNIVERSALK9-M), '
'Version 03.08.04.E '
'RELEASE SOFTWARE '
'(fc2)',
'remote_system_enable_capab': ['bridge', 'router'],
'remote_system_name': '4503E'}]}
{'FortyGigabitEthernet1/1/1': {'rx_broadcast_packets': 0,
'rx_discards': -1,
'rx_errors': 0,
'rx_multicast_packets': 0,
'rx_octets': 0,
'rx_unicast_packets': 0,
'tx_broadcast_packets': -1,
'tx_discards': -1,
'tx_errors': 0,
'tx_multicast_packets': -1,
'tx_octets': 0,
'tx_unicast_packets': 0},
'FortyGigabitEthernet1/1/2': {'rx_broadcast_packets': 0,
'rx_discards': -1,
'rx_errors': 0,
'rx_multicast_packets': 0,
'rx_octets': 0,
'rx_unicast_packets': 0,
'tx_broadcast_packets': -1,
'tx_discards': -1,
'tx_errors': 0,
'tx_multicast_packets': -1,
'tx_octets': 0,
'tx_unicast_packets': 0},
'GigabitEthernet0/0': {'rx_broadcast_packets': 0,
'rx_discards': 0,
'rx_errors': 0,
'rx_multicast_packets': 0,
'rx_octets': 771644371,
'rx_unicast_packets': 10630095,
'tx_broadcast_packets': -1,
'tx_discards': 0,
'tx_errors': 0,
'tx_multicast_packets': -1,
'tx_octets': 4934823218,
'tx_unicast_packets': 15095440},
{'GigabitEthernet0/0': {'ipv4': {'1.1.1.1': {'prefix_length': 31}}},
'GigabitEthernet1/0/1': {'ipv4': {'2.2.2.2': {'prefix_length': 31}}},
'Loopback0': {'ipv4': {'3.3.3.3': {'prefix_length': 32}}},
'Vlan100': {'ipv4': {'192.168.1.1': {'prefix_length': 29}}},
'Vlan111': {'ipv4': {'4.4.4.4': {'prefix_length': 24}}}}
get_lldp_neighbors
{'GigabitEthernet1/0/1': [{'hostname': '4503E', 'port': 'Gi2/3'}]}
get_lldp_neighbors_detail
{'GigabitEthernet1/0/1': [{'parent_interface': '',
'remote_chassis_id': '****.****.****',
'remote_port': 'Gi2/3',
'remote_port_description': '*** Cat9300-01 ***',
'remote_system_capab': ['bridge', 'router'],
'remote_system_description': 'Cisco IOS Software, '
'IOS-XE Software, '
'Catalyst 4500 L3 '
'Switch Software '
'(cat4500e-UNIVERSALK9-M), '
'Version 03.08.04.E '
'RELEASE SOFTWARE '
'(fc2)',
'remote_system_enable_capab': ['bridge', 'router'],
'remote_system_name': '4503E'}]}
{'GigabitEthernet1/0/1': [{'hostname': '4503E', 'port': 'Gi2/3'}]}
{'GigabitEthernet1/0/1': [{'parent_interface': '',
'remote_chassis_id': '****.****.****',
'remote_port': 'Gi2/3',
'remote_port_description': '*** Cat9300-01 ***',
'remote_system_capab': ['bridge', 'router'],
'remote_system_description': 'Cisco IOS Software, '
'IOS-XE Software, '
'Catalyst 4500 L3 '
'Switch Software '
'(cat4500e-UNIVERSALK9-M), '
'Version 03.08.04.E '
'RELEASE SOFTWARE '
'(fc2)',
'remote_system_enable_capab': ['bridge', 'router'],
'remote_system_name': '4503E'}]}
Author And Source
この問題について(Napalm ios driver出力結果まとめ), 我々は、より多くの情報をここで見つけました https://qiita.com/koishi_105/items/67a9a51303d55b185d37著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .