Seems to work as expected with new session when I add global
8360-1# sh int 1/1/41 | b Statis
Statistic RX TX Total
---------------- -------------------- -------------------- --------------------
Packets 2226992 2226287 4453279
Unicast 2225216 2224490 4449706
Multicast 1673 1695 3368
Broadcast 103 102 205
Bytes 2771017482 2770826703 5541844185
8360-1# clea int statistics global
Warning: clearing statistics globally will be reflected in all CLI
sessions, any agents running in the analytics engine, and any external
systems monitoring switch statistics.
Continue (y/n)? y
Started a new SSH session, I don't see stats from original session
================================
8360-1# sh int 1/1/41 | b Statis
Statistic RX TX Total
---------------- -------------------- -------------------- --------------------
Packets 23 22 45
Unicast 9 8 17
Multicast 13 13 26
Broadcast 1 1 2
------------------------------
DWan
------------------------------
Original Message:
Sent: Sep 07, 2022 02:46 PM
From: Nihro Abdel
Subject: Interface Statistics
Thanks DWan,
When I do that it only clears it while the session is open, when I close and reopen the session the old statistics comes back, I was wondering if there is another CLI to clear it permanently even when I close the session I can come back another day and look at a new statistics for that interface.
Original Message:
Sent: Sep 07, 2022 11:28 AM
From: Daryl Wan
Subject: Interface Statistics
8360-01# clear interface
IFNAME Interface name (e.g. 1/1/1)
IFRANGE PORT identifier range
statistics Clear interface statistics (current session only)
8360-01# clear interface statistics
global Clear hardware interface statistics for all sessions
<cr>
Add global to the command
------------------------------
DWan
Original Message:
Sent: Sep 01, 2022 12:58 PM
From: Nihro Abdel
Subject: Interface Statistics
I have had packet drops "CRC issues", I replaced the SFP and wanted to check if there is any new packet drops, I have cleared the int statistics and it's unfortunately session based, once I close the session and reopen it, it shows me the old statistics.
I am new to HP IOS and was wondering if there is any command lines that clears and resets the int statistics permanently.