agentStpCstPortRootGuard
NETGEAR-SWITCHING-MIB ·
.1.3.6.1.4.1.4526.10.1.2.15.9.1.17
Object
column r/w
Enumeration
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
- NETGEAR-SWITCHING-MIB
- OID
.1.3.6.1.4.1.4526.10.1.2.15.9.1.17- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- agentStpCstPortEntry
Net-SNMP examples
How SNMP and these commands workWalk 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 'NETGEAR-SWITCHING-MIB' -M '/opt/observium/mibs/netgear:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'NETGEAR-SWITCHING-MIB::agentStpCstPortRootGuard'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'NETGEAR-SWITCHING-MIB' -M '/opt/observium/mibs/netgear:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'NETGEAR-SWITCHING-MIB::agentStpCstPortRootGuard.<ifIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'NETGEAR-SWITCHING-MIB' -M '/opt/observium/mibs/netgear:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'NETGEAR-SWITCHING-MIB::agentStpCstPortRootGuard'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | enable |
2 | disable |