hm2AgentStpCstPortRootGuard

HM2-PLATFORM-SWITCHING-MIB · .1.3.6.1.4.1.248.12.1.2.15.9.1.17

Object

This command sets a port to discard any superior information
received by the port and thus protect against root of the device
from changing.The port gets put into discarding state and does
not forward any packets.
              
enable(1)  - enables the root guard mode for the port.
disable(2) - disables the root guard mode for the port.
              
The default root guard mode is disabled.

Context

MIB
HM2-PLATFORM-SWITCHING-MIB
OID
.1.3.6.1.4.1.248.12.1.2.15.9.1.17
Type
column
Access
readwrite
Status
current
Parent
hm2AgentStpCstPortEntry

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 '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::hm2AgentStpCstPortRootGuard'
More examples
Read one indexed 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::hm2AgentStpCstPortRootGuard.<ifIndex>'
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::hm2AgentStpCstPortRootGuard'

Syntax

Values & Constraints

Type Values
1enable
2disable