NAME
SNMP::Info::Layer1::Bayhub - SNMP Interface to Bay / Nortel Hubs
AUTHOR
Eric Miller (eric@jeneric.org
)
SYNOPSIS
#Let SNMP::Info determine the correct subclass for you.
my $bayhub = 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 = $bayhub->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
DESCRIPTION
Provides abstraction to the configuration information obtainable from a Bayhub device through SNMP. Also provides device MAC to port mapping through the propietary MIB.
For speed or debugging purposes you can call the subclass directly, but not after determining a more specific class using the method above.
my $bayhub = new SNMP::Info::Layer1::Bayhub(...);
Inherited Classes
Required MIBs
- S5-ETHERNET-COMMON-MIB
- S5-COMMON-STATS-MIB
- Inherited Classes' MIBs
-
See SNMP::Info for its own MIB requirements.
See SNMP::Info::Bridge for its own MIB requirements.
See SNMP::Info::NortelStack for its own MIB requirements.
See SNMP::Info::SONMP 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 Technical Support, Browse Technical Support, Select by Product Families, BayStack, BayStack: Hubs - 150 Series, 10BASE-T, Software. Filter on mibs and download the latest version's archive.
GLOBALS
These are methods that return scalar value from SNMP
- $bayhub->vendor()
-
Returns 'Nortel'
- $bayhub->os()
-
Returns 'Bay Hub'
- $bayhub->model()
-
Cross references $bayhub->id() to the SYNOPTICS-MIB and returns the results.
Removes sreg- from the model name
Overrides
- $bayhub->layers()
-
Returns 00000011. Class emulates Layer 2 functionality through proprietary MIBs.
- $bayhub->index_factor()
-
Required by SNMP::Info::SONMP. Number representing the number of ports reserved per slot within the device MIB. Returns 256.
- $bayhub->slot_offset()
-
Required by SNMP::Info::SONMP. Offset if slot numbering does not start at 0. 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::NortelStack
See documentation in SNMP::Info::NortelStack for details.
Global Methods imported from SNMP::Info::SONMP
See documentation in SNMP::Info::SONMP for details.
TABLE ENTRIES
These are methods that return tables of information in the form of a reference to a hash.
Overrides
- $bayhub->i_index()
-
Returns reference to map of IIDs to Interface index.
Since hubs do not support ifIndex, the interface index is created using the formula (board * 256 + port).
- $bayhub->interfaces()
-
Returns reference to map of IIDs to physical ports.
- $bayhub->i_duplex()
-
Returns half, hubs do not support full duplex.
- $bayhub->i_duplex_admin()
-
Returns half, hubs do not support full duplex.
- $bayhub->i_speed()
-
Currently returns 10 Mbps. The class does not currently support 100 Mbps hubs.
- $bayhub->i_up()
-
Returns (s5EnPortLinkStatus) for each port. Translates on/off to up/down.
- $bayhub->i_up_admin()
-
Returns (s5EnPortPartStatus) for each port.
- $bayhub->bp_index()
-
Simulates bridge MIB by returning reference to a hash containing the index for both the keys and values.
- $bayhub->fw_port()
-
Returns reference to map of IIDs of the S5-COMMON-STATS-MIB::s5CmSNodeTable to the Interface index.
- $bayhub->fw_mac()
-
(s5CmSNodeMacAddr)
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::NortelStack
See documentation in SNMP::Info::NortelStack for details.
Table Methods imported from SNMP::Info::SONMP
See documentation in SNMP::Info::SONMP for details.