All MIBs › NET-SNMP-AGENT-MIB › nsCacheEnabled
nsCacheEnabled
Module: NET-SNMP-AGENT-MIB
OID (symbolic): NET-SNMP-AGENT-MIB::nsCacheEnabled
OID (numeric): 1.3.6.1.4.1.8072.1.5.2
Node type: OBJECT-TYPE
Type: TruthValue
Access: read-write
Description: Whether data caching is active overall.
What is nsCacheEnabled?
This object turns Net-SNMP's data caching mechanism on or off overall, defaulting to true. Admins disable this if they need every SNMP query to reflect completely fresh data at the cost of higher backend polling load, useful for troubleshooting stale-data issues. Setting this to false disables all caching agent-wide, forcing every MIB query to fetch fresh underlying data regardless of per-entry timeout settings.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.4.1.8072.1.5.2 snmpwalk -v2c -c public <target> NET-SNMP-AGENT-MIB::nsCacheEnabled
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.4.1.8072.1.5.2.1 snmpget -v2c -c public <target> NET-SNMP-AGENT-MIB::nsCacheEnabled.1
Set instance 1 (SNMPv2c):
snmpset -v2c -c private <target> 1.3.6.1.4.1.8072.1.5.2.1 s <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::nsCacheEnabled 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.2 | nsCacheEnabled | NET-SNMP-AGENT-MIB |