Help us understand the problem. What is going on with this article?

Napalm ios driver出力結果まとめ

More than 1 year has passed since last update.

自分用に使いそうな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'}]}

koishi-5
ネットワーク初心者、担当エクセル・パワポ
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした