rcMstpXstPortRole

SWITCH-MSTP-MIB · .1.3.6.1.4.1.8886.6.1.24.8.1.4

Object

column Enumeration
Indicates this port's role on the corresponding Spanning 
Tree instance.
		 disabled(1) -- this port has no role on this MST instance.
		 alternate(2) -- this port has the role of alternate port 
		                 on this MST instance.
		 backup(3) -- this port has the role of backup port on this 
		              MST instance.
		 root(4)-- this port has the role of root port on this MST 
		           instance. 
		 designated(5) -- this port has the role of designated port 
		                  on this MST instance.
		 master(6) -- this port has the role of master port on this 
		              MST instance.
		 unknown(7) - unknown reason

Context

MIB
SWITCH-MSTP-MIB
OID
.1.3.6.1.4.1.8886.6.1.24.8.1.4
Type
column
Access
readonly
Status
current
Parent
rcMstpXstPortEntry

Walk 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 'SWITCH-MSTP-MIB' -M '/opt/observium/mibs/raisecom:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SWITCH-MSTP-MIB::rcMstpXstPortRole'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'SWITCH-MSTP-MIB' -M '/opt/observium/mibs/raisecom:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'SWITCH-MSTP-MIB::rcMstpXstPortRole.<rcMstpXstPortXstId>.<rcMstpXstPortIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'SWITCH-MSTP-MIB' -M '/opt/observium/mibs/raisecom:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'SWITCH-MSTP-MIB::rcMstpXstPortRole'

Syntax

Enumeration

Values & Constraints

Enumerated Values
1disabled
2alternate
3backup
4root
5designated
6master
7unknown