SNMP::Info::Layer3::Timetra - SNMP Interface to Alcatel-Lucent SR
Bill Fenner
# Let SNMP::Info determine the correct subclass for you. my $alu = new SNMP::Info( AutoSpecify => 1, Debug => 1, # These arguments are passed directly to SNMP::Session DestHost => 'myswitch', Community => 'public', Version => 2 ) or die "Can't connect to DestHost.\n"; my $class = $alu->class(); print "SNMP::Info determined this device to fall under subclass : $class\n";
Subclass for Alcatel-Lucent Service Routers
See "Required MIBs" in SNMP::Info::Layer3 for its own MIB requirements.
These are methods that return scalar value from SNMP
Returns 'alcatel-lucent'
Returns 'TiMOS'
Grabs the version string from sysDescr.
sysDescr
Tries to reference $alu->id() to one of the product MIBs listed above
Removes 'tmnxModel' from the name for readability.
See documentation in "GLOBALS" in SNMP::Info::Layer3 for details.
These are methods that return tables of information in the form of a reference to a hash.
Returns ifName, since the default Layer3 ifDescr varies based upon the transceiver inserted.
ifName
ifDescr
Returns the mapping to the SNMP Interface Table. Utilizes (ifIndex) from the (tmnxLldpRemEntry ) index.
ifIndex
tmnxLldpRemEntry
lldpRemTable
TIMETRA-LLDP-MIB::tmnxLldpRemTable
(tmnxLldpRemChassisIdSubtype)
tmnxLldpRemChassisIdSubtype
(tmnxLldpRemChassisId)
tmnxLldpRemChassisId
(tmnxLldpRemPortIdSubtype)
tmnxLldpRemPortIdSubtype
(tmnxLldpRemPortId)
tmnxLldpRemPortId
(tmnxLldpRemPortDesc)
tmnxLldpRemPortDesc
(tmnxLldpRemSysName)
tmnxLldpRemSysName
(tmnxLldpRemSysDesc)
tmnxLldpRemSysDesc
(tmnxLldpRemSysCapEnabled)
tmnxLldpRemSysCapEnabled
See documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details.
To install SNMP::Info, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SNMP::Info
CPAN shell
perl -MCPAN -e shell install SNMP::Info
For more information on module installation, please visit the detailed CPAN module installation guide.