SNMP::Info::Layer3::Passport - Perl5 Interface to Nortel Networks' Passport 8600 Series Switches
Eric Miller (eric@jeneric.org)
# Let SNMP::Info determine the correct subclass for you.
my $passport = 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 = $passport->class(); print "SNMP::Info determined this device to fall under subclass : $class\n";
Abstraction subclass for Nortel Networks' Passport 8600 Series Switches.
These devices run Passport OS but have some of the same charactersitics as the Baystack family. For example, extended interface information is gleened from RAPID-CITY.
For speed or debugging purposes you can call the subclass directly, but not after determining a more specific class using the method above.
my $passport = new SNMP::Info::Layer3::Passport(...);
See SNMP::Info::Bridge for its own MIB requirements.
See SNMP::Info::SONMP for its own MIB requirements.
See SNMP::Info::RapidCity for its own MIB requirements.
OSPF-MIB is included in the archive at ftp://ftp.cisco.com/pub/mibs/v2/v2.tar.gz
These are methods that return scalar value from SNMP
model()vendor()os()os_ver()serial()root_ip()
index_factor()port_offset()slot_offset()
See documentation in SNMP::Info for details.
See documentation in SNMP::Info::Bridge for details.
See documentation in SNMP::Info::SONMP for details.
See documentation in SNMP::Info::RapidCity for details.
These are methods that return tables of information in the form of a reference to a hash.
i_index()interfaces()Slot and port numbers on the Passport switches are determined by the formula: port = (ifIndex % 64) + 1, slot = int(ifIndex / 64).
The physical port name is returned as slot.port. CPU Ethernet ports are prefixed with CPU and VLAN interfaces are returned as the VLAN ID prefixed with V.
i_mac()i_description()i_name()rc_alias() (rcPortName) with ifAlias() and returns the human set port
name if exists.
ip_index()
at_index()(ipNetToMediaIfIndex)
at_paddr()(ipNetToMediaPhysAddress)
at_netaddr()(ipNetToMediaNetAddress)
See documentation in SNMP::Info for details.
See documentation in SNMP::Info::Bridge for details.
See documentation in SNMP::Info::SONMP for details.
See documentation in SNMP::Info::RapidCity for details.