SNMP::Info::Layer1::S3000(3pm) | User Contributed Perl Documentation | SNMP::Info::Layer1::S3000(3pm) |
SNMP::Info::Layer1::S3000 - SNMP Interface to Synoptics / Nortel Hubs
Eric Miller
#Let SNMP::Info determine the correct subclass for you. my $s3000 = new SNMP::Info( AutoSpecify => 1, Debug => 1, DestHost => 'myswitch', Community => 'public', Version => 2 ) or die "Can't connect to DestHost.\n"; my $class = $s3000->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.
These are methods that return scalar value from SNMP
Removes "sreg-" from the model name and returns only the numeric model identifier.
("s3AgentSwMajorVer").("s3AgentSwMinorVer").("s3AgentSwMaintVer")
See "GLOBALS" in SNMP::Info::Layer2 for details.
These are methods that return tables of information in the form of a reference to a hash.
Since hubs do not support "ifIndex", the interface index is created using the formula (board * 256 + port). This is required to support devices with more than one module.
State choices are 'up' or 'down'
Example:
my %if_map = reverse
%{$s3000->interfaces()};
$s3000->set_i_up_admin('down',
$if_map{'1.1'})
or die "Couldn't change port state.
",$s3000->error(1);
("s3EnetTopNmmPort")
Returns reference to hash. Key: Table entry, Value:Remote MAC address
See "TABLE METHODS" in SNMP::Info::Layer2 for details.
2020-12-02 | perl v5.32.0 |