SAN Switch cheat sheet
SAN Switch cheat sheet
M-Series
M-Series (Mcdata) switches uses both web and CLI, the table below displays some but not all the CLI commands.
There are several commands that allow you to navigate through the switch "..", "ctrl-U" and "root" .
Zoning limits
B-Series
B-Series (Brocade) switches uses both web and CLI, the table below displays some but not all the 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
MDS-Series
B-Series (Cisco) switches uses both web and CLI, the table below displays some but not all the CLI commands, the ones
highlighted will be the ones used most often.
There are several commands that allow you to navigate through the switch "cd", "copy", "dir", "find", "mkdir", "move", "rmdir"
and "tail".
create a zone and place it in the vsan # zone name testzone1 vsan 4
add a member (port wwn example) # member pwwn 10:00:00:00:c9:21:40:b8 (port on the host)
add a member (fabric port wwn example) # member fwwn 10:01:10:01:10:ab:cd:ef (port on the switch)
add a member (FCID example - hard
# member fcid 0x7f0000 (24 bit address)
zoning)
add a member (FC alias example) # member fcalias payroll
SAN ZONES CREATE FOR CISCO MDS SERIES SWITCH USING THE CLI COMMANDS........
>CONF
>END
>SHOW FCALIAS
>CONF
>END
>SHOW ZONE
>CONF
>ZONESET NAME CLOUD_zone vsan 1
>member win_hba1_vnx_spa
>member sun_hba1_vnx_spa
>end
>show zoneset
>conf
>end
>show zoneset
>show zoneset active
Schenario:-we have storage which is connecting to Cisco fabric mds switches. Storage is having two
controllers and each controller is having two FC connection connected to each fabric switch see diagram
below so each server is making 4 path to the storage LUN . So will creates zones and add to the active
zoneset and activate the zoneset. Bydefault VSAN1 is in MDS switch it is recommended to create new
VSAN make all the zone and zoneset other than VSAN1.
Step1. Create zones on fabric switches Plan zone names for all paths. Example—
Here you will identify the ports connected to servers and SAN Storage
#conf t
Step2. Now make member of above zones to active zoneset of your VSAN.
Now add your all zones to active zoneset. On above output test is the active zoneset on VSAN1. Now to
test zoneset and add the zones. If you don’t have active zoneset same command will create zoneset and
you have to active the zoneset.
#member SPA-2-servernameHBA1-SW1
Step3. Now you have to activate the zoneset either you have created new zoneset or added new zones
to the zoneset.
Now should be able to see all pwwn in your storage management software
IMP COMMAND:--
In this step by step example to demonstrate How to do zoning on CISCO MDS SAN switches using
Command Line Interface (CLI), port 1/24 will be used for server connection and port 2/24 for array port
connection. VSAN 100 will be used as the production VSAN. Replace these values to reflect your
environment and the follow the naming guidelines you may have for device alias, zone and zoneset at
your site.
config t
2. Check the vsan database and confirm if the interface is in part of the VSAN
vsan database
exit
device-alias database
device-alias commit
exit
7. Add a name/ description and enable the ports
int fc1/24
no shut
int fc2/24
no shut
exit
8. Create zone
exit
member TESTSERVER_hba0_TESTARRAY_p0
exit
exit
15. Ensure that the new zone is part of the active zoneset
This concludes the step by step procedure to do zoning on CISCO MDS SAN switches using Command
Line Interface (CLI)