Escolar Documentos
Profissional Documentos
Cultura Documentos
January 2008
Step 2: Set the management IP network parameters of the switch (and, optionally, the
FCIP/iFCP network parameters too).
mySwitch01:admin> ipaddrset
Ethernet IP Address [192.168.74.102]: 192.168.0.100
Ethernet Subnetmask [255.255.255.0]: 255.255.255.0
Fibre Channel IP Address [0.0.0.0]: <CR> or IP if using FCIP
Fibre Channel Subnetmask [0.0.0.0]: <CR> of netmask if using FCIP
Gateway IP Address [0.0.0.0]: 192.168.0.1
DHCP [Off]: off
mySwitch01:admin> ipAddrShow
[ ... output omitted ... ]
To continue the configuration process over an IP connection, at this point you can
connect a laptop to the switch management Ethernet port using a back-to-back
crossover Ethernet cable, as shown in the diagram below. Laptop-to-switch IP
connectivity will be needed to update the switch firmware(s) over either of
FTP/SSH/NFS protocols. In keeping with the example IP address used in “Step 2”
(above) we will assume that the laptop IP address is temporarily set to:
“192.168.0.101/24”. We’ll also assume that the FTP/SSH user profile setup for
firmware upgrade (firmwareDownload(1M)) and configuration backup/restore
(configDownload/configUpload(1M)) purposes is as follows:
Step 3: Check the version of the switch’s “kernel”, “Fabric O/S”, “BootPROM”, etc. If
necessary, update these components using the following procedure. Note: Since
it uses a Linux kernel, the kernel version is actually a Linux kernel
version.
mySwitch01:admin> version
Kernel: 2.4.19
Fabric OS: v5.2.0v5.2.0_pit_060911_0600
Made on: Mon Sep 11 18:55:09 2006
Flash: Mon Sep 11 19:26:15 2006
BootProm: 4.5.3
mySwitch01:admin>
firmwareDownload -s -n -p ftp 192.168.0.101,brocade,release.plist,brocade
Note: Instead or ‘reboot’, you can use ‘fastboot’ which is similar to ‘reboot’
except that POST bypassed. However ‘fastboot’ is not recommended after a firmware
upgrade, since you’ll want to look for console errors while the switch is booting.
Use ‘fastboot’ only if devices connected to the switch being rebooted do not have
alternate paths to the resources provided through that switch. Also note that if
the “diagDisablePost” was run sometime previously, then ‘fastboot’ and ‘reboot’
are equivalent.
mySwitch01:admin> firmwareCommit
Validating primary partition...
Doing firmwarecommit now.
Please wait ...
Replicating kernel image
...............
FirmwareCommit completes successfully.
Except for commands that may require a reboot of the switch, or which may initiate a
reboot automatically, the remaining steps can be performed from an IP based login.
If the switch is connected to the fabric after is has been powered on, and the
default domain ID is already in use, the fabric segments. A domain ID can be any
number from 1 to 239 inclusive.
To find the domain IDs that are currently in use, run the fabricShow command on
another switch already participating in the fabric (column 1 of the output indicates
the domain ID). Example:
mySwitch01:admin> fabricShow
SwitchID WorldwideName Enet_IPAddr FC_IP Addr Name
-------------------------------------------------------------------------
64: fffc40 10:00:00:60:69:00:06:56 192.168.64.59 192.168.65.59 "sw5"
65: fffc41 10:00:00:60:69:00:02:0b 192.168.64.180 192.168.65.180 "sw180"
66: fffc42 10:00:00:60:69:00:05:91 192.168.64.60 192.168.65.60 "sw60"
67: fffc43 10:00:00:60:69:10:60:1f 192.168.64.187 0.0.0.0 "sw187"
The Fabric has 4 switches
mySwitch01:admin> switchDisable
mySwitch01:admin> configure
The command prompts display sequentially. Enter a new value or press Enter
<CR> to accept each default value.
(d) Complete the remaining prompts, or press Ctrl-D to accept the remaining
settings without completing all the prompts.
mySwitch01:admin> configShow
mySwitch01:admin> switchEnable
For a complete set of configurable options available via the configure command, see
appendix A.
Step 7: Turn off the In-Order-Delivery (IOD) option (on is highly discouraged).
Use the iodReset command to turn off the IOD option. The IOD option is turned off by
default. However, if the IOD option was turned on using iodSet, this command can be
used to turn it off again. Disabling IOD allows fast re-routing after a fabric
topology change. This command may cause out-of-order delivery of frames during
fabric topology changes.
mySwitch01:admin> iodReset
mySwitch01:admin> iodShow
IOD is not set
Use this command to enforce in-order delivery of frames during a fabric topology
change. In a stable fabric, frames are always delivered in order, even when the
traffic between switches is shared among multiple paths. However, when topology
changes occur in the fabric (for instance, a link goes down), traffic is rerouted
around the failure and some frames might be delivered out of order. This command
ensures that frames are not delivered out-of-order, even during fabric topology
changes. The default behavior is for the IOD option to be off. This command should
be used with caution, because it can cause a delay in the establishment of a new
path when a topology change occurs. Only if there are devices connected to the
fabric that do not tolerate occasional out-of-order delivery of frames, should this
command be used.
Step 8: Set date/time of the switch manually or by NTP server, and its timezone.
mySwitch01:admin> date “mmddHHMMyy”
mySwitch01:admin> date "0227123007"
Thu Feb 27 12:30:00 UTC 2007
mySwitch01:admin> date
Thu Feb 27 12:30:02 UTC 2007
mySwitch01:admin> timeout 15
IDLE Timeout Changed to 15 minutes
The modified IDLE Timeout will be in effect after NEXT login
After you enter a license, the licensed product is available immediately and the
system does not need to be rebooted. An exception to this general handling is that
the switch must be rebooted if a fabric license is added to a switch that lacks a
fabric license. In this case, the switch must be rebooted to allow the software to
recognize the license and initialize itself correctly. Also, there is special
handling required when a trunking license is added to the switch. For a trunking
license to become effective, the trunk ports need to be refreshed using the commands
portDisable and portEnable or the switch must be refreshed using the commands
switchDisable and switchEnable.
mySwitch01:admin> licenseShow
bQebzbRdScRfc0iK:
Web license
Zoning license
aBcDeFGh12345678:
Fabric license
Step 11: Set and/or show the policies for handling switch status changes.
mySwitch01:admin> switchStatusPolicySet
mySwitch01:admin> switchStatusPolicyShow
Step 12: Plug in SFP’s, end devices, and inspect output of the following commands.
mySwitch01:admin> nsAllShow
mySwitch01:admin> fabricShow
mySwitch01:admin> configShow
mySwitch01:admin> portShow
mySwitch01:admin> switchShow
#######################################################
# Create Brocade Fabric O/S Zone Member Aliases. #
#######################################################
##############################
# Storage Ports (brocade-sw1 #
##############################
mySwitch01:admin> aliCreate "FC4700_SPA_Port0", "50:06:01:60:fb:00:00:00"
mySwitch01:admin> aliCreate "FC4700_SPB_Port0", "50:06:01:68:fb:00:00:00"
##############################
# Storage Ports (brocade-sw2 #
##############################
mySwitch02:admin> aliCreate "FC4700_SPA_Port1", "50:06:01:61:fb:00:00:00"
mySwitch02:admin> aliCreate "FC4700_SPB_Port1", "50:06:01:69:fb:00:00:00"
##############################
# Zones for brocade-sw1 #
##############################
mySwitch01:admin> zoneCreate "PROD_DB3_PCIslot2_FC4700_SPA_Port0", "PROD_DB3_PCIslot2; FC4700_SPA_Port0"
mySwitch01:admin> zoneCreate "PROD_DB3_PCIslot2_FC4700_SPB_Port0", "PROD_DB3_PCIslot2; FC4700_SPB_Port0"
mySwitch01:admin> zoneCreate "PROD_DB4_PCIslot2_FC4700_SPA_Port0", "PROD_DB4_PCIslot2; FC4700_SPA_Port0"
mySwitch01:admin> zoneCreate "PROD_DB4_PCIslot2_FC4700_SPB_Port0", "PROD_DB4_PCIslot2; FC4700_SPB_Port0"
##############################
# Zones for brocade-sw2 #
##############################
mySwitch02:admin> zoneCreate "PROD_DB3_PCIslot4_FC4700_SPA_Port1", "PROD_DB3_PCIslot4; FC4700_SPA_Port1"
mySwitch02:admin> zoneCreate "PROD_DB3_PCIslot4_FC4700_SPB_Port1", "PROD_DB3_PCIslot4; FC4700_SPB_Port1"
mySwitch02:admin> zoneCreate "PROD_DB4_PCIslot4_FC4700_SPA_Port1", "PROD_DB4_PCIslot4; FC4700_SPA_Port1"
mySwitch02:admin> zoneCreate "PROD_DB4_PCIslot4_FC4700_SPB_Port1", "PROD_DB4_PCIslot4; FC4700_SPB_Port1"
###############################################################################
# Create Brocade Fabric O/S Zones Sets (a.k.a Zone Configurations Container). #
###############################################################################
----------------------------------------------------------------------
Note: It is possible to include more semicolon (;) seperated Zones
within the cfgCreate / cfgAdd commands below, but eventually the
lines become too long for the Brocade Fabric O/S shell to handle.
So we play it safe and create the ZoneSet with one Zone (via
cfgCreate), and then add one Zone at a time (via cfgAdd).
----------------------------------------------------------------------
#############################
# Zone Sets for brocade-sw1 #
#############################
mySwitch01:admin> cfgCreate "PROD_ZONE1_SW1", "PROD_DB3_PCIslot2_FC4700_SPA_Port0"
mySwitch01:admin> cfgAdd "PROD_ZONE1_SW1", "PROD_DB3_PCIslot2_FC4700_SPB_Port0"
mySwitch01:admin> cfgAdd "PROD_ZONE1_SW1", "PROD_DB4_PCIslot2_FC4700_SPA_Port0"
mySwitch01:admin> cfgAdd "PROD_ZONE1_SW1", "PROD_DB4_PCIslot2_FC4700_SPB_Port0"
mySwitch01:admin> cfgAdd "PROD_ZONE1_SW1", "PROD_ERP3_PCIslot2_FC4700_SPA_Port0"
mySwitch01:admin> cfgAdd "PROD_ZONE1_SW1", "PROD_ERP3_PCIslot2_FC4700_SPB_Port0"
mySwitch01:admin> cfgSave
mySwitch01:admin> cfgShow
mySwitch01:admin> cfgEnable "PROD_ZONE1_SW1"
#############################
# Zone Sets for brocade-sw2 #
#############################
mySwitch02:admin> cfgCreate "PROD_ZONE1_SW2", "PROD_DB3_PCIslot4_FC4700_SPA_Port1"
mySwitch02:admin> cfgAdd "PROD_ZONE1_SW2", "PROD_DB3_PCIslot4_FC4700_SPB_Port1"
mySwitch02:admin> cfgAdd "PROD_ZONE1_SW2", "PROD_DB4_PCIslot4_FC4700_SPA_Port1"
mySwitch02:admin> cfgAdd "PROD_ZONE1_SW2", "PROD_DB4_PCIslot4_FC4700_SPB_Port1"
mySwitch02:admin> cfgSave
mySwitch02:admin> cfgShow
mySwitch02:admin> cfgEnable "PROD_ZONE1_SW2"
Cheat Sheet of Brocade CLI commands:
help - prints available commands
switchdisabled - disable the switch
switchenable - enable the switch
licensehelp - license commands
diaghelp - diagnostic commands
configure - change switch parameters (BB credits, etc)
diagshow - POST results since last boot
routehelp - routing commands
switchshow - display switch show (normally first command to run to obtain switch
configuration)
supportshow - full detailed switch info
portshow # - display port info
nsshow - namesever contents
nsallshow - NS for full fabric
fabricshow - Fabric information
version - firmware code revision
reboot - full reboot with POST
fastboot - reboot without POST
zonecreate (zone) - create a zone
zoneshow - shows defined and effective zones and configurations
zoneadd - adds a member to a zone
zoneremove - removes a member from a zone
zonedelete - delete a zone
cfgcreate (zoneset) - create a zoneset configuration
cfgadd - adds a zone to a zone configuration
cfgshow - display the zoning information
cfgenable - enable a zone set
cfgsave - saves defined config to all switches in fabric across reboots
cfgremove - removes a zone from a zone configuration
cfgdelete - deletes a zone from a zone configuration