++ed by:
INPHOBIA KEEDI ABRAXXA

3 PAUSE users
1 non-PAUSE user.

Author image Eric A. Miller

NAME

SNMP::Info::Layer3::Passport - Perl5 Interface to modular Nortel Ethernet Routing Switches (formerly Passport / Accelar)

AUTHOR

Eric Miller

SYNOPSIS

 # 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";

DESCRIPTION

Abstraction subclass for modular Nortel Ethernet Routing Switches (formerly Passport and Accelar Series Switches).

These devices have some of the same charactersitics as the stackable Nortel Ethernet Switches (Baystack). 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(...);

Inherited Classes

SNMP::Info
SNMP::Info::Bridge
SNMP::Info::SONMP
SNMP::Info::RapidCity

Required MIBs

OSPF-MIB
Inherited Classes' MIBs

See SNMP::Info for its own MIB requirements.

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

GLOBALS

These are methods that return scalar value from SNMP

$passport->model()

Returns model type. Checks $passport->id() against the RAPID-CITY-MIB and then parses out rcA.

$passport->vendor()

Returns 'nortel'

$passport->os()

Returns 'passport'

$passport->os_ver()

Returns the software version extracted from sysDescr

$passport->serial()

Returns (rcChasSerialNumber)

$passport->root_ip()

Returns the primary IP used to communicate with the device. Returns the first found: CLIP (CircuitLess IP), Management Virtual IP (rcSysVirtualIpAddr), OSPF Router ID (ospfRouterId), SONMP Advertised IP Address.

Overrides

$passport->index_factor()

Required by SNMP::Info::SONMP. Returns 64 for 8600, 16 for Accelar.

$passport->port_offset()

Required by SNMP::Info::SONMP. Returns 1.

$passport->slot_offset()

Required by SNMP::Info::SONMP. Returns 0.

Globals imported from SNMP::Info

See documentation in SNMP::Info for details.

Globals imported from SNMP::Info::Bridge

See documentation in SNMP::Info::Bridge for details.

Global Methods imported from SNMP::Info::SONMP

See documentation in SNMP::Info::SONMP for details.

Global Methods imported from SNMP::Info::RapidCity

See documentation in SNMP::Info::RapidCity for details.

TABLE ENTRIES

These are methods that return tables of information in the form of a reference to a hash.

Overrides

$passport->i_index()

Returns SNMP IID to Interface index. Extends (ifIndex) by adding the index of the CPU virtual management IP (if present), each CPU Ethernet port, and each VLAN to ensure the virtual router ports are captured.

$passport->interfaces()

Returns reference to the map between IID and physical Port.

Slot and port numbers on the Passport switches are determined by the formula: port = (ifIndex % index_factor) + port_offset, slot = int(ifIndex / index_factor).

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 Vlan.

$passport->i_mac()

MAC address of the interface. Note this is just the MAC of the port, not anything connected to it.

$passport->i_description()

Description of the interface. Usually a little longer single word name that is both human and machine friendly. Not always.

$passport->i_name()

Crosses rc_alias() (rcPortName) with ifAlias() and returns the human set port name if exists.

$passport->ip_index()

Maps the IP Table to the IID. Extends (ipAdEntIfIndex) by adding the index of the CPU virtual management IP (if present) and each CPU Ethernet port.

$passport->bp_index()

Returns reference to hash of bridge port table entries map back to interface identifier (iid)

Returns (ifIndex) for both key and value since some devices seem to have problems with BRIDGE-MIB

RFC1213 Arp Cache Table (ipNetToMediaTable)

$passport->at_index()

Returns reference to hash. Maps ARP table entries to Interface IIDs

(ipNetToMediaIfIndex)

$passport->at_paddr()

Returns reference to hash. Maps ARP table entries to MAC addresses.

(ipNetToMediaPhysAddress)

$passport->at_netaddr()

Returns reference to hash. Maps ARP table entries to IPs

(ipNetToMediaNetAddress)

Table Methods imported from SNMP::Info

See documentation in SNMP::Info for details.

Table Methods imported from SNMP::Info::Bridge

See documentation in SNMP::Info::Bridge for details.

Table Methods imported from SNMP::Info::SONMP

See documentation in SNMP::Info::SONMP for details.

Table Methods imported from SNMP::Info::RapidCity

See documentation in SNMP::Info::RapidCity for details.