02-15-2011 02:00 AM
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
Solved! Go to Solution.
02-15-2011 07:13 AM
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$
02-15-2011 02:11 AM
I found:
Show vsan 1 membership
minus
how port-channel database
= free ports
--> but maybe... there is an easier way?
Rgds,
Ivy
02-15-2011 02:20 AM
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)
02-15-2011 07:13 AM
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$
02-15-2011 10:45 PM
Hello Dynamoxxx,
Great!
pure and easy
TKX,
Ivy
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide