spanningTreePortCost
MOXA-NP6000-MIB ·
.1.3.6.1.4.1.8691.2.8.1.3.15.1.2.5.1.4
Object
The port cost of spanning tree protocol. Range is 1~20000000. Note: NPort 6150, 6250, 6250-S-SC, 6250-M-SC do not support write access.
Context
- MIB
- MOXA-NP6000-MIB
- OID
.1.3.6.1.4.1.8691.2.8.1.3.15.1.2.5.1.4- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- spanningTreePortEntry
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 'MOXA-NP6000-MIB' -M '/opt/observium/mibs/moxa:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'MOXA-NP6000-MIB::spanningTreePortCost'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'MOXA-NP6000-MIB' -M '/opt/observium/mibs/moxa:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'MOXA-NP6000-MIB::spanningTreePortCost.<spanningTreePortIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'MOXA-NP6000-MIB' -M '/opt/observium/mibs/moxa:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'MOXA-NP6000-MIB::spanningTreePortCost'
Syntax
- Source
- SNMPv2-SMIInteger32
- Base type
Integer32
Values & Constraints
Type Constraints
range: -2147483648..2147483647