This page collects the Brocade FOS commands you use on SAN switches at work: checking a switch you have never seen, finding a device, fixing a bad port, zoning a new host, and backing up before a change. Each command has a plain-English line and a working example. The syntax follows Fabric OS 9.x, and almost everything also works on FOS 8.x.
Check the badge before you press Enter. Read only commands only look. Changes config commands change the setup but keep traffic running. Danger commands can cut a host off from its storage, so check twice and follow your change process.
New to Brocade? Our Brocade FC (Fibre Channel) Switches course explains the switch hardware, zoning and firmware upgrades step by step.
Try it yourself: the Brocade tab in the Command Builder fills in these commands with your own port numbers, WWNs, aliases and zone names.
On this page: Before you start · Switch and chassis · Health and hardware · Ports and SFPs · Who is logged in · Zoning · Fabric, ISLs and trunks · Logs and support data · Users and security · Time, syslog and SNMP · Firmware and config backup · Virtual Fabrics and FC routing · Recipes · Commands that don’t work
Before you run any command, double-check it
Read every command twice before you press Enter. Check the switch name, the fabric (A or B), the port number, the WWN and the zone configuration name. The examples follow the Fabric OS command reference; they were not run on your switch. At work, run the read-only commands first, save a copy of cfgshow, follow your change process, and ask a second person to check anything that disables ports or changes zoning. You run these commands at your own risk.
Before you start: how the FOS CLI works
You log in over SSH as admin (or your own account). The prompt shows the switch name and your role, like sw_fabA_01:admin>.
- Command names don’t care about case.
zoneCreateandzonecreateare the same command. Alias, zone and configuration names do care about case. - Port numbers: a fixed switch (G620, G720) uses the port index, like
5. A director (X6, X7) uses slot/port, like3/5. - Help:
helplists commands,help zonecreateshows one command’s syntax. - Long output: commands ending in show may page. Press space for more, or
qto stop.
Switch and chassis information
| Command | What it does | Example | Type |
|---|---|---|---|
switchshow |
Switch name, state, role, domain ID, and every port with its state, speed and the WWN logged in. The first command to run. | switchshow |
Read only |
version |
The Fabric OS version and kernel. | version |
Read only |
firmwareshow |
FOS version on the primary and secondary partitions. Both should match after an upgrade. | firmwareshow |
Read only |
uptime |
How long the switch has been up. | uptime |
Read only |
chassisshow |
Chassis and parts (FRUs) with serial numbers. Ask for this when you log a hardware case. | chassisshow |
Read only |
ipaddrshow |
The management IP address, mask and gateway. | ipaddrshow |
Read only |
license --show |
Installed licenses (FOS 9.x). On FOS 8.x use licenseshow. | license --show |
Read only |
switchname |
Shows the switch name, or sets a new one. | switchname sw_fabA_01 |
Changes config |
help |
Lists commands, or the syntax of one command. | help zonecreate |
Read only |
Health and hardware
On FOS 9.x the health check is MAPS. switchstatusshow no longer exists there.
| Command | What it does | Example | Type |
|---|---|---|---|
mapsdb --show |
The MAPS dashboard: switch health, rules that fired, and which ports have problems. | mapsdb --show |
Read only |
psshow |
Power supply status. | psshow |
Read only |
fanshow |
Fan status and speed. | fanshow |
Read only |
tempshow |
Temperature sensors. | tempshow |
Read only |
sensorshow |
All sensors: temperature, fans, power. | sensorshow |
Read only |
slotshow |
Blades in a director and their state. | slotshow |
Read only |
hashow |
On a director, the state of the two control processors (active and standby, in sync or not). | hashow |
Read only |
historyshow |
The history of parts inserted and removed (the FRU log). | historyshow |
Read only |
clihistory |
The commands typed on this switch, with user and time. | clihistory |
Read only |
Ports and SFPs
| Command | What it does | Example | Type |
|---|---|---|---|
portshow |
Everything about one port: state, speed, WWN logged in, and error counters. | portshow 5 |
Read only |
portcfgshow |
Port settings: speed, trunking, persistent disable and more. | portcfgshow 5 |
Read only |
porterrshow |
Error counters for every port in one table. Look for crc_err, enc_out and link_fail. | porterrshow |
Read only |
portstatsshow |
Detailed counters for one port. | portstatsshow 5 |
Read only |
portstatsclear |
Resets the counters on one port, so you can see if errors are still growing. | portstatsclear 5 |
Changes config |
sfpshow |
SFP type, speed and RX/TX light power. Low RX power usually means a dirty or bad cable. | sfpshow 5 |
Read only |
portname |
Sets a name on the port so anyone can see what is plugged in. | portname 5 -n "HOST01_HBA0" |
Changes config |
portcfgspeed |
Fixes the port speed in Gbps. 0 means auto. The port bounces when you change it. | portcfgspeed 5 16 |
Changes config |
portdisable |
Turns the port off until you enable it or the switch reboots. The device loses its path. | portdisable 5 |
Danger |
portenable |
Turns a disabled port back on. | portenable 5 |
Changes config |
portcfgpersistentdisable |
Turns the port off and keeps it off after a reboot. | portcfgpersistentdisable 5 |
Danger |
portcfgpersistentenable |
Removes a persistent disable. | portcfgpersistentenable 5 |
Changes config |
portbuffershow |
Buffer credits per port. Useful for long-distance links. | portbuffershow |
Read only |
Who is logged in: name server
When a host says “I can’t see my storage”, start here. If the host WWN isn’t in the name server, the problem is the cable, SFP or HBA, not zoning.
| Command | What it does | Example | Type |
|---|---|---|---|
nsshow |
Devices logged in to this switch, with WWN, port ID and type. | nsshow |
Read only |
nscamshow |
Devices logged in to the other switches in the fabric. | nscamshow |
Read only |
nsallshow |
The port ID of every device in the fabric. | nsallshow |
Read only |
nodefind |
Finds one WWN (or alias) anywhere in the fabric and shows which switch and port it is on. | nodefind 10:00:00:10:9b:1a:2b:3c |
Read only |
fdmishow |
HBA details the host reports: model, driver and firmware. | fdmishow |
Read only |
Zoning
Zoning has three layers. An alias gives a WWN a name. A zone says which aliases may talk. A configuration holds the zones, and only one configuration is enabled at a time. Zone members go inside one pair of quotes, separated by semicolons.
| Command | What it does | Example | Type |
|---|---|---|---|
cfgshow |
All zoning: the defined configuration and the enabled one. | cfgshow |
Read only |
cfgactvshow |
Only the zoning that is live right now. | cfgactvshow |
Read only |
alishow |
The WWN behind an alias. | alishow "HOST01_HBA0" |
Read only |
zoneshow |
The members of a zone. | zoneshow "Z_HOST01_HBA0__ARRAY1" |
Read only |
alicreate |
Creates an alias: name first, then the WWN. | alicreate "HOST01_HBA0", "10:00:00:10:9b:1a:2b:3c" |
Changes config |
aliadd |
Adds a WWN to an alias. | aliadd "HOST01_HBA0", "10:00:00:10:9b:1a:2b:3d" |
Changes config |
aliremove |
Removes a WWN from an alias. | aliremove "HOST01_HBA0", "10:00:00:10:9b:1a:2b:3d" |
Changes config |
alidelete |
Deletes an alias. | alidelete "OLDHOST_HBA0" |
Changes config |
zonecreate |
Creates a zone. Use one host HBA per zone (single-initiator zoning). | zonecreate "Z_HOST01_HBA0__ARRAY1", "HOST01_HBA0; ARRAY1_CT0_FC0" |
Changes config |
zoneadd |
Adds members to a zone. | zoneadd "Z_HOST01_HBA0__ARRAY1", "ARRAY1_CT1_FC0" |
Changes config |
zoneremove |
Removes members from a zone. | zoneremove "Z_HOST01_HBA0__ARRAY1", "ARRAY1_CT1_FC0" |
Changes config |
zonedelete |
Deletes a zone. Remove it from the configuration first with cfgremove. | zonedelete "Z_OLDHOST_HBA0__ARRAY1" |
Changes config |
cfgcreate |
Creates a new configuration with its first zone. | cfgcreate "FABRIC_A_CFG", "Z_HOST01_HBA0__ARRAY1" |
Changes config |
cfgadd |
Adds a zone to a configuration. | cfgadd "FABRIC_A_CFG", "Z_HOST01_HBA0__ARRAY1" |
Changes config |
cfgremove |
Removes a zone from a configuration. | cfgremove "FABRIC_A_CFG", "Z_OLDHOST_HBA0__ARRAY1" |
Changes config |
cfgsave |
Saves the defined zoning to flash. It asks you to confirm. It does not change what is live. | cfgsave |
Changes config |
cfgenable |
Saves the configuration and makes it live across the fabric. It asks you to confirm: type y. | cfgenable "FABRIC_A_CFG" |
Danger |
cfgtransshow |
Shows if a zoning change is open and not yet saved. | cfgtransshow |
Read only |
cfgtransabort |
Throws away unsaved zoning changes. | cfgtransabort |
Changes config |
defzone --show |
The default zone: what happens to devices that are in no zone. It should say No Access. | defzone --show |
Read only |
cfgdisable |
Disables the active configuration. With default zone No Access, every host loses its storage. | cfgdisable |
Danger |
cfgclear |
Deletes all defined zoning. Only for a new or isolated switch. | cfgclear |
Danger |
cfgsave or cfgenable? Use cfgsave when you only changed aliases or prepared zones. Use cfgenable when the change must go live. cfgenable already saves, so you don’t need cfgsave before it.
Fabric, ISLs and trunks
| Command | What it does | Example | Type |
|---|---|---|---|
fabricshow |
Every switch in the fabric with domain ID, IP and name. The principal switch has an arrow (>). | fabricshow |
Read only |
islshow |
Each inter-switch link (ISL), its speed and the switch on the other end. | islshow |
Read only |
trunkshow |
Trunk groups and which ports are in them. | trunkshow |
Read only |
topologyshow |
Paths between this switch and the other domains. | topologyshow |
Read only |
portcfgtrunkport |
Turns trunking on (1) or off (0) on a port. The port bounces. | portcfgtrunkport 10 1 |
Changes config |
switchdisable |
Takes every port on the switch offline. Needed for some changes, like a new domain ID. | switchdisable |
Danger |
switchenable |
Brings the switch back online. | switchenable |
Changes config |
configure |
Interactive settings menu (domain ID and fabric parameters). Most options need switchdisable first. | configure |
Danger |
Logs and support data
| Command | What it does | Example | Type |
|---|---|---|---|
errdump |
The whole error log in one go, without paging. Best for copying into a ticket. | errdump |
Read only |
errshow |
The error log one entry at a time. | errshow |
Read only |
supportshow |
A huge dump of switch state. Mostly for vendor support. | supportshow |
Read only |
supportsave |
Collects all logs and sends them to your server for a support case. Without options it asks for the protocol, host, user and folder. | supportsave |
Changes config |
auditcfg --show |
Which events go to the audit log. | auditcfg --show |
Read only |
errclear |
Clears the error log. Run supportsave first, or you lose the evidence. | errclear |
Changes config |
Users and security
| Command | What it does | Example | Type |
|---|---|---|---|
userconfig --show -a |
All user accounts and their roles. | userconfig --show -a |
Read only |
userconfig --add |
Creates a user. It asks for the password, so it is not left in the command history. | userconfig --add jsmith -r admin -d "John Smith" |
Changes config |
userconfig --delete |
Deletes a user. | userconfig --delete jsmith |
Changes config |
passwd |
Changes a password. | passwd jsmith |
Changes config |
aaaconfig --show |
How logins are checked: local, RADIUS, LDAP or TACACS+. | aaaconfig --show |
Read only |
Time, syslog and SNMP
Correct time matters. Without it, switch logs don’t line up with host and array logs during an outage.
| Command | What it does | Example | Type |
|---|---|---|---|
date |
Shows the date and time. | date |
Read only |
tsclockserver |
Shows the NTP server, or sets one. | tsclockserver "192.168.56.10" |
Changes config |
tstimezone |
Sets the time zone through a menu. | tstimezone --interactive |
Changes config |
syslogadmin --show -ip |
The syslog servers the switch sends to. | syslogadmin --show -ip |
Read only |
syslogadmin --set -ip |
Adds a syslog server. | syslogadmin --set -ip 192.168.56.20 |
Changes config |
snmpconfig --show |
SNMP settings, for monitoring tools. | snmpconfig --show snmpv3 |
Read only |
Firmware and configuration backup
Back up before every firmware upgrade and every big zoning change. For the full upgrade steps, see our Brocade firmware upgrade procedure lesson.
| Command | What it does | Example | Type |
|---|---|---|---|
configupload |
Copies the whole switch configuration to a server. It asks for the password. | configupload -all -p scp 192.168.56.20,backup,/backups/sw_fabA_01_2026-11-09.txt |
Changes config |
configshow |
Prints the configuration on screen. | configshow |
Read only |
configdownload |
Restores a saved configuration. A full restore needs the switch disabled. | configdownload |
Danger |
firmwareshow |
The FOS version on both partitions. | firmwareshow |
Read only |
firmwaredownload |
Installs new FOS. Without options it asks for the server, user and path. | firmwaredownload |
Danger |
firmwaredownloadstatus |
Progress of a running upgrade. | firmwaredownloadstatus |
Read only |
firmwareactivate |
Activates firmware you staged earlier with firmwaredownload -r. It swaps partitions and reboots, so plan it like an upgrade. |
firmwareactivate |
Danger |
firmwarecommit |
Copies the new FOS to the second partition. Needed only if you upgraded with autocommit off (-s). | firmwarecommit |
Changes config |
firmwarerestore |
Goes back to the old FOS, before it is committed. | firmwarerestore |
Danger |
reboot |
Reboots the switch. All ports go down. | reboot |
Danger |
hafailover |
On a director, moves control to the standby CP. | hafailover |
Danger |
Virtual Fabrics and FC routing
Large sites split one physical switch into logical switches (Virtual Fabrics), or route between fabrics.
| Command | What it does | Example | Type |
|---|---|---|---|
fosconfig --show |
Shows if Virtual Fabrics and FC routing are on. | fosconfig --show |
Read only |
lscfg --show |
Logical switches and the ports in each. | lscfg --show |
Read only |
setcontext |
Moves your session into one logical switch by its fabric ID. | setcontext 128 |
Read only |
fcrfabricshow |
The fabrics connected through this FC router. | fcrfabricshow |
Read only |
fcrproxydevshow |
Devices shared into other fabrics by the router. | fcrproxydevshow |
Read only |
Recipes: three jobs you’ll do every month
1. Zone a new host to the array
Do this on fabric A, check, then repeat on fabric B with the other HBA.
nodefind 10:00:00:10:9b:1a:2b:3c
cfgshow
alicreate "HOST01_HBA0", "10:00:00:10:9b:1a:2b:3c"
zonecreate "Z_HOST01_HBA0__ARRAY1", "HOST01_HBA0; ARRAY1_CT0_FC0; ARRAY1_CT1_FC0"
cfgadd "FABRIC_A_CFG", "Z_HOST01_HBA0__ARRAY1"
cfgenable "FABRIC_A_CFG"
zoneshow "Z_HOST01_HBA0__ARRAY1"
✅ Checkpoint: cfgactvshow lists the new zone. Now the storage admin can map volumes to the host. Not sure about zoning? Read Zone Configuration of Brocade.
2. A port shows errors (CRC, link failures)
porterrshow
sfpshow 5
portstatsclear 5
portstatsshow 5
Wait 10–15 minutes between the clear and the last command. If the CRC count still grows, clean or replace the cable first, then the SFP. Low RX power in sfpshow points to the cable.
3. A server’s HBA was replaced
The new HBA has a new WWN, so the old alias points to nothing. Find the new WWN with nsshow on the server’s port, update the alias with aliadd and aliremove, then cfgenable. The full steps, including the array side, are in our HBA replacement procedure.
Commands people look for that don’t work
Many blogs copy old or made-up commands. Here is what to use instead.
| You may see | Use this |
|---|---|
switchstatusshow |
mapsdb --show (removed in FOS 9.x) |
licenseshow on FOS 9.x |
license --show |
portcfgspeed 5, 16G |
portcfgspeed 5 16 (number only, 0 = auto) |
cfgsave then cfgenable |
Just cfgenable. It saves too. |
historyshow for command history |
clihistory. historyshow is the parts (FRU) log. |
Common questions
Are Brocade commands case-sensitive? Command names are not: zoneCreate works the same as zonecreate. Alias, zone and configuration names are, so HOST01 and host01 are different aliases.
What is the difference between cfgshow and cfgactvshow? cfgshow shows everything you have defined plus what is enabled. cfgactvshow shows only what the fabric is enforcing right now.
Do I run zoning on every switch? No. Run it once on any switch in the fabric; cfgenable sends it to all switches. Fabric A and fabric B are separate, so you zone each one.
How do I find which port a server is on? Run nodefind with the HBA’s WWN. It shows the switch and port, wherever it is in the fabric.
Further reading: Brocade FOS commands
Broadcom publishes the official Fabric OS Command Reference for each release on Broadcom TechDocs. To learn the switch from the ground up, take our Brocade FC (Fibre Channel) Switches course, and for Cisco fabrics see Cisco SAN switch commands.
