Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

53524

January 19th, 2011 10:00

Brocade Commands for WWN change and enable cfg

Hi Guys,

I am used to do things on brocade with GUI and know it very well but i wana save sometime and do some things on the commandline which unfortunately I am not used to .

Can someone please help me with the commands which i can use for the plan below .

Plan -  Change of 2GB HBA with new 4GB HBA Online

1. Change only one HBA port at a time

2. See the login to the switch with new WWNs

3. Insert the new WWNs in the alias/zones/zonset (cfgsave/cfgenable) - commands needed for all, and once we insert the new WWN in alias , we can enable the configuration (cfgenable), right ? or we need to check the zones as well ??

4. Go to Storage frame and add the new WWNs to the current Host group.

5. Rescan for the new paths with 4GB HBA and then go ahead with other replacement.

Thanks for the help in advance.

Rahul

1 Rookie

 • 

20.4K Posts

January 20th, 2011 04:00

why delete zones if he/she is only swapping HBAs ? I would simply remove old WWN and add new WWN to the alias

aliRemove "oracle_hba0",  "21:00:00:20:37:0c:71:d2"

aliAdd "oracle_hba0",  "21:00:00:20:37:0c:23:b4"

reactivate zoneset and you are done.  On the host it depends ..are you using naviagent are you are doing manual registration ?

26 Posts

January 19th, 2011 11:00

Doing it from the GUI is the fastest and best way to do this, especially on a Brocade!

The first I feel should be said............if you are not a SAN trained professional you should NOT be doing this!  Making even one mistake can make your storage unavailable to all applications.  And management tends to frown on that.

You did not mention the O/S version of your Brocade or any model numbers of directors or switches.

Here some basic commands, but you will have to open a book and gather and confirm the details for your version.

You will need to work in confirming the WWN of the old HBA; removing the hardware; and getting the new WWN.  And since you don't mention the hardware involved, it makes me wonder it you have the ability to this harware replacement live and online!

1. Before you begin any changes you always run a backup of current configuration on all fabric/switch

>>>> configupload                I can't give particulars on this, because I don't know what version your running.

2. Gather the WWN and port information for the existing enviroment & document properly.

>>> You may wish to run a cfgshow on your switch to check things there.

But from here I can only suggest commands you will need.

cfgshow   >will give you details of the configuration.  Confirm documenation.

zoneremove > you likely want to use this instead of zonedelete, and yes you type the quotations. Syntax:  zoneremove "this_zone",  "wwn of old hba"

zoneadd > you can use this to add the new HBA's wwn, and yes you type the quotations. Syntax: zoneadd "this_zone", "wwn of new hba"

zoneshow > to check that the zone is correct.  Syntax: zoneshow "this_zone"

                     If you want to rename the zone you may be able to do this with:

zoneobjectrename > Syntax: zoneobjectrename "oldname", "newname"

                    Run cfgshow and see if the new information on the zone is showing

cfgshow

                    If it is (since it wasn't a full zone delete, but an edit) then you should be able to save the configuration and enable it:

cfgsave

cfgenable

If all as worked and you are still up and running fine, then make a fresh backup of this configuration - and me sure to name it different from the last one - Just In Case you need to backup!!!!

2.1K Posts

January 20th, 2011 08:00

I agree with dynamox. I usually do this from the GUI, but I would not delete a zone. I usually would add the new WWN to the zone before removing the old one just to be safe. But I would definitely reuse the existing zone.

124 Posts

January 20th, 2011 09:00

@rworkman , Thanks for the reply and I am SAN professional for long time now, I used the cfgupload to make sure i have the backup of the config.

@dynamox , Thats exactly what  I did , just change the Alias using the GUI (Remove old and add New), save config & then enable config and all was done without any issues.

Then go to the storage frame and do the config on the clariion and add the new HBA entries under the storage/Host groups.

@Allen , Thanks for confirming the same,

26 Posts

January 20th, 2011 10:00

I too agree with not deleting a zone.

The command was zoneremove, not zonedelete.  With zoneremove you can remove the one entry within the zone that needs to be changed.

Regards,

Rita

2.1K Posts

January 20th, 2011 10:00

Sorry Rita, as I said I don't use the CLI very often. I saw "zoneremove" and interpreted it the way it sounds. Sometimes I wonder how engineers come up with some of this stuff. I'm sure it makes sense in the lab when you never actually have to do this stuff in real life :-)

26 Posts

January 20th, 2011 10:00

Not a problem.  I've never been able to figure the inner workings of engineers mind's either.

Kindest regards,

Rita

12 Posts

March 27th, 2015 11:00

dynamox 

I tried doing as you said, but got the below error.

 

aliremove "xxxxx00203_HBA2","50:01:4c:20:00:00:40:01"

worked fine, it actually removed the alias it self,

 

xxx_DEFAULT:FID128:admin> alishow xxxxx00203_HBA2

"xxxxx00203_HBA2" does not exist.

 

so I need to create the alias again.

alicreate "xxxxx00203_HBA2","50:01:4C:20:00:00:40:15"

saved & worked fine

127 Posts

June 16th, 2015 08:00

The correct procedure is to add the new wwn to the alias, then remove the old one.

aliadd "aliname","wwn..."

aliremove "aliname","wwn..."

July 31st, 2015 18:00

Hi RB,

Just want to ask, is it true when we save the config & then enable the config the switch will be rebooted? Need your advice please.

regards,

Oscar Wardhana

12 Posts

September 11th, 2015 14:00

no , it just replace the effective config with saved config

5 Posts

November 13th, 2015 06:00

Hi Sir,

I have one query we can perform zoning using node WWN ?

In my env i am seeing one of fabric zoning was configured with Node WWN as mentioned below. Is it correct way of zoning? Please confirm ASAP. We have downtime this weekend i will change it same window.

Host HBA1

Port WWN:10:00:00:00:c9:e1:87:1d

Node WWN:20:00:00:00:c9:e1:87:1d

Host HBA2

Port WWN: 10:00:00:00:c9:b9:52:db

Node WWN: 20:00:00:00:c9:b9:52:db

SAN Port :50*

Switch A>

zone:  z_WinHostSQL01_HBA1_SANCONB_1B                 50:0a:09:82:9d:c9:f1:5c                 10:00:00:00:c9:e1:87:1d

zone:  z_WinHostSQL01_HBA1_SANCONA_0C                 50:0a:09:83:8d:c9:f1:5c                 10:00:00:00:c9:e1:87:1d

zone:  z_WinHostSQL01_HBA1_SANCONA_1A                 50:0a:09:81:8d:c9:f1:5c                 10:00:00:00:c9:e1:87:1d

zone:  z_WinHostSQL01_HBA1_SANCONB_0D                 50:0a:09:84:9d:c9:f1:5c                 10:00:00:00:c9:e1:87:1d          

Switch A>

Switch B>

zone:  z_WinHostSQL01_HBA2_SANCONA_0D                 50:0a:09:84:8d:c9:f1:5c                 20:00:00:00:c9:b9:52:db

zone:  z_WinHostSQL01_HBA2_SANCONA_1B                 50:0a:09:82:8d:c9:f1:5c                 20:00:00:00:c9:b9:52:db

zone:  z_WinHostSQL01_HBA2_SANCONB_0C                 50:0a:09:83:9d:c9:f1:5c                20:00:00:00:c9:b9:52:db

zone:  z_WinHostSQL01_HBA2_SANCONB_1A                 50:0a:09:83:9d:c9:f1:5c                 20:00:00:00:c9:b9:52:db

Switch B>

No Events found!

Top