All MIBs › NET-SNMP-AGENT-MIB › nsCacheDefaultTimeout
nsCacheDefaultTimeout
Module: NET-SNMP-AGENT-MIB
OID (symbolic): NET-SNMP-AGENT-MIB::nsCacheDefaultTimeout
OID (numeric): 1.3.6.1.4.1.8072.1.5.1
Node type: OBJECT-TYPE
Type: INTEGER
Access: read-write
Description: Default cache timeout value (unless overridden for a particular cache entry).
What is nsCacheDefaultTimeout?
This object sets the default cache timeout, in seconds, applied to any MIB module data cache entry that doesn't have its own override, defaulting to 5. Admins raise this to reduce backend polling load on the agent for infrequently changing data, or lower it for data that needs to stay fresher. Setting this to 30 makes cached MIB data valid for 30 seconds by default instead of the standard 5, reducing how often the agent needs to re-fetch underlying data.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.4.1.8072.1.5.1 snmpwalk -v2c -c public <target> NET-SNMP-AGENT-MIB::nsCacheDefaultTimeout
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.4.1.8072.1.5.1.1 snmpget -v2c -c public <target> NET-SNMP-AGENT-MIB::nsCacheDefaultTimeout.1
Set instance 1 (SNMPv2c):
snmpset -v2c -c private <target> 1.3.6.1.4.1.8072.1.5.1.1 i <value>
Start monitoring Linux/Unix host or embedded device running the Net-SNMP agent (snmpd) with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the NET-SNMP-AGENT-MIB::nsCacheDefaultTimeout OID value, configure state conditions and alerts, and monitor any Linux/Unix host or embedded device running the Net-SNMP agent (snmpd) 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.1 | netSnmpObjects | NET-SNMP-MIB |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.4.1.8072.1.5 | nsCache | NET-SNMP-AGENT-MIB |
| 1.3.6.1.4.1.8072.1.5.1 | nsCacheDefaultTimeout | NET-SNMP-AGENT-MIB |