SNMP::Info::Layer3::BayRS - Perl5 Interface to Nortel routers running BayRS.
Eric Miller
# Let SNMP::Info determine the correct subclass for you. my $bayrs = 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 = $bayrs->class(); print "SNMP::Info determined this device to fall under subclass : $class\n";
Abstraction subclass for routers running Nortel BayRS.
For speed or debugging purposes you can call the subclass directly, but not after determining a more specific class using the method above.
my $bayrs = new SNMP::Info::Layer3::BayRS(...);
See SNMP::Info for its own MIB requirements.
See SNMP::Info::Bridge for its own MIB requirements.
These are methods that return scalar value from SNMP
Returns the model of the BayRS router. Will translate between the MIB model and the common model with this map :
%MODEL_MAP = ( 'acefn' => 'FN', 'aceln' => 'LN', 'acecn' => 'CN', 'afn' => 'AFN', 'in' => 'IN', 'an' => 'AN', 'arn' => 'ARN', 'sys5000' => '5000', 'freln' => 'BLN', 'frecn' => 'BCN', 'frerbln' => 'BLN-2', 'asn' => 'ASN', 'asnzcable' => 'ASN-Z', 'asnbcable' => 'ASN-B', );
Returns 'nortel'
Returns 'bayrs'
Returns the software version extracted from sysDescr
Returns (wfHwBpSerialNumber) after conversion to ASCII decimal
Returns the primary IP used to communicate with the router.
Returns the first found: CLIP (CircuitLess IP), (wfOspfRouterId), or undefined.
See documentation in SNMP::Info for details.
See documentation in SNMP::Info::Bridge 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.
The physical port name is stripped to letter and numbers to signify port type and slot port (S11) if the default platform naming was maintained. Otherwise the port is the interface description.
Returns (ifDescr) along with VLAN name (wfDot1qTagCfgVlanName) for VLAN interfaces.
Returns reference to hash. Maps port operational duplexes to IIDs for Ethernet interfaces.
Returns reference to hash. Maps port admin duplexes to IIDs for Ethernet interfaces.
Returns reference to hash. Maps port VLAN ID to IIDs.
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.