XOS-How to determine when counters were last cleared

  • 0
  • 1
  • Question
  • Updated 1 year ago
  • Answered
  • (Edited)
Lets assume cli logging isnt enabled and doing sh log shows us the last week worth of info, but we suspect the counters were cleared say...3 weeks ago. 

What is the command to determine when the counters were cleared? 

Something that would produce such as :

"Last clearing of "show interface" counters 1w5d"
Photo of Jimmy

Jimmy

  • 650 Points 500 badge 2x thumb

Posted 1 year ago

  • 0
  • 1
Photo of Ariyakudi Srinivas, Muthuraman

Ariyakudi Srinivas, Muthuraman, Employee

  • 964 Points 500 badge 2x thumb
Hi Jimmy,

There is no specific command as such i believe to explicitly give the information on the timestamp information of when the switch counters were cleared.

The switch will record a log for clearing counters in the switch and the sample log is below,

* BD1.5 # clear counters* BD1.6 # show log
12/22/2016 02:06:56.22 <Noti:DM.Notice> Clearing all counters

And the switch log once crossed the storage buffer would start to over write the existing logs.
So a syslog server can be setup in the network to push the switch logs to the external syslog server to avoid the missing of logs.

https://gtacknowledge.extremenetworks.com/articles/How_To/How-to-configure-a-syslog-server

Hope this help.
Photo of Tripathy, Priya Ranjan

Tripathy, Priya Ranjan, ESE

  • 2,306 Points 2k badge 2x thumb
Possibly for S series devices we have these option as given below:


S-Series(su-config)->debug packet show-statistics

                 Global Router Statistics - last cleared 12s ago
                      (repeat command to refresh counters)
--------------------------------------------------------------------------------
   type                                              count     hi-count-blade
--------------------------------------------------------------------------------
                                 Packet Counts
   Total Packets in:                                    670                  2
   IPv4 Packets in:                                     670                  2
   Non-Unicast Packets in:                           1                   2
    /clipped output/
    Redirected:                                          367                  2

But i  never believe we have any in EXOS to determine the time last time the counter was cleared as suggested by my colleague earlier other than checking the logs detail for its command execution for clear counter time found in the show log output.