dnsResCacheStatus
DNS-RESOLVER-MIB ·
.0.0.32.2.1.4.1
Object
scalar r/w
Enumeration
Status/action for the resolver's cache.
enabled(1) means that the use of the cache is allowed.
Query operations can return this state.
disabled(2) means that the cache is not being used.
Query operations can return this state.
Setting this variable to clear(3) deletes the entire
contents of the resolver's cache, but does not otherwise
change the resolver's state. The status will retain its
previous value from before the clear operation (i.e.,
enabled(1) or disabled(2)). The value of clear(3) can
NOT be returned by a query operation.
Context
- MIB
- DNS-RESOLVER-MIB
- OID
.0.0.32.2.1.4.1- Type
- scalar
- Access
- readwrite
- Status
- current
- Parent
- dnsResCache
- Groups
- 1
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 'DNS-RESOLVER-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DNS-RESOLVER-MIB::dnsResCacheStatus.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'DNS-RESOLVER-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'DNS-RESOLVER-MIB::dnsResCacheStatus'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | enabled |
2 | disabled |
3 | clear |
Conformance
Member of
Compliance refinements
dnsResMIBCompliance
readonly
This object need not be writable.