Rechercher une page de manuel
SNMP::Info::Layer3::BayRS.3pm
Langue: en
Version: 2006-06-30 (fedora - 06/07/09)
Section: 3 (Bibliothèques de fonctions)
NAME
SNMP::Info::Layer3::BayRS - Perl5 Interface to Nortel routers running BayRS.AUTHOR
Eric MillerSYNOPSIS
# 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";
DESCRIPTION
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(...);
Inherited Classes
- SNMP::Info
- SNMP::Info::Bridge
Required MIBs
- Wellfleet-HARDWARE-MIB
- Wellfleet-OSPF-MIB
- Wellfleet-DOT1QTAG-CONFIG-MIB
- Wellfleet-CSMACD-MIB
- Inherited Classes' MIBs
- See SNMP::Info for its own MIB requirements.
See SNMP::Info::Bridge for its own MIB requirements.
GLOBALS
These are methods that return scalar value from SNMP- $bayrs->model()
- 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',
); - $bayrs->vendor()
- Returns 'nortel'
- $bayrs->os()
- Returns 'bayrs'
- $bayrs->os_ver()
- Returns the software version extracted from sysDescr
- $bayrs->serial()
- Returns (wfHwBpSerialNumber) after conversion to ASCII decimal
- $bayrs->root_ip()
- Returns the primary IP used to communicate with the router.
Returns the first found: CLIP (CircuitLess IP), (wfOspfRouterId), or undefined.
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.
TABLE ENTRIES
These are methods that return tables of information in the form of a reference to a hash.Overrides
- $bayrs->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.
- $bayrs->i_name()
- Returns (ifDescr) along with VLAN name (wfDot1qTagCfgVlanName) for VLAN interfaces.
- $bayrs->i_duplex()
- Returns reference to hash. Maps port operational duplexes to IIDs for Ethernet interfaces.
- $bayrs->i_duplex_admin()
- Returns reference to hash. Maps port admin duplexes to IIDs for Ethernet interfaces.
- $bayrs->i_vlan()
- Returns reference to hash. Maps port VLAN ID to IIDs.
RFC1213 Arp Cache Table (ipNetToMediaTable)
- $bayrs->at_index()
- Returns reference to hash. Maps ARP table entries to Interface IIDs
(ipNetToMediaIfIndex)
- $bayrs->at_paddr()
- Returns reference to hash. Maps ARP table entries to MAC addresses.
(ipNetToMediaPhysAddress)
- $bayrs->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.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre