October 22, 2012

Brocade Zoning using CLI


Consider following examples:-

Switches = SW0 (Fabric – A), SW1 (Fabric – B)
Storage Box  =  SOBOSANCX4_SPA1
Host Name = CORALHOST_HBA0
Host PWWN = 21:00:00:1b:32:13:a8:9f
Active ZoneSet = SOBO_U2_SW0_Config

Do the following setups in Fabric – A (SW0)

1.Create a Zone Alias using “AliCreate”

SW0:admin> alicreate "CORALHOST_HBA0"

2.Add member to Alias using “Aliadd”

SW0:admin> aliadd "CORALHOST_HBA0","21:00:00:1b:32:13:a8:9f"

3.Create a Zone using “ZoneCreate”

SW0:admin> zonecreate "SOBOSANCX4_SPA1_CORALHOST_HBA0"

4. Add members to Zone using “ZoneAdd”

SW0:admin> zoneadd "SOBOSANCX4_SPA1_CORALHOST_HBA0","SOBOSANCX4_SPA1”
SW0:admin> zoneadd "SOBOSANCX4_SPA1_CORALHOST_HBA0","CORALHOST_HBA0”

To find an existing Active Zone Set use the below command:-
SW0:admin> cfgactvshow |grep cfg

5.Add a Zone to Zone configuration “CfgAdd”

SW0:admin> cfgadd "SOBO_U2_SW0_Config","SOBOSANCX4_SPA1_CORALHOST_HBA0"

6.Save the Configuration using “CfgSave”

SW0:admin> cfgsave

7.Enable the Configuration using “CfgEnable”

SW0:admin> cfgenable "SOBO_U2_SW0_Config"

Do the corresponding configuration in Fabric - B (SW1) also. Then you all set.

Note: Always use single initiator Zone which typically includes one storage and one host PWWN.


No comments :