cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
777
Views
0
Helpful
4
Replies

what CLI command can I use?

ivybeccukbc
Level 1
Level 1

Hello,

In am looking for CLI commands to show free ports (VSAN 1 interfaces) that are not part of ISL and are not in error

Rgds,

Ivy

1 Accepted Solution

Accepted Solutions

try this

sh int br | grep -v trunking | cut -c 1-14 |grep "/" | grep -v '[0-9]$'

or

sh int br | grep fc | grep -v trunking | grep / | cut -c 1-14 | sed 's/[ \t]*$//' | grep 1$

@dynamoxxx

View solution in original post

4 Replies 4

ivybeccukbc
Level 1
Level 1

I found:

Show vsan 1 membership

minus

how port-channel database

= free ports

--> but maybe... there is an easier way?

Rgds,

Ivy

Or like this:

FDBELF1C1# sh int br

-------------------------------------------------------------------------------

Interface Vsan Admin Admin Status SFP Oper Oper Port

Mode Trunk Mode Speed Channel

Mode (Gbps)

-------------------------------------------------------------------------------

fc1/1 1 E on trunking swl TE 4 1

fc1/2 110 FX off up swl F 4 --

fc1/3 300 FX off up swl F 4 --

fc1/4 300 FX on up swl F 4 --

fc1/5 300 FX off up swl F 4 --

fc1/6 300 FX off up swl F 4 --

fc1/7 1 E on trunking lwcr TE 4 2

fc1/8 110 FX off up swl F 4 --

fc1/9 300 FX off up swl F 4 --

fc1/10 110 FX off up swl F 4 --

fc1/11 300 FX off up swl F 4 --

fc1/12 300 FX on up swl F 4 --

fc1/13 1 E on trunking lwcr TE 4 3

fc1/14 1 FX off down swl -- --

fc1/15 300 FX off up swl F 4 --

fc1/16 110 FX off up swl F 4 --

--> add up all VSAN 1 ports that are not E (or TE or portchannel)

try this

sh int br | grep -v trunking | cut -c 1-14 |grep "/" | grep -v '[0-9]$'

or

sh int br | grep fc | grep -v trunking | grep / | cut -c 1-14 | sed 's/[ \t]*$//' | grep 1$

@dynamoxxx

Hello Dynamoxxx,

Great!

pure and easy

TKX,

Ivy

Review Cisco Networking for a $25 gift card