SNMP::Info::CiscoStpExtensions - SNMP Interface to CISCO-STP-EXTENSIONS-MIB
CISCO-STP-EXTENSIONS-MIB
Carlos Vicente
Create or use a subclass of SNMP::Info that inherits this class. Do not use directly.
For debugging you can call new() directly as you would in SNMP::Info
my $stpx = new SNMP::Info::CiscoStpExtensions(...);
MIBs can be found at ftp://ftp.cisco.com/pub/mibs/v2/v2.tar.gz
These are methods that return scalar values from SNMP
Returns the particular STP version running on this device. Meant to override SNMP::Info::Brigde::stp_ver()
Values: pvstPlus, mistp, mistpPvstPlus, mst, rapidPvstPlus
pvstPlus
mistp
mistpPvstPlus
mst
rapidPvstPlus
(stpxSpanningTreeType)
stpxSpanningTreeType
These are methods that return tables of information in the form of a reference to a hash.
Returns the Multiple Spanning Tree (MST) configuration digest
(stpxSMSTConfigDigest)
stpxSMSTConfigDigest
Returns the Multiple Spanning Tree (MST) region name
(stpxMSTRegionName)
stpxMSTRegionName
(stpxSMSTRegionRevision)
stpxSMSTRegionRevision
Returns the mapping of vlan to MST instance in the form of a hash reference with key = VLAN id, value = STP instance
Returns 1 or 0 depending on whether RootGuard is enabled on a given port. Format is a hash reference with key = ifIndex, value = [1|0]
RootGuard
ifIndex
(stpxRootGuardConfigEnabled)
stpxRootGuardConfigEnabled
Returns 1 or 0 depending on whether LoopGuard is enabled on a given port. Format is a hash reference with key = ifIndex, value = [1|0]
LoopGuard
(stpxLoopGuardConfigEnabled)
stpxLoopGuardConfigEnabled
Returns 1 or 0 depending on whether BpduGuard is enabled on a given port. Format is a hash reference with key = ifIndex, value = [1|0]
BpduGuard
(stpxFastStartPortBpduGuardMode)
stpxFastStartPortBpduGuardMode
Returns 1 or 0 depending on whether BpduFilter is enabled on a given port. Format is a hash reference with key = ifIndex, value = [1|0]
BpduFilter
(stpxFastStartBpduFilterEnable)
stpxFastStartBpduFilterEnable
Unpacks H* into a string
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.