To see all up/down ports in a switch

Answered Question
Dec 4th, 2009

Dear friends,

Is it possible to get an output of all ports whose interface status is up and line protocol is down.

If i say sh ip int brief | inc down, it also includes down/down status.

I only want up/down status of ports.

Thanks a lot

Gautam

I have this problem too.
0 votes
Correct Answer by justinmitchell about 7 years 1 month ago

Here you go: sh ip int | i up, line protocol is down

Produces the following output,

Router#sh ip int | i up, line protocol is down
FastEthernet0/0 is up, line protocol is down
FastEthernet0/1 is up, line protocol is down
FastEthernet0/2 is up, line protocol is down
FastEthernet0/3 is up, line protocol is down
FastEthernet0/4 is up, line protocol is down
FastEthernet0/5 is up, line protocol is down
FastEthernet0/6 is up, line protocol is down
FastEthernet0/7 is up, line protocol is down
FastEthernet0/8 is up, line protocol is down
FastEthernet0/9 is up, line protocol is down
FastEthernet0/10 is up, line protocol is down
FastEthernet0/11 is up, line protocol is down
FastEthernet0/12 is up, line protocol is down
FastEthernet0/13 is up, line protocol is down
FastEthernet0/14 is up, line protocol is down
FastEthernet0/15 is up, line protocol is down

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
justinmitchell Fri, 12/04/2009 - 03:18

Here you go: sh ip int | i up, line protocol is down

Produces the following output,

Router#sh ip int | i up, line protocol is down
FastEthernet0/0 is up, line protocol is down
FastEthernet0/1 is up, line protocol is down
FastEthernet0/2 is up, line protocol is down
FastEthernet0/3 is up, line protocol is down
FastEthernet0/4 is up, line protocol is down
FastEthernet0/5 is up, line protocol is down
FastEthernet0/6 is up, line protocol is down
FastEthernet0/7 is up, line protocol is down
FastEthernet0/8 is up, line protocol is down
FastEthernet0/9 is up, line protocol is down
FastEthernet0/10 is up, line protocol is down
FastEthernet0/11 is up, line protocol is down
FastEthernet0/12 is up, line protocol is down
FastEthernet0/13 is up, line protocol is down
FastEthernet0/14 is up, line protocol is down
FastEthernet0/15 is up, line protocol is down

Actions

This Discussion