SNMP::Info::Layer3::Extreme - Perl5 Interface to Extreme Network Devices
Eric Miller
# Let SNMP::Info determine the correct subclass for you. my $extreme = new SNMP::Info( AutoSpecify => 1, Debug => 1, # These arguments are passed directly on to SNMP::Session DestHost => 'myswitch', Community => 'public', Version => 1 ) or die "Can't connect to DestHost.\n"; my $class = $extreme->class(); print "SNMP::Info determined this device to fall under subclass : $class\n";
Provides abstraction to the configuration information obtainable from an Extreme device through SNMP.
For speed or debugging purposes you can call the subclass directly, but not after determining a more specific class using the method above.
my $extreme = new SNMP::Info::Layer3::Extreme(...);
See classes listed above for their required MIBs.
These are methods that return scalar value from SNMP
Return 1. Bulkwalk is currently turned off for this class.
1
Returns model type. Checks $extreme->id() against the EXTREME-BASE-MIB.
Returns extreme
Returns serial number
(extremeSystemID)
Returns system temperature
(extremeCurrentTemperature)
Returns status of power supply 1
(extremePowerSupplyStatus.1)
Returns fan status
(extremeFanOperational.1)
Returns base mac
(dot1dBaseBridgeAddress)
See documentation in SNMP::Info::Layer3 for details.
See documentation in SNMP::Info::MAU for details.
These are methods that return tables of information in the form of a reference to a hash.
(extremeFdbMacFdbMacAddress)
(extremeFdbMacFdbPortIfIndex)
(extremeFdbMacFdbStatus)
Returns a mapping between ifIndex and the VLAN.
Returns reference to hash of bridge port table entries map back to interface identifier (iid)
Returns (ifIndex) for both key and value since we're using EXTREME-FDB-MIB rather than BRIDGE-MIB.
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.