snPortStpPortState
HP-SN-SWITCH-GROUP-MIB ·
.1.3.6.1.4.1.11.2.3.7.11.12.1.3.5.1.1.8
Object
column Enumeration
The port's current state as defined by application of the Spanning Tree Protocol. This state controls what action a port takes on reception of a frame. If the bridge has detected a port that is malfunctioning it will place that port into the broken(6) state. For ports which are disabled (see dot1dStpPortEnable), this object will have a value of disabled(1).
Context
- MIB
- HP-SN-SWITCH-GROUP-MIB
- OID
.1.3.6.1.4.1.11.2.3.7.11.12.1.3.5.1.1.8- Type
- column
- Access
- readonly
- Status
- current
- Parent
- snPortStpEntry
Net-SNMP examples
How SNMP and these commands workWalk the column to discover its indexed instances, or supply every index to read one instance.
Walk the column
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'HP-SN-SWITCH-GROUP-MIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HP-SN-SWITCH-GROUP-MIB::snPortStpPortState'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HP-SN-SWITCH-GROUP-MIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HP-SN-SWITCH-GROUP-MIB::snPortStpPortState.<snPortStpVLanId>.<snPortStpPortNum>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HP-SN-SWITCH-GROUP-MIB' -M '/opt/observium/mibs/hp:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HP-SN-SWITCH-GROUP-MIB::snPortStpPortState'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | disabled |
2 | blocking |
3 | listening |
4 | learning |
5 | forwarding |
6 | broken |