deviceRole

ES-GroupManagement-MIB · .1.3.6.1.4.1.3902.15.4.3.10.1.6

Object

column r/w Enumeration
The value indicates the switch role in the topology,
But only command switch can set value of this item.
Furthermore, only memberSwitch ( 2 ) can be set which means 
adding a device of the topology to the group.

Context

MIB
ES-GroupManagement-MIB
OID
.1.3.6.1.4.1.3902.15.4.3.10.1.6
Type
column
Access
readwrite
Status
current
Parent
tpDeviceEntry

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 'ES-GroupManagement-MIB' -M '/opt/observium/mibs/zte:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'ES-GroupManagement-MIB::deviceRole'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'ES-GroupManagement-MIB' -M '/opt/observium/mibs/zte:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'ES-GroupManagement-MIB::deviceRole.<deviceMac>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'ES-GroupManagement-MIB' -M '/opt/observium/mibs/zte:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'ES-GroupManagement-MIB::deviceRole'

Syntax

Enumeration

Values & Constraints

Enumerated Values
1commandSwitch
2memberSwitch
3candidateSwitch
4independentSwitch