stpBridgeMaxHop
DGS-1210-28XME-BX ·
.1.3.6.1.4.1.171.10.76.43.1.6.1.17
Object
The value that all bridges use for MaxAge when this bridge is acting as the root. The granularity of this timer is specified to be 1 second. An agent may return a badValue error if a set is attempted to a value which is not a whole number of seconds.
Context
- MIB
- DGS-1210-28XME-BX
- OID
.1.3.6.1.4.1.171.10.76.43.1.6.1.17- Type
- scalar
- Access
- readwrite
- Status
- current
- Default
2000- Parent
- stpBridgeGlobal
Net-SNMP examples
How SNMP and these commands workScalars have one instance, identified by the .0 suffix.
Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'DGS-1210-28XME-BX' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DGS-1210-28XME-BX::stpBridgeMaxHop.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'DGS-1210-28XME-BX' -M '/opt/observium/mibs/d-link:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'DGS-1210-28XME-BX::stpBridgeMaxHop'
Syntax
- Source
- Timeout
- Base type
Integer32- Display format
d4
Type Description
A STP timer in units of 1/100 seconds
To convert a Timeout value into a value in units of
1/256 seconds, the following algorithm should be used:
b = floor( (n * 256) / 100)
where:
floor = quotient [ignore remainder]
n is the value in 1/100 second units
b is the value in 1/256 second units
To convert the value from 1/256 second units back to
1/100 seconds, the following algorithm should be used:
n = ceiling( (b * 100) / 256)
where:
ceiling = quotient [if remainder is 0], or
quotient + 1 [if remainder is non-zero]
n is the value in 1/100 second units
b is the value in 1/256 second units
Note: it is important that the arithmetic operations are
done in the order specified (i.e., multiply first, divide
second).
Values & Constraints
Object Constraints
range: 600-4000