netSnmpExampleInteger

NET-SNMP-EXAMPLES-MIB · .1.3.6.1.4.1.8072.2.1.1

Object

scalar r/w SNMPv2-SMIInteger32
This is a simple object which merely houses a writable
integer.  It's only purposes is to hold the value of a single
integer.  Writing to it will simply change the value for
subsequent GET/GETNEXT/GETBULK retrievals.
          
This example object is implemented in the
agent/mibgroup/examples/scalar_int.c file.

Context

MIB
NET-SNMP-EXAMPLES-MIB
OID
.1.3.6.1.4.1.8072.2.1.1
Type
scalar
Access
readwrite
Status
current
Parent
netSnmpExampleScalars

Scalars 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::netSnmpExampleInteger.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::netSnmpExampleInteger'

Syntax

Source
SNMPv2-SMIInteger32
Base type
Integer32

Values & Constraints

Type Constraints
range: -2147483648..2147483647