SNMP::Info::Layer3::Contivity - Perl5 Interface to Nortel Networks' Contivity Extranet Switches (CES).
Eric Miller (eric@jeneric.org)
eric@jeneric.org
# Let SNMP::Info determine the correct subclass for you. my $contivity = new SNMP::Info( AutoSpecify => 1, Debug => 1, # These arguments are passed directly on to SNMP::Session DestHost => 'myswitch', Community => 'public', Version => 2 ) or die "Can't connect to DestHost.\n"; my $class = $contivity->class(); print "SNMP::Info determined this device to fall under subclass : $class\n";
Abstraction subclass for Nortel Networks' Contivity Extranet Switch (CES).
For speed or debugging purposes you can call the subclass directly, but not after determining a more specific class using the method above.
my $contivity = new SNMP::Info::Layer3::Contivity(...);
See SNMP::Info for its own MIB requirements.
See SNMP::Info::Entity for its own MIB requirements.
These are methods that return scalar value from SNMP
Returns 'Nortel'
Returns the chassis name.
(entPhysicalModelName.1)
Returns 'CES'
Returns the software version extracted from (sysDescr).
Returns the chassis serial number.
(entPhysicalSerialNum.1)
Returns the MAC address of the first Ethernet Interface.
Returns the primary IP used to communicate with the router. Returns the first IP interface.
Returns 00000100. Contivity does not support bridge MIB, so override reported layers.
See documentation in SNMP::Info for details.
See documentation in SNMP::Info::Entity for details.
These are methods that return tables of information in the form of a reference to a hash.
Returns reference to the map between IID and physical Port. Skips loopback and tunnel interfaces.
Returns reference to hash. Maps ARP table entries to Interface IIDs
(ipNetToMediaIfIndex)
Returns reference to hash. Maps ARP table entries to MAC addresses.
(ipNetToMediaPhysAddress)
Returns reference to hash. Maps ARP table entries to IPs
(ipNetToMediaNetAddress)
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.