---
name: "SNMP::Info::CiscoStpExtensions"
section: "3pm"
platform: "linux"
package: "libsnmp-info-perl"
version: "3.972002-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SNMP::Info::CiscoStpExtensions"
---

# SNMP::Info::CiscoStpExtensions(3pm)

SNMP Interface to "CISCO-STP-EXTENSIONS-MIB"

## NAME

SNMP::Info::CiscoStpExtensions - SNMP Interface to "CISCO-STP-EXTENSIONS-MIB"

## AUTHOR

Carlos Vicente

## SYNOPSIS

```
   my $stpx = new SNMP::Info(
                         AutoSpecify => 1,
                         Debug       => 1,
                         DestHost    => 'myswitch',
                         Community   => 'public',
                         Version     => 2
                       )
   or die "Can't connect to DestHost.\n";
   my $class = $stpx->class();
   print " Using device sub class : $class\n";
```

## DESCRIPTION

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(...);
```

### Inherited Classes

- SNMP::Info

  - SNMP::Info::Bridge

  ### Required MIBs

- *CISCO-STP-EXTENSIONS-MIB*

  ## GLOBALS

These are methods that return scalar values from SNMP

- $stpx-\>**stp\_ver()**

  Returns the particular STP version running on this device. Meant to override **SNMP::Info::Brigde::stp\_ver()**

  Values: `"pvstPlus"`, `"mistp"`, `"mistpPvstPlus"`, `"mst"`, `"rapidPvstPlus"`

  (`"stpxSpanningTreeType"`)

## TABLE METHODS

These are methods that return tables of information in the form of a reference to a hash.

- $stpx-\>**mst\_config\_digest()**

  Returns the Multiple Spanning Tree (MST) configuration digest

  (`"stpxSMSTConfigDigest"`)

- $stpx-\>**mst\_region\_name()**

  Returns the Multiple Spanning Tree (MST) region name

  (`"stpxMSTRegionName"`)

- $stpx-\>**mst\_region\_rev()**

  Returns the Multiple Spanning Tree (MST) region name

  (`"stpxSMSTRegionRevision"`)

- $stpx-\>**mst\_vlan2instance()**

  Returns the mapping of vlan to MST instance in the form of a hash reference with key = VLAN id, value = STP instance

- $stpx-\>**i\_rootguard\_enabled()**

  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\]

  (`"stpxRootGuardConfigEnabled"`)

- $stpx-\>**i\_loopguard\_enabled()**

  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\]

  (`"stpxLoopGuardConfigEnabled"`)

- $stpx-\>**i\_bpduguard\_enabled()**

  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\]

  (`"stpxFastStartPortBpduGuardMode"`)

- $stpx-\>**i\_bpdufilter\_enabled()**

  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\]

  (`"stpxFastStartBpduFilterEnable"`)

- $stpx-\>**i\_faststart\_enabled()**

  Returns 1 or 0 depending on whether FastStart (aka PortFast) is enabled on a given port.  Format is a hash reference with key = `"ifIndex"`, value = \[1\|0\]

  (`"stpxFastStartPortEnable"` and `"stpxFastStartPortMode"`)

## MUNGES

- **oct2str()**

  Unpacks H\* into a string
