Display and change the link operating mode of the network interface in Brocade.

Display and change the  link operating mode of the network interface in Brocade.

1,Use the following command to display the link operating mode and  MAC address of the network interface.

ifmodeshow interface

interface:- Specifies   the   name  of  the  interface, Valid  interfaces are eth0,eth3 and bond0(valid only on the CP of a DCX or a DCX-S4).
On  the CP of a Brocade DCX or DCX-S4, this command supports eth0 and eth3 as interface parameters. On  all  other  plat-forms,  only  eth0  is supported.

example:-

   swprod10:admin> ifmodeshow eth0
        Link mode: negotiated 100baseTx-HD, link ok
        MAC Address: 00:61:69:D2:23:32

2,Use the following command to set the link operating mode for  a  net- work interface.

ifmodeset interface

It is recommended that you only use this command from the serial console port.
An  operating  mode  is confirmed with a "y" or "yes" at the prompt.

example:-

    swprod10:admin> ifmodeset eth0

Are you sure you really want to do this? (yes, y, no, n): [no] y
        Proceed with caution.
        Auto-negotate (yes, y, no, n): [no] y
        Advertise 100 Mbps / Full Duplex (yes, y, no, n): [yes] y
        Advertise 100 Mbps / Half Duplex (yes, y, no, n): [yes] y
        Advertise 10 Mbps / Full Duplex (yes, y, no, n): [yes] y
        Advertise 10 Mbps / Half Duplex (yes, y, no, n): [yes] y
        Committing configuration...done.
        swprod10:admin>

Brocade Zoning using CLI

It is quite simple to do zoning using CLI in Brocade switches.


The commands associated with zoning are as follows


alicreate
zonecreate
cfgadd
cfgsave
cfgenable

1,login as: admin

2,Create alias for the curresponding WWN. Make sure alias name start with letter a-z or A-Z

switch10:admin> alicreate "solprod06","50:06:0e:80:04:ea:db:00"
switch10:admin> alicreate "stopro01","10:00:00:00:c9:4a:87:30"

3,create zone for the selected devices

Usage: zonecreate "arg1", "arg2"
zonecreate "zonename", "member[; member...]"

switch10:admin> zonecreate "solpod_storage","solprod06; stopro01"

4, Add new zone to existing configuration.

To find the current configuration, run "cfgshow" command,
switch10:admin> cfgshow
Defined configuration:
cfg: prodcon

USAGE:- cfgadd "cfgName", "member[; member]"

switch10:admin> cfgadd "prodcon", "solpod_storage"

5, Save the changes to memory.

switch10:admin> cfgsave


You are about to save the Defined zoning configuration.
This action will only save the changes on Defined
configuration.Any changes made on the Effective configuration will not
take effect until it is re-enabled.
Do you want to save Defined zoning configuration only?
(yes, y, no, n): [no] y
Updating flash ...

6, Enable the configuration

switch10:admin> cfgEnable "prodcon"


You are about to enable a new zoning configuration.
This action will replace the old zoning configuration
with the current configuration selected.
Do you want to enable 'prodcon' configuration
(yes, y, no, n): [no] y
zone config "prodcon" is in effect
Updating flash ...

7, verify the zone using "cfgshow" command. new firmware supports "grep" ,so it is easy to find the changes.



Hope this is helpful.

Find switch port and domain ID using portID


May be applicable only to Brocade!!

System logs always show portIDs while referring to and SAN device error and it is aways tough to find the port details,

For eg:-

syslog: fctl: [ID 517869 kern. warning ] WARNING: fp(0)::PLOGI to 0x91300 failed. state=a reason=3. (Restricted Access Project)

In this error shows portID as 0x91300, so to determine which port is referring to, follow below process

NportID 0x91300


Start separating from left side… like 0x/9/13/00 <--
These values are in Hex format, to identify the actual port we have to Convert all Hex numbers to decimal.

9 when converted to decimal it is 9
When 13 is converted to decimal it is 19

So the device is connected to switch port 19 of domain id 9.

Another example:-

NportID 0xc91c00

Again start separating from left…
0x/c9/1c/00 <-

c9 is 201 in decimal and 1c is 28 in decimal. So device is connected to port 28 in domain ID 201.



But it seems this is only applicable to B series switches.

How to find world-wide name (WWN) of a fibre-channel card in Windows

In windows i don't see any inbuilt tool to find the WWN of the HBA card associated with a server.

I Did a series of search and found some tools associated with card manufacturers like Qlogic(SANsurfer utility) and Emulux(HBAnyware utility). But consider the case if none of the tools are installed on your server?
i continued my search and finally i got "fcinfo" for windows. it is pretty good tool and gives much information related to your HBA and other stuff.
fcinfo for windows can be downloaded from following  link:-

The installation of this package is too simple. download the package which suits to your server and double click on it.

accept the License agreement and click install to continue



Wait till the installation completes,



Click finish when it prompts.
To Run fcinfo, just go to command line and type the following
c:\fcinfo

you will get the WWN details of the attached FC cards.
and if you type fcinfo /? it will give you the supported options list(help).










it is not necessary to install fcinfo on server. just copy fcinfo and other  associated files(fcinfo.exe, hbaapi.dll and hbatapi.dll) from any fcinfo installed server and put those files together in a folder and you can run fcinfo without trouble.

Hope this help!!

How to find the world-wide name (WWN) of a fibre-channel card in IBM AIX

To find the world-wide name (WWN) or network address of a fibre-channel (FC) card in IBM AIX:

First find the name of your fibre-channel cards:

#  lsdev -C | grep fcs

Then get the WWN:

# lscfg -vp -l fcs0 | grep "Network Address"

Example:

# lsdev -C| grep fcs

fcs0            Available 06-08         FC Adapter
fcs1            Available 06-09         FC Adapter
fcs2            Available 08-08         FC Adapter
fcs3            Available 08-09         FC Adapter
fcs4            Available 0C-08         FC Adapter
fcs5            Available 0C-09         FC Adapter
fcs6            Available 0D-08         FC Adapter
fcs7            Available 0D-09         FC Adapter


lscfg -vp -l fcs0 | grep "Network Address"

# lscfg -vp -l fcs0 | grep "Network Address"
        Network Address.............10000000C9780B7A

# lscfg -vp -l fcs1 | grep "Network Address"
        Network Address.............10000000C9780B7B
Admin Helpline™ © , All Rights Reserved.
Privacy Policy