netSnmpExampleString
NET-SNMP-EXAMPLES-MIB ·
.1.3.6.1.4.1.8072.2.1.3
Object
This is a simple object which merely houses a writable
string. It's only purposes is to hold the value of a single
string. Writing to it will simply change the value for
subsequent GET/GETNEXT/GETBULK retrievals.
This example object is implemented in the
agent/mibgroup/examples/watched.c file.
Context
- MIB
- NET-SNMP-EXAMPLES-MIB
- OID
.1.3.6.1.4.1.8072.2.1.3- 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::netSnmpExampleString.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::netSnmpExampleString'
Syntax
- Source
- SNMP-FRAMEWORK-MIBSnmpAdminString
- Base type
OctetString
Values & Constraints
Type Constraints
range: 0..255