netSnmpHostsTable
NET-SNMP-EXAMPLES-MIB ·
.1.3.6.1.4.1.8072.2.2.2
Object
table
An example table that implements a wrapper around the /etc/hosts file on a machine using the iterator helper API.
Context
- MIB
- NET-SNMP-EXAMPLES-MIB
- OID
.1.3.6.1.4.1.8072.2.2.2- Type
- table
- Status
- current
- Parent
- netSnmpExampleTables
- Children
- 1
Net-SNMP examples
How SNMP and these commands workUse a bulk walk to inspect objects and instances beneath this OID.
Walk the subtree
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'NET-SNMP-EXAMPLES-MIB' -M '/opt/observium/mibs/net-snmp:/opt/observium/mibs/rfc' 'udp:<hostname>:161' 'NET-SNMP-EXAMPLES-MIB::netSnmpHostsTable'
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::netSnmpHostsTable'
Syntax
No syntax metadata recorded.
Values & Constraints
No enumerated values or constraints recorded.