11-27-2013 03:18 AM
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.
11-27-2013 04:52 AM
..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.
portdisable [slot/]port1[-port2] [...]
portdisable -i[index1[-index2] [...] [-f]]
portdisable -slot[slot1[-slot2] [...]
The operands are
On bladed systems only, specifies the slot number of the ports to be disabled,
followed by a slash (/).
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.
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.
Ignores nonexisting ports. This operand is valid only with the -ioption.
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.
Displays the command usage.
11-28-2013 04:44 AM
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.
zoning: ON (CFG)
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