netSnmpExampleSleeper
NET-SNMP-EXAMPLES-MIB ·
.1.3.6.1.4.1.8072.2.1.2
Object
This is a simple object which is a basic integer. It's value
indicates the number of seconds that the agent will take in
responding to requests of this object. This is implemented
in a way which will allow the agent to keep responding to
other requests while access to this object is blocked. It is
writable, and changing it's value will change the amount of
time the agent will effectively wait for before returning a
response when this object is manipulated. Note that SET
requests through this object will take longer, since the
delay is applied to each internal transaction phase, which
could result in delays of up to 4 times the value of this
object.
This example object is implemented in the
agent/mibgroup/examples/delayed_instance.c file.
Context
- MIB
- NET-SNMP-EXAMPLES-MIB
- OID
.1.3.6.1.4.1.8072.2.1.2- Type
- scalar
- Access
- readwrite
- Status
- current
- Parent
- netSnmpExampleScalars
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 'NET-SNMP-EXAMPLES-MIB' -M '/opt/observium/mibs/net-snmp:/opt/observium/mibs/rfc' 'udp:<hostname>:161' 'NET-SNMP-EXAMPLES-MIB::netSnmpExampleSleeper.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'NET-SNMP-EXAMPLES-MIB' -M '/opt/observium/mibs/net-snmp:/opt/observium/mibs/rfc' 'NET-SNMP-EXAMPLES-MIB::netSnmpExampleSleeper'
Syntax
- Source
- SNMPv2-SMIInteger32
- Base type
Integer32
Values & Constraints
Type Constraints
range: -2147483648..2147483647