Highlighted
StorageAdmin2
3 Argentium

Brocade Commands for WWN change and enable cfg

Jump to solution

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

Labels (1)
0 Kudos
1 Solution

Accepted Solutions
dynamox
6 Thallium

Re: Brocade Commands for WWN change and enable cfg

Jump to solution

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 ?

View solution in original post

0 Kudos
12 Replies
rworkman1
2 Bronze

Re: Brocade Commands for WWN change and enable cfg

Jump to solution

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!!!!

dynamox
6 Thallium

Re: Brocade Commands for WWN change and enable cfg

Jump to solution

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 ?

View solution in original post

0 Kudos
Allen Ward
4 Germanium

Re: Brocade Commands for WWN change and enable cfg

Jump to solution

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.

0 Kudos
StorageAdmin2
3 Argentium

Re: Brocade Commands for WWN change and enable cfg

Jump to solution

@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,

0 Kudos
rworkman1
2 Bronze

Re: Brocade Commands for WWN change and enable cfg

Jump to solution

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

0 Kudos
Allen Ward
4 Germanium

Re: Brocade Commands for WWN change and enable cfg

Jump to solution

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 🙂

0 Kudos
rworkman1
2 Bronze

Re: Brocade Commands for WWN change and enable cfg

Jump to solution

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

Kindest regards,

Rita

0 Kudos
Gurjeet1
1 Copper

Re: Brocade Commands for WWN change and enable cfg

Jump to solution

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

0 Kudos
Narahari1
3 Argentium

Re: Brocade Commands for WWN change and enable cfg

Jump to solution

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

aliadd "aliname","wwn..."

aliremove "aliname","wwn..."

0 Kudos