ucdDemoPublicString
UCD-DEMO-MIB ·
.1.3.6.1.4.1.2021.14.1.1.2
Object
scalar r/w
OctetString
A publicly settable string that can be set for testing snmpsets. This value has no real usage other than testing purposes.
Context
- MIB
- UCD-DEMO-MIB
- OID
.1.3.6.1.4.1.2021.14.1.1.2- Type
- scalar
- Access
- readwrite
- Status
- current
- Parent
- ucdDemoPublic
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 'UCD-DEMO-MIB' -M '/opt/observium/mibs/net-snmp:/opt/observium/mibs/rfc' 'udp:<hostname>:161' 'UCD-DEMO-MIB::ucdDemoPublicString.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'UCD-DEMO-MIB' -M '/opt/observium/mibs/net-snmp:/opt/observium/mibs/rfc' 'UCD-DEMO-MIB::ucdDemoPublicString'
Syntax
OctetString
Values & Constraints
Object Constraints
range: 0-1024