cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1298
Views
0
Helpful
5
Replies

Switch port scanning for free ports

kumar.krishna1
Level 1
Level 1

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.

 

1 Accepted Solution

Accepted Solutions

Leo Laohoo
Hall of Fame
Hall of Fame

@kumar.krishna1 wrote:

Will the last input/output counter reset itself when the switch got rebooted?


Of course.  The counter goes back to "0".

View solution in original post

5 Replies 5

Leo Laohoo
Hall of Fame
Hall of Fame

@kumar.krishna1 wrote:

Will the last input/output counter reset itself when the switch got rebooted?


Of course.  The counter goes back to "0".

Thank you

balaji.bandi
Hall of Fame
Hall of Fame

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)

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hi Balaji,

 

Thanks for this useful commands. 

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.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco