Fibre Channel (SAN)

Reply
New Contributor
Posts: 3
Registered: ‎05-24-2012

Index No. of switch port

Hi,

 

What is the signifcance of switch index no? If we need to disable a port ( requirement is to disable a switch port so that LUNs are not visible to host ) then is it required to disable port by it's index no or port no?  please explain me in detail.

Regular Contributor
Posts: 161
Registered: ‎12-30-2009

Re: Index No. of switch port


mrityunjoy.kundu wrote:

Hi,

 

..requirement is to disable a switch port so that LUNs are not visible to host ..


 

To be honest the requirement is that the host cannot see the LUN.

How that's solved technically is a different matter.

 

-disabling the port is one way

-removing the zone(s) for the host another way

-masking the LUN on the array is a third way

 

To answer your question, the command you're searching for if portdisable or portcfgpersitentdisable

And as allways there are different ways to accomplish this task as you can use the portindex or blade/port notation.

Below you'll find what the FOS CMD refguide has on portdisable.

 

Synopsis

portdisable [slot/]port1[-port2] [...]
portdisable -i[index1[-index2] [...] [-f]]
portdisable -slot[slot1[-slot2] [...]
portdisable -h

 

The operands are

slot
On bladed systems only, specifies the slot number of the ports to be disabled,
followed by a slash (/).


port1[-port2]
Disables a single port or a range of ports identified by port numbers. The port
range cannot span slots, but you can specify multiple port ranges pairs separated
by a space, for example, 3/1-4 4/7-9.


-i index1[-index2]
Disables a port or a range of ports identified by port index numbers. You may
specify multiple index ranges separated by a space, for example, -i 33-38 40-60.

 

-f
Ignores nonexisting ports. This operand is valid only with the -ioption.
-slot[slot1[-slot2]
Disables all ports on a slot or on a range of slots, for example, -s3-5. You may
specify multiple slot ranges separated by a space, for example, -s3-5 8-10.

 

-h
Displays the command usage.

 

New Contributor
Posts: 3
Registered: ‎05-24-2012

Re: Index No. of switch port

What is significance of Index no for a switch port?

Regular Contributor
Posts: 161
Registered: ‎12-30-2009

Re: Index No. of switch port

There is none that I'm aware of.

 

Valued Contributor
Posts: 761
Registered: ‎06-11-2010

Re: Index No. of switch port

Hi,

 

the index number in a switch port is the port number.

 

If you take a look at the output of switchshow you'll see the Index number of all the ports in the switch.

 

SWITCH_A:root> switchshow
switchName: SWITCH_A
switchType: 42.2
switchState: Online
switchMode: Native
switchRole: Principal
switchDomain: 1
switchId: fffc01
switchWwn: 10:00:00:11:11:11:11:11
zoning: ON (CFG)
switchBeacon: OFF

Index Slot Port Address Media Speed State Proto
===================================================
0 1 0 010000 id N4 No_Light FC
1 1 1 017e00 id N4 No_Light FC
2 1 2 010200 id 2G No_Light FC
3 1 3 010300 id 2G No_Light FC
4 1 4 010400 id N4 No_Light FC
5 1 5 010500 id N4 No_Light FC
6 1 6 010600 id N4 No_Light FC
7 1 7 010700 id N4 No_Light FC
8 1 8 010800 id N4 No_Light FC
9 1 9 010900 id N4 No_Light FC
10 1 10 010a00 id N4 No_Light FC
11 1 11 010b00 id N4 No_Light FC
12 1 12 010c00 id N4 No_Light FC
13 1 13 010d00 id 4G No_Light FC
14 1 14 010e00 id N4 No_Light FC
15 1 15 010f00 id N4 No_Light FC
128 1 16 018000 id N4 No_Light FC
129 1 17 018100 id 4G No_Light FC
130 1 18 018200 id N4 No_Light FC
131 1 19 018300 id N4 No_Light FC
132 1 20 018400 id N4 No_Light FC
133 1 21 018500 id N4 No_Light FC

 

 

rgds,

Felipon

Join the Community

Get quick and easy access to valuable resource designed to help you manage your Brocade Network.

Download FREE NVMe eBook