02-01-2021 02:04 AM - edited 02-01-2021 02:09 AM
Hi,
I have a requirement of some free ports from an existing access switch in out network environment. I have collected the information of free ports based on the below interface counter statistics.
Last input never, output never, output hang never
Last clearing of "show interface" counters never
However, this switch got rebooted few weeks ago. so my question is,
1. Will the last input/output counter reset itself when the switch got rebooted? or can we consider this port has never been used even before the reboot of the switch?
Due to the COVID19, users never used the office since last one year. But this switch is running last 4 years. Kindly clarify my doubt please. Thanks in advance.
Solved! Go to Solution.
02-01-2021 02:17 AM
@kumar.krishna1 wrote:
Will the last input/output counter reset itself when the switch got rebooted?
Of course. The counter goes back to "0".
02-01-2021 02:17 AM
@kumar.krishna1 wrote:
Will the last input/output counter reset itself when the switch got rebooted?
Of course. The counter goes back to "0".
02-01-2021 04:32 AM
Thank you
02-01-2021 02:23 AM
try this command good :
sh interfaces | include line protocol | [0-9].[y+w]
sh interface | inc line protocol | Last input never, output never
sh interfaces | inc line protocol | [3-9].[y+w]
we use automated script to get information and generate report based on the outcome (out of the box)
02-01-2021 04:36 AM
Hi Balaji,
Thanks for this useful commands.
02-01-2021 05:10 AM
no worries, i have missed some comments - when you reload the device it hard to get right statistics due to switch uptime is very short, you need to get wait for 7 days to get port results. - until you doing contstant report as a base line port report - before reboot take place.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide