SNMP::Info::Layer1::Bayhub - SNMP Interface to Bay / Nortel Hubs
Eric Miller (eric@jeneric.org)
#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";
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(...);
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.
These are methods that return scalar value from SNMP
vendor()os()model()id() to the SYNOPTICS-MIB and returns
the results.
Removes sreg- from the model name
layers()index_factor()slot_offset()
See documentation in SNMP::Info for details.
See documentation in SNMP::Info::Bridge for details.
See documentation in SNMP::Info::NortelStack for details.
See documentation in SNMP::Info::SONMP for details.
These are methods that return tables of information in the form of a reference to a hash.
i_index()Since hubs do not support ifIndex, the interface index is created using the formula (board * 256 + port).
interfaces()i_duplex()i_duplex_admin()i_speed()i_up()i_up_admin()bp_index()fw_port()fw_mac()
See documentation in SNMP::Info for details.
See documentation in SNMP::Info::Bridge for details.
See documentation in SNMP::Info::NortelStack for details.
See documentation in SNMP::Info::SONMP for details.