SNMP::Info::Layer3::Enterasys - SNMP Interface to Enterasys Network Devices
Eric Miller
# Let SNMP::Info determine the correct subclass for you. my $enterasys = new SNMP::Info( AutoSpecify => 1, Debug => 1, DestHost => 'myswitch', Community => 'public', Version => 1 ) or die "Can't connect to DestHost.\n";
my $class = $enterasys->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
Provides abstraction to the configuration information obtainable from an Enterasys device through SNMP.
For speed or debugging purposes you can call the subclass directly, but not after determining a more specific class using the method above.
my $enterasys = new SNMP::Info::Layer3::Enterasys(...);
See Required MIBs in the SNMP::Info::MAU manpage for its MIB requirements.
See Required MIBs in the SNMP::Info::LLDP manpage for its MIB requirements.
See Required MIBs in the SNMP::Info::CDP manpage for its MIB requirements.
See Required MIBs in the SNMP::Info::Layer3 manpage for its MIB requirements.
These are methods that return scalar value from SNMP
model()
Returns model type. Checks $enterasys->id()
against the
ENTERASYS-OIDS-MIB.
vendor()
Returns enterasys
os()
Returns enterasys
os_ver()
Returns os version extracted from sysDescr
mac()
Returns base mac
(dot1dBaseBridgeAddress
)
See documentation in GLOBALS in the SNMP::Info::MAU manpage for details.
See documentation in GLOBALS in the SNMP::Info::LLDP manpage for details.
See documentation in GLOBALS in the SNMP::Info::CDP manpage for details.
See documentation in GLOBALS in the SNMP::Info::Layer3 manpage for details.
These are methods that return tables of information in the form of a reference to a hash.
interfaces()
Mapping between the Interface Table Index (iid) and the physical port name.
i_ignore()
Returns reference to hash. Creates a key for each IID that should be ignored.
Currently looks for rs232, tunnel,loopback,lo,null from
$enterasys->interfaces()
i_duplex()
See documentation for mau_i_duplex()
in TABLE METHODS in the SNMP::Info::MAU manpage.
i_duplex_admin()
See documentation for mau_i_duplex_admin()
in
TABLE METHODS in the SNMP::Info::MAU manpage.
fw_mac()
Returns reference to hash of forwarding table MAC Addresses.
fw_port()
Returns reference to hash of forwarding table entries port interface identifier (iid).
(dot1qTpFdbPort
)
Based upon the firmware version Enterasys devices may support Cabletron Discovery Protocol (CTRON CDP), Cisco Discovery Protocol (CDP), Link Layer Discovery Protocol (LLDP), or all. This module currently supports CDP and LLDP, but not CTRON CDP. These methods will query both CDP and LLDP and return the combination of all information. As a result, there may be identical topology information returned from the two protocols causing duplicate entries. It is the calling program's responsibility to identify any duplicate entries and remove duplicates if necessary.
hasCDP()
Returns true if the device is running either CDP or LLDP.
c_if()
Returns reference to hash. Key: iid Value: local device port (interfaces)
c_ip()
Returns reference to hash. Key: iid Value: remote IPv4 address
If multiple entries exist with the same local port, c_if(), with the same IPv4 address, c_ip(), it may be a duplicate entry.
If multiple entries exist with the same local port, c_if(), with different IPv4 addresses, c_ip(), there is either a non-CDP/LLDP device in between two or more devices or multiple devices which are not directly connected.
Use the data from the Layer2 Topology Table below to dig deeper.
c_port()
Returns reference to hash. Key: iid Value: remote port (interfaces)
c_id()
Returns reference to hash. Key: iid Value: string value used to identify the chassis component associated with the remote system.
c_platform()
Returns reference to hash. Key: iid Value: Remote Device Type
See documentation in TABLE METHODS in the SNMP::Info::MAU manpage for details.
See documentation in TABLE METHODS in the SNMP::Info::LLDP manpage for details.
See documentation in TABLE METHODS in the SNMP::Info::CDP manpage for details.
See documentation in TABLE METHODS in the SNMP::Info::Layer3 manpage for details.