SNMP::Info::Layer3::BayRS - Perl5 Interface to Nortel Networks' routers running BayRS.
Eric Miller (eric@jeneric.org)
# 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 Networks' 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::Bridge for its own MIB requirements.
MIBs can be found on the CD that came with your product.
Or, they can be downloaded directly from Nortel Networks regardless of support contract status. Go to http://www.nortelnetworks.com Techninal Support, Browse Technical Support, Select by Product Families, BayRS Router Software, Router Software v 15.x, Software. Filter on mibs and download the latest version's archive.
These are methods that return scalar value from SNMP
model()%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', );
vendor()os()os_ver()serial()root_ip()Returns the first found: CLIP (CircuitLess IP), (wfOspfRouterId), or the first IP interface.
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.
interfaces()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.
i_name()i_duplex()i_duplex_admin()i_vlan()
at_index()(ipNetToMediaIfIndex)
at_paddr()(ipNetToMediaPhysAddress)
at_netaddr()(ipNetToMediaNetAddress)
See documentation in SNMP::Info for details.
See documentation in SNMP::Info::Bridge for details.