All MIBs › NET-SNMP-PASS-MIB › netSnmpPassCounter
netSnmpPassCounter
Module: NET-SNMP-PASS-MIB
OID (symbolic): NET-SNMP-PASS-MIB::netSnmpPassCounter
OID (numeric): 1.3.6.1.4.1.8072.2.255.5
Node type: OBJECT-TYPE
Type: Counter32
Access: read-only
Description: Example counter object. Note that this object will always return the value '42'.
What is netSnmpPassCounter?
This read-only scalar is a demonstration Counter32 object in the NET-SNMP-PASS example module that is hardcoded to always return the value 42. Because it never actually increments, it exists solely to show an extension script author how a Counter32-typed response should be formatted, not to represent any real traffic or event count. For example, polling this object repeatedly and always getting 42 back confirms the example agent extension is wired up correctly rather than indicating any device activity.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.4.1.8072.2.255.5 snmpwalk -v2c -c public <target> NET-SNMP-PASS-MIB::netSnmpPassCounter
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.4.1.8072.2.255.5.1 snmpget -v2c -c public <target> NET-SNMP-PASS-MIB::netSnmpPassCounter.1
Start monitoring Linux/Unix host running Net-SNMP agent (pass/pass-persist extension example) with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the NET-SNMP-PASS-MIB::netSnmpPassCounter OID value, configure state conditions and alerts, and monitor any Linux/Unix host running Net-SNMP agent (pass/pass-persist extension example) from a single console.
OID Breakdown
Upper-level ancestors (8 from the standard OID tree / other modules)
| Numeric OID | Name | Module |
|---|---|---|
| 1 | iso | LANART-AGENT |
| 1.3 | org | AirPair-MIB |
| 1.3.6 | dod | AirPair-MIB |
| 1.3.6.1 | internet | AirPair-MIB |
| 1.3.6.1.4 | private | AirPair-MIB |
| 1.3.6.1.4.1 | enterprises | AirPair-MIB |
| 1.3.6.1.4.1.8072 | netSnmp | NET-SNMP-MIB |
| 1.3.6.1.4.1.8072.2 | netSnmpExamples | NET-SNMP-EXAMPLES-MIB |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.4.1.8072.2.255 | netSnmpPassExamples | NET-SNMP-PASS-MIB |
| 1.3.6.1.4.1.8072.2.255.5 | netSnmpPassCounter | NET-SNMP-PASS-MIB |