All MIBs › TPLINK-STACK-MIB › tpSwitchRole
tpSwitchRole
Module: TPLINK-STACK-MIB
OID (symbolic): TPLINK-STACK-MIB::tpSwitchRole
OID (numeric): 1.3.6.1.4.1.11863.6.34.1.2.1.1.4
Node type: OBJECT-TYPE
Type: INTEGER
Access: read-only
Description: This object describes the function of the switch:
slave - stack member. master - stack master.
What is tpSwitchRole?
This read-only object reports whether a given member switch is currently acting as the stack slave or the stack master. Only one switch in the stack holds the master role at a time, and it is responsible for the stack's shared control plane, so an admin checks this to know which unit to manage centrally. For example, after a stack master failover, an admin would poll tpSwitchRole across the members to confirm which unit has taken over as master(1).
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.4.1.11863.6.34.1.2.1.1.4 snmpwalk -v2c -c public <target> TPLINK-STACK-MIB::tpSwitchRole
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.4.1.11863.6.34.1.2.1.1.4.1 snmpget -v2c -c public <target> TPLINK-STACK-MIB::tpSwitchRole.1
Start monitoring TP-Link managed switches, stacking (stack-member role/link status) with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the TPLINK-STACK-MIB::tpSwitchRole OID value, configure state conditions and alerts, and monitor any TP-Link managed switches, stacking (stack-member role/link status) from a single console.
How to Use in IPNetwork Monitor
OID Breakdown
Upper-level ancestors (8 from the standard OID tree / other modules)
| Numeric OID | Name | Module |
|---|---|---|
| 1 | iso | LANART-AGENT |
| 1.3 | org | AirPair-MIB |
| 1.3.6 | dod | AirPair-MIB |
| 1.3.6.1 | internet | AirPair-MIB |
| 1.3.6.1.4 | private | AirPair-MIB |
| 1.3.6.1.4.1 | enterprises | AirPair-MIB |
| 1.3.6.1.4.1.11863 | tplink | TPLINK-MIB |
| 1.3.6.1.4.1.11863.6 | tplinkMgmt | TPLINK-MIB |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.4.1.11863.6.34 | tplinkStackMIB | TPLINK-STACK-MIB |
| 1.3.6.1.4.1.11863.6.34.1 | tplinkStackMIBObjects | TPLINK-STACK-MIB |
| 1.3.6.1.4.1.11863.6.34.1.2 | tpStackInfo | TPLINK-STACK-MIB |
| 1.3.6.1.4.1.11863.6.34.1.2.1 | tpSwitchInfoTable | TPLINK-STACK-MIB |
| 1.3.6.1.4.1.11863.6.34.1.2.1.1 | tpSwitchInfoEntry | TPLINK-STACK-MIB |
| 1.3.6.1.4.1.11863.6.34.1.2.1.1.4 | tpSwitchRole | TPLINK-STACK-MIB |