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

How to Find Out unused switch ports from large network.

Dear team,

Please help me to find out unused switch port in large network.

(eg) ports which are not used for more then 10 days.

thanks in advance.

Regards,

Khaleelur Rahman.

5 Replies 5

Ton V Engelen
Level 3
Level 3

Hi

what we do

execute the command: 

clear counters (all interfaces / ports)

Wait 10 days

If any port / interface has both 0 input packets AND 0 output packets, the port is unused

Wait for 10 days..??? :O

Yeah

you wanted to know following:

"(eg) ports which are not used for more then 10 days."

So if you clear them today and then wait 10 days you ll have your answer by checking the input and output packets. 

Dear Ton,

please use the following command.

sh int | inc line protocol is|Last input

Harrie Hendriks
Level 1
Level 1

I made 2 php scripts where we can find interface port who are some weeks (default 10 weaks = 70 days) are down.

output of the script gives.

System startup date  (this example switch  04 Aug 2015)

System Uptime          ( 412 days, 1:0:0)

Time script generate  (19 Sep 2016 14:13)

and the ports who are down and when they gone down.

  Index      Poort      Status      LastChange 
  1            Gi0/1        down      04 - 08 - 2015 
  2            Gi0/22      down      22 - 02 - 2016 
  3            Gi0/23      down      04 - 08 - 2015 
  4            Gi0/24      down      04 - 08 - 2015 
  5            Gi0/37      down      10 - 03 - 2016 
  6            Gi0/38      down      10 - 03 - 2016

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:

Review Cisco Networking products for a $25 gift card