- Community Home
- >
- Networking
- >
- Switching and Routing
- >
- HPE Aruba Networking & ProVision-based
- >
- How to REALLY clear interface statistics?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2008 12:53 PM - last edited on тАО07-23-2014 08:20 PM by Lisa198503
тАО10-16-2008 12:53 PM - last edited on тАО07-23-2014 08:20 PM by Lisa198503
How to REALLY clear interface statistics?
Is there a way to clear the interface counter statistics on a Procurve device?
If I do the obvious "clear interface statistics a1" or similar, then the counters on port a1 does seems to be set to 0 and starting to count from that.
But, if I log off the session and re-logon the counters is magicaly restored to the original values. It seems like the clear-command only applies to the session.
If I want to see how many CRC errors, drops, collisions or anything else I actually get from one day to another or any other such action, this behaviour makes it very hard.
So my question is, can I actually clear/reset the counters without rebooting the whole switch?
P.S. This thread has been moved from Switches, Hubs, Modems (Legacy ITRC forum) to ProCurve / ProVision-Based. -HP Forum Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2008 10:32 PM
тАО10-16-2008 10:32 PM
Re: How to REALLY clear interface statistics?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2008 11:05 PM
тАО10-16-2008 11:05 PM
Re: How to REALLY clear interface statistics?
Why? ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2008 11:14 PM
тАО10-16-2008 11:14 PM
Re: How to REALLY clear interface statistics?
sw# sh int
Status and Counters - Port Counters
Flow
Port Total Bytes Total Frames Errors Rx Drops Rx Ctrl
---- ------------ ------------ ------------ ------------ -----
1 0 0 0 0 off
2 0 0 0 0 off
3 0 0 0 0 off
4 0 0 0 0 off
5 0 0 0 0 off
6 0 0 0 0 off
7 0 0 0 0 off
8 0 0 0 0 off
9 0 0 0 0 off
10 0 0 0 0 off
11 0 0 0 0 off
12 0 0 0 0 off
13 0 0 0 0 off
14 0 0 0 0 off
15 0 0 0 0 off
16 0 0 0 0 off
17 0 0 0 0 off
18 0 0 0 0 off
19 0 0 0 0 off
20 0 0 0 0 off
21 0 0 0 0 off
22 0 0 0 0 off
23 0 0 0 0 off
24 0 0 0 0 off
25 0 0 0 0 off
26 4358 33 1 0 off
sw# conf
sw(config)# int 26
sw(eth-26)# clear
arp Flush all non-permanent entries in the ARP cache.
crypto Remove client public keys from active configuration.
intrusion-flags Reset the Alert Flag on all ports.
link-keepalive Reset link-keepalive counters for all UDLD enabled
ports.
logging Remove all event entries from the event log.
statistics Reset all counters for the specified ports.
sw(eth-26)# clear statistics
[ethernet] PORT-LIST Enter a list of ports or one port for the 'statistics'
command/parameter.
sw(eth-26)# clear statistics 26
sw(eth-26)# sh int
Status and Counters - Port Counters
Flow
Port Total Bytes Total Frames Errors Rx Drops Rx Ctrl
---- ------------ ------------ ------------ ------------ -----
1 0 0 0 0 off
2 0 0 0 0 off
3 0 0 0 0 off
4 0 0 0 0 off
5 0 0 0 0 off
6 0 0 0 0 off
7 0 0 0 0 off
8 0 0 0 0 off
9 0 0 0 0 off
10 0 0 0 0 off
11 0 0 0 0 off
12 0 0 0 0 off
13 0 0 0 0 off
14 0 0 0 0 off
15 0 0 0 0 off
16 0 0 0 0 off
17 0 0 0 0 off
18 0 0 0 0 off
19 0 0 0 0 off
20 0 0 0 0 off
21 0 0 0 0 off
22 0 0 0 0 off
23 0 0 0 0 off
24 0 0 0 0 off
25 0 0 0 0 off
26 0 0 0 0 off
sw(eth-26)#
sw(eth-26)#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2008 11:41 PM
тАО10-16-2008 11:41 PM
Re: How to REALLY clear interface statistics?
Hello Cenk, thank you for the answer, but what will happen when you log off and log on?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2008 12:53 AM
тАО10-17-2008 12:53 AM
Re: How to REALLY clear interface statistics?
You can only permenantly reset the counters by performing a switch reboot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2008 06:09 AM
тАО10-17-2008 06:09 AM
Re: How to REALLY clear interface statistics?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2009 07:19 AM
тАО01-14-2009 07:19 AM
Re: How to REALLY clear interface statistics?
It seems now be solved, at least on ZL model switches!
On the new 13.49 release the command "clear statistics a1" does in fact clear the statistics both in the current session and after logoff/logon.
It should be interesting to see if this would be implemented on other switch models too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2009 05:22 AM
тАО01-16-2009 05:22 AM
Re: How to REALLY clear interface statistics?
http://cdn.procurve.com/training/Manuals/yl-zl-RelNotes-K1345-59914720.pdf (include yl and zl series)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2009 05:45 AM
тАО01-16-2009 05:45 AM
Re: How to REALLY clear interface statistics?
Hello Joey2008,
that was what I wrote above, but do you know if the feature is available on other switch-families (than the latest K.13.4*) ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2014 08:16 AM
тАО07-23-2014 08:16 AM
Re: How to REALLY clear interface statistics?
I know this is aged post. But I am still looking for an answer on this issue.
I tried on a 8212zl switch running K.15.09 code and also a 2910al switch running K.15.14 code. The clear statistics <interface> doesnot persist after log out, login...
Am I missing anything here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2014 07:47 AM
тАО08-27-2014 07:47 AM
Re: How to REALLY clear interface statistics?
The command you are lookiung for is "clear statistics global". This will persist through logoff it clears all counters for all ports.