STP table

Note: The snPortStpTable was deprecated. It has been replaced by snIfStpTable.

Name, OID, and syntax

Access

Description

snIfStpTable

brcdIp.1.1.3.5.2

None

A specific snIfStpTable consists of a number of switch ports. This table exists only if snVLanByPortCfgTable exists and snVLanByPortCfgStpMode is enabled for each VLAN.

snIfStpVLanId

brcdIp.1.1.3.5.2.1.1

Syntax: Integer

Read-only

Shows the VLAN ID of the VLAN switch community.

Valid values: 1 - 65535

snIfStpPortNum

brcdIp.1.1.3.5.2.1.2

Syntax: InterfaceIndex

Read-only

Shows the port number of the switch that has the ifIndex value.

snIfStpPortPriority

brcdIp.1.1.3.5.2.1.3

Syntax: Integer

Read-write

Shows the value of the priority field, which is contained in the first (in network byte order) octet of the (2 octet long) Port ID. The second octet of the Port ID is given by the value of dot1dStpPort. The two octets combine to form the identity of the root bridge in a spanning tree (instance of STP). The bridge with the lowest value has the highest priority and is the root.

Valid values: 0 - 255

snIfStpCfgPathCost

brcdIp.1.1.3.5.2.1.4

Syntax: Integer

Read-write

Shows the value of the dot1dStpPortPathCost, which is the port’s path cost of paths towards the spanning tree root which include this port. 802.1D-1990 recommends that the default value of this parameter be in inverse proportion to the speed of the attached LAN. Writing value zero to this object sets the path cost to a default value which automatically changes according to port speed.

Valid values: 0 - 200000000

snIfStpOperState

brcdIp.1.1.3.5.2.1.5

Syntax: Integer

Read-only

Indicates if the port STP entry is activated and is in running mode:

  • notActivated(0)
  • activated(1)

Default: notActivated(0)

snIfStpPortState

brcdIp.1.1.3.5.2.1.8

Syntax: Integer

Read-only

Shows the port’s current state as defined by application of the Spanning Tree Protocol. This state controls what action a port takes when it receives a frame:

  • disabled(1) - The port is not participating in STP. This can occur when the port is disconnected or STP is disabled on the port.
  • blocking(2) - STP has blocked Layer 2 traffic on this port to prevent a loop. The device or VLAN can reach the root bridge using another port with the forwarding(5) state. When a port is in this state, the port does not transmit or receive user frames, but the port does continue to receive STP BPDUs.
  • listening(3) - STP is responding to a topology change and this port is listening for a BPDU from neighboring bridges in order to determine the new topology. No user frames are transmitted or received during this state.
  • learning(4) - The port has passed the listening state and will change to the blocking or forwarding state, depending on the results of STP’s reconvergence. The port does not transmit or receive user frames during this state. However, the device can learn the MAC addresses of frames that the port receives during this state and make corresponding entries in the MAC table.
  • forwarding(5) - STP is allowing the port to send and receive frames.
  • broken(6) - Ports that are malfunctioning are placed into this state by the bridge.
  • preforwarding(7)
snIfStpPortDesignatedCost

brcdIp.1.1.3.5.2.1.9

Syntax: Integer32

Read-only

The cost to the root bridge as advertised by the designated bridge that is connected to this port. This value is compared to the Root Path Cost field in received bridge PDUs.

snIfStpPortDesignatedRoot

brcdIp.1.1.3.5.2.1.10

Syntax: BridgeId

Read-only

Shows the unique ID of the root bridge. The root bridge is recorded as the root in the configuration BPDUs, which are transmitted by the designated bridge for the segment to which the port is attached.

snIfStpPortDesignatedBridge

brcdIp.1.1.3.5.2.1.11

Syntax: BridgeId

Read-only

Shows the ID of the designated bridge. The designated bridge is the device that connects the network segment to the root bridge.

snIfStpPortDesignatedPort

brcdIp.1.1.3.5.2.1.12

Syntax: Octet String

Read-only

Shows the ID of the port on the designated bridge that connects to the root bridge on the network.

This object has two octets.

snIfStpPortAdminRstp

brcdIp.1.1.3.5.2.1.13

Syntax: TruthVal

Read-write

Enables or disables RSTP of a port which is a member of a VLAN. If the VLAN is not operating in RSTP, this object will return FALSE(2) and this object is not writable.

snIfStpPortProtocolMigration

brcdIp.1.1.3.5.2.1.14

Syntax: TruthVal

Read-write

When operating in RSTP (version 2) mode, writing TRUE(1) to this object forces this port to transmit RSTP BPDUs. Any other operation on this object has no effect and it always returns FALSE(2) when read.

snIfStpPortAdminEdgePort

brcdIp.1.1.3.5.2.1.15

Syntax: TruthVal

Read-write

The administrative value of the edge port parameter. A value of TRUE(1) indicates that this port should be assumed as an edge port and a value of FALSE(2) indicates that this port should be assumed as a non-edge port.

snIfStpPortAdminPointToPoint

brcdIp.1.1.3.5.2.1.16

Syntax: TruthVal

Read-write

The administrative point-to-point status of the LAN segment attached to this port. A value of TRUE(1) indicates that this port should always be treated as if it is connected to a point-to-point link. A value of FALSE(2) indicates that this port should be treated as having a shared media connection.

snIfStpOperPathCost

brcdIp.1.1.3.5.2.1.17

Syntax: Integer

Read-only

Shows the value of dot1dStpPortPathCost, which is the port’s path cost of paths towards the spanning tree root which include this port. 802.1D-1990 recommends that the default value of this parameter be in inverse proportion to the speed of the attached LAN. Reading value zero indicates an unknown path cost value because the port speed cannot be determined due to the speed auto sense in progress or the port link is down.

Valid values: 0 - 200000000.

snIfStpPortRole

brcdIp.1.1.3.5.2.1.18

Syntax: Integer

Read-only

The STP or RSTP port role:

  • unknown(0)
  • alternate(1)
  • root(2)
  • designated(3)
  • backupRole(4)
  • disabledRole(5)
snIfStpBPDUTransmitted

brcdIp.1.1.3.5.2.1.19

Syntax: Counter32

Read-only

The STP or RSTP bridge protocol unit transmitted counter.

snIfStpBPDUReceived

brcdIp.1.1.3.5.2.1.20

Syntax: Counter32

Read-only

The STP or RSTP bridge protocol unit received counter.

snIfRstpConfigBPDUReceived

brcdIp.1.1.3.5.2.1.21

Syntax: Counter32

Read-only

The RSTP configuration bridge protocol unit received counter.

snIfRstpTCNBPDUReceived

brcdIp.1.1.3.5.2.1.22

Syntax: Counter32

Read-only

The RSTP topology change notification bridge protocol unit received counter.

snIfRstpConfigBPDUTransmitted

brcdIp.1.1.3.5.2.1.23

Syntax: Counter32

Read-only

The RSTP configuration bridge protocol unit transmitted counter.

snIfRstpTCNBPDUTransmitted

brcdIp.1.1.3.5.2.1.24

Syntax: Counter32

Read-only

The RSTP topology change notification bridge protocol unit transmitted counter.