All MIBs › SYS-MIB › ipClearStats
ipClearStats
Module: SYS-MIB
OID (symbolic): SYS-MIB::ipClearStats
OID (numeric): 1.3.6.1.4.1.1978.2.18.3.24
Node type: OBJECT-TYPE
Type: INTEGER
Access: read-write
Description:
When set to 'clear' all of the ip/icmp/tcp/udp/ppp/snmp statistics are cleared to zero. When read, this object should always return 'cleared' indicating that the clear operation took place. Should the operation be defered, the value will remain as 'clear' until such time as:
1/ all of the statistics have actually been zeroed, and 2/ ipClearStatsTime has been updated with the correct time.
Should an NMS read the object and receive a 'cleared' indication, the SNMP agent will set this object to 'cleared-confirmed'. This aids the NMS in determining whether or not the agent successfully received subsequent clear request.
Normal operation would be:
NMS Agent
set 'clear' --> set to 'clear,' perform clearing . read --> . 'clear' <-- . clearing complete, set to 'cleared' . read --> . 'cleared' <-- set to 'cleared-confirmed' . read --> . 'cleared-confirmed' <-- .
Rules: 1/ NMS must read 'cleared-confirmed' BEFORE attempting to set 'clear'. 2/ After setting 'clear' the NMS must read 'cleared'. then the NMS must read 'cleared-confirmed'. In this manner, if a 'clear' command was missed by the agent, the variable will still be set to either 'cleared' or 'cleared-confirmed'.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.4.1.1978.2.18.3.24 snmpwalk -v2c -c public <target> SYS-MIB::ipClearStats
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.4.1.1978.2.18.3.24.1 snmpget -v2c -c public <target> SYS-MIB::ipClearStats.1
Set instance 1 (SNMPv2c):
snmpset -v2c -c private <target> 1.3.6.1.4.1.1978.2.18.3.24.1 i <value>
OID Breakdown
| Numeric OID | Name | Module |
|---|---|---|
| 1 | iso | LANART-AGENT |
| 1.3 | org | BIANCA-BRICK-PPP-MIB |
| 1.3.6 | dod | BIANCA-BRICK-PPP-MIB |
| 1.3.6.1 | internet | BIANCA-BRICK-PPP-MIB |
| 1.3.6.1.4 | private | BIANCA-BRICK-PPP-MIB |
| 1.3.6.1.4.1 | enterprises | ANIROOT-MIB |
| 1.3.6.1.4.1.1978 | ngcan | SYS-MIB |
| 1.3.6.1.4.1.1978.2 | tiger | SYS-MIB |
| 1.3.6.1.4.1.1978.2.18 | sysMIB | SYS-MIB |
| 1.3.6.1.4.1.1978.2.18.3 | ip | SYS-MIB |
| 1.3.6.1.4.1.1978.2.18.3.24 | ipClearStats | SYS-MIB |