Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

How to Identify the range of only connected ports

Hi all,

How do I identify the range of all connected ports in 6509 IOS ver 12.1.

Show interface description provide list of all ports with their status, I am interested in identifying only the range of ports which are connected or in 'up up' status.

Ex:

3/10 up

3/11 up

3/12 up

3/13 down

3/14 up

3/15 down

3/16 up

.... there are bout 300 ports

Desired output is 3/10 - 12,3/14, 3/16 so that I can use range command to work on all the ports in up status. Any tool, tip is greately appreciated.

3 REPLIES

Re: How to Identify the range of only connected ports

Hi,

Kindly use, "show ip interface brief | i up".

HTH,

Mohammed Mahmoud.

Bronze

Re: How to Identify the range of only connected ports

Hi

I think better to use "show ip interface brief | exclude down "

This will show you interface with both interface and protocol UP status and will exclude all the "DOWN" status (with even protocol down)

HTH

rgds

Re: How to Identify the range of only connected ports

This command will give the Interfaces which are up & the VLAN they are in & the Description

show interfaces status | include connected

HTH - Pls rate if useful

107
Views
0
Helpful
3
Replies
CreatePlease to create content