Archive

Archive for the ‘Brocade’ Category

How to find the WWID of your HBAs in Linux Redhat

October 18, 2011 1 comment

# systool -vc fc_host
Example output below… what you are looking for is the “port name.” In this case, I have 2 HBAs, considered host5 and host6.

Class = “fc_host”

Class Device = “host5”
Class Device path = “/sys/class/fc_host/host5”
fabric_name = “0x20000024ff27cb78”
issue_lip =
node_name = “0x20000024ff27cb78”
port_id = “0x000000”
port_name = “0x21000024ff27cb78”
port_state = “Online”
port_type = “Unknown”
speed = “unknown”
supported_classes = “Class 3”
supported_speeds = “1 Gbit, 2 Gbit, 4 Gbit”
symbolic_name = “QLE2462 FW:v5.03.02 DVR:v8.03.01.05.05.06-k”
system_hostname = “”
tgtid_bind_type = “wwpn (World Wide Port Name)”
uevent =

Device = “host5”
Device path = “/sys/devices/pci0000:00/0000:00:07.0/0000:1f:00.0/host5”
ct =
els =
fw_dump =
nvram = “ISP ”
optrom_ctl =
optrom =
reset =
sfp = “”
uevent =
vpd = “\ufffd2”

Class Device = “host6”
Class Device path = “/sys/class/fc_host/host6”
fabric_name = “0x100000051e35ad55”
issue_lip =
node_name = “0x20000024ff27cb79”
port_id = “0x011000”
port_name = “0x21000024ff27cb79”
port_state = “Online”
port_type = “NPort (fabric via point-to-point)”
speed = “4 Gbit”
supported_classes = “Class 3”
supported_speeds = “1 Gbit, 2 Gbit, 4 Gbit”
symbolic_name = “QLE2462 FW:v5.03.02 DVR:v8.03.01.05.05.06-k”
system_hostname = “”
tgtid_bind_type = “wwpn (World Wide Port Name)”
uevent =

Device = “host6”
Device path = “/sys/devices/pci0000:00/0000:00:07.0/0000:1f:00.1/host6”
ct =
els =
fw_dump =
nvram = “ISP ”
optrom_ctl =
optrom =
reset =
sfp = “”
uevent =
vpd = “\ufffd2”

Helpful Brocade commands list

November 9, 2010 Leave a comment
# Add a memeber to a zone
> zoneadd "Crm1_zoneA", "server1_pci0_emulex"

# Copy an existing zone
> zoneCopy

# Create a new zone
> zonecreate "ZoneName", "Alias"

# Delete a zone
> zoneDelete

# Remove a zone from the configuration
> zoneRemove

# Rename a zone
> zoneRename

# Print the current zone configuration
> zoneShow

# Add a member to the configuration
> cfgAdd

# Copy a zone configuration
> cfgCopy

# Create a zone configuration
> cfgCreate

# Delete a zone configuration
> cfgDelete

# Remove a member from a zone configuration
> cfgRemove

# Rename a zone configuration
> cfgRename

# Print zone configuration
> cfgShow

# Add a member to a zone alias
> aliAdd

# Copy a zone alias
> aliCopy

# Create a zone alias
> aliCreate "server1_pci0_emulex", "10:00:00:00:c9:32:75:92"

# Delete a zone alias
> aliDelete

# Remove a member from a zone alias
> aliRemove

# Rename a zone alias
> aliRename

# Print zone alias information
> aliShow

# Show the entries in the name server
> nsshow

# Dump the error log
> errdump
> errshow

# Dump port errors
> portErrShow

# Print port error log
> portLogDump

# Print port activity
> portLogShow

# Disable and enable the switch
> switchdisable
> switchenable

# Configure a trunk port
> portCfgTrunkPort

# Download new firmware
> firmwareDownload

# Configure the domain and CorePID
> configure

# Show port statistics
> portStatsShow

# Commands required to create a new zone

1. Create an alias
   $ alicreate "<alias name>", "PWWN"

2. Create a zone
   $ zonecreate "Zone_name", "Alias_name; storage_port_alias"

3. Optionally add additional aliases to the zone
   $ zoneadd "Current_zone_name", "Alias_to_add"

4. Optionally remove aliases from a zone
   $ zoneremove "Current_zone_name", "Alias_to_remove"

5. Add the zone to the definied configuration
   $ cfgadd "CFG_Name", "Zone_name"

6. Optionally remove a zone from the effective configuration
   $ cfgremove "cfg_name", "Zone_name_to_remove"

7. Save the definied configuration to persisten storage
   $ cfgsave

8. Enable the configuration
   $ cfgenable "CFG_Name"
Categories: Brocade

Backing up or restoring a Brocade switch configuration

November 9, 2010 Leave a comment

Use “configUpload” and “configDownload” commands to back up/restore  a switch configuration to a remote system. ConfigUplaod has two modes of oepration: interactive mode and automatic mode. To use the interactive mode to upload a config from a switch named switch1 to an ftp server with the IP address 1.2.3.4, configUpload can be run to walk you through backing up the configuration:

switch1:admin> configupload
Server Name or IP Address [host]: 1.2.3.4
User Name [user]: ftp
File Name [config.txt]: switch1_config.txt
Protocol (RSHD or FTP) [rshd]: ftp
Password:
upload complete

The file will be uploaded to the root ftp directory of the user.  Use configDownload to copy a config onto the SAN switch.

Categories: Brocade