SNMP::Info::Layer1::Bayhub - SNMP Interface to Bay/Nortel/Avaya Hubs
Eric Miller
#Let SNMP::Info determine the correct subclass for you. my $bayhub = new SNMP::Info( AutoSpecify => 1, Debug => 1, 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 Bay hub device through SNMP. Also provides device MAC to port mapping through the proprietary MIB.
See "Required MIBs" in SNMP::Info::Layer2 for its MIB requirements.
See "Required MIBs" in SNMP::Info::NortelStack for its MIB requirements.
See "Required MIBs" in SNMP::Info::SONMP for its MIB requirements.
These are methods that return scalar value from SNMP
Returns 'avaya'
Returns 'bay_hub'
Cross references $bayhub->id() to the SYNOPTICS-MIB and returns the results.
Removes either Baystack Hub, 5000, or 5005 depending on the model.
Returns 00000011. Class emulates Layer 2 functionality through proprietary MIBs.
Required by SNMP::Info::SONMP. Number representing the number of ports reserved per slot within the device MIB. Returns 256.
Required by SNMP::Info::SONMP. Offset if slot numbering does not start at 0. Returns 0.
See "GLOBALS" in SNMP::Info::Layer2 for details.
See "GLOBALS" in SNMP::Info::NortelStack for details.
See "GLOBALS" in SNMP::Info::SONMP for details.
These are methods that return tables of information in the form of a reference to a hash.
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).
ifIndex
Returns reference to map of IIDs to physical ports.
Returns half, hubs do not support full duplex.
Returns interface speed.
Returns (s5EnPortLinkStatus) for each port. Translates on/off to up/down.
s5EnPortLinkStatus
Returns (s5EnPortPartStatus) for each port.
s5EnPortPartStatus
Sets port state, must be supplied with state and port ifIndex
State choices are 'up' or 'down'
Example: my %if_map = reverse %{$bayhub->interfaces()}; $bayhub->set_i_up_admin('down', $if_map{'1.1'}) or die "Couldn't change port state. ",$bayhub->error(1);
Simulates bridge MIB by returning reference to a hash containing the index for both the keys and values.
Returns reference to map of IIDs of the S5-COMMON-STATS-MIB::s5CmSNodeTable to the Interface index.
S5-COMMON-STATS-MIB::s5CmSNodeTable
(s5CmSNodeMacAddr)
s5CmSNodeMacAddr
These devices do not support ENTITY-MIB. These methods emulate Physical Table methods using S5-CHASSIS-MIB. See "TABLE METHODS" in SNMP::Info::NortelStack for details.
Returns ns_e_index().
Returns ns_e_class().
Returns ns_e_descr().
Returns ns_e_name().
Returns ns_e_fwver().
Returns ns_e_hwver().
Returns ns_e_parent().
Returns ns_e_pos().
Returns ns_e_serial().
Returns ns_e_swver().
Returns ns_e_type().
Returns ns_e_vendor().
See "TABLE METHODS" in SNMP::Info::Layer2 for details.
See "TABLE METHODS" in SNMP::Info::NortelStack for details.
See "TABLE METHODS" in SNMP::Info::SONMP for details.
To install SNMP::Info, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SNMP::Info
CPAN shell
perl -MCPAN -e shell install SNMP::Info
For more information on module installation, please visit the detailed CPAN module installation guide.