Brocade · EMC

Brocade Command Line

I love the Brocade GUI, but I hate Java. I usually find my way with the workarounds out there to be able to display the Java plugins, but this time I wasted too much time on something that can be done in the command line. I was at a customer’s site and we added a few servers to the Fabric. These are the commands I used to update the zoning.

  1. switchshow: Displays switch and port status.
  2. portloginshow <port #>: display WWPN on NPIV ports
  3. alishow: Displays zone alias information.
  4. cfgshow: Use this command to display zone configuration information.
  5. zoneshow: Displays zone information
  6. zonehelp: To help find the commands you will need.

With the information I gathered from the commands above I was able to add aliases, zones and then add the zone to the current configuration. The save and enable the config.

Fabric B:

alicreate “dc3_esx_11”, “50:01:43:80:24:d2:9b:b6”
alicreate “dc3_esx_12”, “50:01:43:80:24:d2:9e:ee”
alicreate “dc3_esx_13”, “50:01:43:80:24:d2:7d:de”

zonecreate “dc3_sp_01_dc3_esx_11”, “dc3_sp_01;dc3_esx_11”
zonecreate “dc3_sp_02_dc3_esx_11”, “dc3_sp_02;dc3_esx_11”
zonecreate “dc3_sp_01_dc3_esx_12”, “dc3_sp_01;dc3_esx_12”
zonecreate “dc3_sp_02_dc3_esx_12”, “dc3_sp_02;dc3_esx_12”
zonecreate “dc3_sp_01_dc3_esx_13”, “dc3_sp_01;dc3_esx_13”
zonecreate “dc3_sp_02_dc3_esx_13”, “dc3_sp_02;dc3_esx_13”

cfgadd “Running_Config”, “dc3_sp_01_dc3_esx_11;dc3_sp_02_dc3_esx_11”
cfgadd “Running_Config”, “dc3_sp_01_dc3_esx_12;dc3_sp_02_dc3_esx_12”
cfgadd “Running_Config”, “dc3_sp_01_dc3_esx_13;dc3_sp_02_dc3_esx_13”

cfgSave
cfgEnable “Running_Config”

Fabric A:
alicreate “dc3_esx_11”, “50:01:43:80:24:d2:9b:b4”
alicreate “dc3_esx_12”, “50:01:43:80:24:d2:9e:ec”
alicreate “dc3_esx_13”, “50:01:43:80:24:d2:7d:dc”

zonecreate “dc3_sp_01_dc3_esx_11”, “dc3_sp_01;dc3_esx_11”
zonecreate “dc3_sp_02_dc3_esx_11”, “dc3_sp_02;dc3_esx_11”
zonecreate “dc3_sp_01_dc3_esx_12”, “dc3_sp_01;dc3_esx_12”
zonecreate “dc3_sp_02_dc3_esx_12”, “dc3_sp_02;dc3_esx_12”
zonecreate “dc3_sp_01_dc3_esx_13”, “dc3_sp_01;dc3_esx_13”
zonecreate “dc3_sp_02_dc3_esx_13”, “dc3_sp_02;dc3_esx_13”

cfgadd “Running_Config”, “dc3_sp_01_dc3_esx_11;dc3_sp_02_dc3_esx_11”
cfgadd “Running_Config”, “dc3_sp_01_dc3_esx_12;dc3_sp_02_dc3_esx_12”
cfgadd “Running_Config”, “dc3_sp_01_dc3_esx_13;dc3_sp_02_dc3_esx_13”

cfgSave
cfgEnable “Running_Config”

And there you have it, three servers with two HBA’s each, added to a VNX with two FC connections to each Fabric. In this case the original configuration doesn’t make any distinctions between servers on each switch. I always try to add HBA1 or HBA2, or SPA_P0 and SP_P1, but the approach used here makes it very simple. Check the complete guide:

http://www1.brocade.com/downloads/documents/product_manuals/B_SAN/FOS_CmdRef_v700.pdf

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.