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

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
Highlighted
Participant

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

Highlighted

Wait for 10 days..??? :O

Highlighted

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. 

Highlighted

Dear Ton,

please use the following command.

sh int | inc line protocol is|Last input

Highlighted

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

Content for Community-Ad