adeel_1j0o5atg191t5's profile

4 Messages

 • 

152 Points

Wed, May 12, 2021 2:43 PM

command to find ports down for a long time icx 7250

I am looking for a command to list all unused ports for a long period of time. I have tried different combinations but not not getting complete info, none of them listing the interface

sh int | i GigabitEthernet* | Port*.down
Port down for 244 day(s) 1 hour(s) 16 minute(s) 47 second(s)

sh int  | i int | Port*.down
Port down for 244 day(s) 1 hour(s) 2 minute(s) 1 second(s)

Responses

Accepted Solution

35 Messages

 • 

828 Points

17 d ago

Are you looking for this to output in a single line per port?  If now, why would something like show int | I down not work?  Outputs lines with the word Down in it.  So if the port is up, you wouldn't see the interface or the uptime.  But you would see all down ports and their duration.

show interfaces | i down

GigabitEthernet1/1/2 is down, line protocol is down 

  Port down for 13 day(s) 19 hour(s) 37 minute(s) 21 second(s) 

GigabitEthernet1/1/3 is down, line protocol is down 

  Port down for 13 day(s) 19 hour(s) 37 minute(s) 21 second(s) 

GigabitEthernet1/1/4 is down, line protocol is down 

  Port down for 13 day(s) 19 hour(s) 37 minute(s) 21 second(s) 

GigabitEthernet1/1/5 is down, line protocol is down 

  Port down for 13 day(s) 19 hour(s) 37 minute(s) 21 second(s) 

GigabitEthernet1/1/6 is down, line protocol is down 

  Port down for 13 day(s) 19 hour(s) 37 minute(s) 21 second(s) 

GigabitEthernet1/1/7 is down, line protocol is down 

  Port down for 13 day(s) 19 hour(s) 37 minute(s) 21 second(s) 

GigabitEthernet1/1/8 is down, line protocol is down 

  Port down for 13 day(s) 19 hour(s) 37 minute(s) 21 second(s) 

GigabitEthernet1/1/9 is down, line protocol is down 

  Port down for 13 day(s) 19 hour(s) 37 minute(s) 21 second(s) 

GigabitEthernet1/1/10 is down, line protocol is down 

  Port down for 13 day(s) 19 hour(s) 37 minute(s) 21 second(s) 

GigabitEthernet1/1/12 is down, line protocol is down 

  Port down for 13 day(s) 19 hour(s) 37 minute(s) 21 second(s) 

10GigabitEthernet1/3/1 is down, line protocol is down 

  Port down for 13 day(s) 19 hour(s) 37 minute(s) 21 second(s) 

10GigabitEthernet1/3/2 is down, line protocol is down 

  Port down for 13 day(s) 19 hour(s) 37 minute(s) 21 second(s)    

GigEthernetmgmt1 is down, line protocol is down 

  Port down for 13 day(s) 19 hour(s) 37 minute(s) 53 second(s) 

4 Messages

 • 

152 Points

@brian_powers Thank you! This is exactly what I was looking for.

4 Messages

 • 

152 Points

1 m ago

bump!

Important Announcement