1SNMP::Info::Layer3::NexUusse(r3)Contributed Perl DocumenStNaMtPi:o:nInfo::Layer3::Nexus(3)
2
3
4

NAME

6       SNMP::Info::Layer3::Nexus - SNMP Interface to Cisco Nexus Switches
7       running NX-OS
8

AUTHOR

10       Eric Miller
11

SYNOPSIS

13        # Let SNMP::Info determine the correct subclass for you.
14        my $nexus = new SNMP::Info(
15                                                       AutoSpecify => 1,
16                                                       Debug       => 1,
17                                                       # These arguments are passed directly to SNMP::Session
18                                                       DestHost    => 'myswitch',
19                                                       Community   => 'public',
20                                                       Version     => 2
21                                                       )
22               or die "Can't connect to DestHost.\n";
23
24        my $class      = $nexus->class();
25        print "SNMP::Info determined this device to fall under subclass : $class\n";
26

DESCRIPTION

28       Abstraction subclass for Cisco Nexus Switches running NX-OS.
29
30       For speed or debugging purposes you can call the subclass directly, but
31       not after determining a more specific class using the method above.
32
33        my $nexus = new SNMP::Info::Layer3::Nexus(...);
34
35   Inherited Classes
36       SNMP::Info::Layer3::CiscoSwitch
37
38   Required MIBs
39       CISCO-ENTITY-VENDORTYPE-OID-MIB
40       Inherited Classes' MIBs
41           See "Required MIBs" in SNMP::Info::Layer3::CiscoSwitch for its own
42           MIB requirements.
43

GLOBALS

45       These are methods that return a scalar value from SNMP
46
47       $nexus->os()
48           Returns 'nx-os'
49
50       $nexus->os_ver()
51           Returns operating system version extracted from "sysDescr".
52
53       $nexus->serial()
54           Returns the serial number of the chassis from ENTITY-MIB.
55
56       $nexus->model()
57           Tries to reference $nexus->id() to CISCO-ENTITY-VENDORTYPE-OID-MIB
58
59           Removes 'cevChassis' for readability.
60
61       $nexus->mac()
62           "dot1dBaseBridgeAddress"
63
64   Overrides
65       IP Address Table
66
67       Each entry in this table is an IP address in use on this device.  Some
68       versions do not index the table with the IPv4 address in accordance
69       with the MIB definition, these overrides correct that behavior.
70
71       Also, the table is augmented with IP addresses in use by UDP sockets on
72       the device, as determined by checking RFC1213-MIB::udpLocalAddress.
73       Valid addresses from this table (any IPv4 that is not localhost,
74       0.0.0.0, Class D (multicast) or Class E (experimental) are added as a
75       /32 on interface ID 0.  This is a workaround to determine possible VPC
76       Keepalive IP addresses on the device, which are probably advertised by
77       CDP/LLDP to neighbors.
78
79       $nexus->ip_index()
80           Maps the IP Table to the IID
81
82           ("ipAdEntIfIndex")
83
84       $nexus->ip_table()
85           Maps the Table to the IP address
86
87           ("ipAdEntAddr")
88
89       $nexus->ip_netmask()
90           Gives netmask setting for IP table entry.
91
92           ("ipAdEntNetMask")
93
94       $nexus->ip_broadcast()
95           Gives broadcast address for IP table entry.
96
97           ("ipAdEntBcastAddr")
98
99   Globals imported from SNMP::Info::Layer3::CiscoSwitch
100       See documentation in "GLOBALS" in SNMP::Info::Layer3::CiscoSwitch for
101       details.
102

TABLE METHODS

104       These are methods that return tables of information in the form of a
105       reference to a hash.
106
107   Table Methods imported from SNMP::Info::Layer3::CiscoSwitch
108       See documentation in "TABLE METHODS" in SNMP::Info::Layer3::CiscoSwitch
109       for details.
110
111
112
113perl v5.28.1                      2019-04-04      SNMP::Info::Layer3::Nexus(3)
Impressum