All MIBs › SYS-MIB › ifClearStats
ifClearStats
Module: SYS-MIB
OID (symbolic): SYS-MIB::ifClearStats
OID (numeric): 1.3.6.1.4.1.1978.2.18.2.2.1.29
Node type: OBJECT-TYPE
Type: INTEGER
Access: read-write
Description:
When set to 'clear' all of the interface statistics are cleared to zero. It will also force a clearing of all protocol, and 'user' statistics that are related to this interface.
Normally, this object will be adjusted if it is associated with physical ports (i.e. 1 - 8)
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/ ifClearStatsTime 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.2.2.1.29 snmpwalk -v2c -c public <target> SYS-MIB::ifClearStats
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.4.1.1978.2.18.2.2.1.29.1 snmpget -v2c -c public <target> SYS-MIB::ifClearStats.1
Set instance 1 (SNMPv2c):
snmpset -v2c -c private <target> 1.3.6.1.4.1.1978.2.18.2.2.1.29.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.2 | interfaces | SYS-MIB |
| 1.3.6.1.4.1.1978.2.18.2.2 | ifTable | SYS-MIB |
| 1.3.6.1.4.1.1978.2.18.2.2.1 | ifEntry | SYS-MIB |
| 1.3.6.1.4.1.1978.2.18.2.2.1.29 | ifClearStats | SYS-MIB |