SNMP::Info::Layer3::BayRS - SNMP 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, 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 Required MIBs in the SNMP::Info manpage for its own MIB requirements.
See Required MIBs in the SNMP::Info::Bridge manpage for its own MIB requirements.
See Required MIBs in the SNMP::Info::Layer3 manpage for its own MIB requirements.
These are methods that return scalar value from SNMP
model()
Returns the model of the BayRS router. Will translate between the MIB model and the common model with this map :
C<%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()
Returns 'nortel'
os()
Returns 'bayrs'
os_ver()
Returns the software version extracted from sysDescr
serial()
Returns (wfHwBpSerialNumber
) after conversion to ASCII decimal
root_ip()
Returns the primary IP used to communicate with the router.
Returns the first found: CLIP (CircuitLess IP), (wfOspfRouterId
), or
undefined.
See documentation in GLOBALS in the SNMP::Info manpage for details.
See documentation in GLOBALS in the SNMP::Info::Bridge manpage for details.
See documentation in GLOBALS in the SNMP::Info::Layer3 manpage for details.
These are methods that return tables of information in the form of a reference to a hash.
Note: These methods do not support partial table fetches, a partial can be passed but the entire table will be returned.
interfaces()
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.
i_name()
Returns (ifDescr
) along with VLAN name (wfDot1qTagCfgVlanName
) for VLAN
interfaces.
i_duplex()
Returns reference to hash. Maps port operational duplexes to IIDs for Ethernet interfaces.
i_duplex_admin()
Returns reference to hash. Maps port admin duplexes to IIDs for Ethernet interfaces.
i_vlan()
Returns reference to hash. Maps port VLAN ID to IIDs.
These methods emulate ENTITY-MIB Physical Table methods using Wellfleet-HARDWARE-MIB and Wellfleet-MODULE-MIB.
e_index()
Returns reference to hash. Key and Value: Integer. The index is created by combining the slot, module, and position into a five or six digit integer. Slot can be either one or two digits while the module and position are each two digits padded with leading zero if required.
e_class()
Returns reference to hash. Key: IID, Value: General hardware type. This class only returns container and module types.
e_descr()
Returns reference to hash. Key: IID, Value: Human friendly name.
e_name()
Returns reference to hash. Key: IID, Value: Human friendly name.
e_hwver()
Returns reference to hash. Key: IID, Value: Hardware version.
e_vendor()
Returns reference to hash. Key: IID, Value: nortel.
e_serial()
Returns reference to hash. Key: IID, Value: Serial number.
e_pos()
Returns reference to hash. Key: IID, Value: The relative position among all entities sharing the same parent.
e_type()
Returns reference to hash. Key: IID, Value: Type of component/sub-component as defined in Wellfleet-HARDWARE-MIB for processors and link modules or Wellfleet-MODULE-MIB for hardware modules.
e_fwver()
Returns reference to hash. Key: IID, Value: Firmware revision. Only available on processors.
e_swver()
Returns reference to hash. Key: IID, Value: Software revision. Only available on processors.
e_parent()
Returns reference to hash. Key: IID, Value: The value of e_index()
for the
entity which 'contains' this entity. A value of zero indicates this entity
is not contained in any other entity.
See documentation in TABLE METHODS in the SNMP::Info manpage for details.
See documentation in TABLE METHODS in the SNMP::Info::Bridge manpage for details.
See documentation in TABLE METHODS in the SNMP::Info::Layer3 manpage for details.
munge_hw_rev()
Converts octets to a decimal major.minor string.
munge_wf_serial()
Coverts octets to a decimal string.