hm2AgentStpTrapMode

HM2-PLATFORM-SWITCHING-MIB · .1.3.6.1.4.1.248.12.1.2.15.251

Object

The spanning tree trap status.
          
enable(1)  - enables spanning tree traps on the switch.
disable(2) - disables spanning tree traps on the switch.
          
The default status is enabled.

Context

MIB
HM2-PLATFORM-SWITCHING-MIB
OID
.1.3.6.1.4.1.248.12.1.2.15.251
Type
scalar
Access
readwrite
Status
current
Parent
hm2AgentStpSwitchConfigGroup

Scalars have one instance, identified by the .0 suffix.

Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'HM2-PLATFORM-SWITCHING-MIB' -M '/opt/observium/mibs/hirschmann:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'HM2-PLATFORM-SWITCHING-MIB::hm2AgentStpTrapMode.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'HM2-PLATFORM-SWITCHING-MIB' -M '/opt/observium/mibs/hirschmann:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'HM2-PLATFORM-SWITCHING-MIB::hm2AgentStpTrapMode'

Syntax

Values & Constraints

Type Values
1enable
2disable