0% found this document useful (0 votes)
46 views13 pages

SAN Switch cheat sheet

This document provides a comprehensive cheat sheet for SAN switches, detailing CLI commands and zoning procedures for M-Series, B-Series, and MDS-Series switches. It includes command lists for configuration, maintenance, and zoning, along with step-by-step instructions for creating and activating zones and zonesets. The document emphasizes best practices for zoning and includes examples for creating zones and managing configurations across different switch models.

Uploaded by

pradyuman.nic
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views13 pages

SAN Switch cheat sheet

This document provides a comprehensive cheat sheet for SAN switches, detailing CLI commands and zoning procedures for M-Series, B-Series, and MDS-Series switches. It includes command lists for configuration, maintenance, and zoning, along with step-by-step instructions for creating and activating zones and zonesets. The document emphasizes best practices for zoning and includes examples for creating zones and managing configurations across different switch models.

Uploaded by

pradyuman.nic
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

SAN Switch cheat sheet

M-Series | B-Series | MDS-Series

M-Series

M-Series (Mcdata) switches uses both web and CLI, the table below displays some but not all the CLI commands.

commadelim Toggle comma-demlimited display mode


config configure settings
login login into CLI with different access rights
maint maintenance settings
perf Performance statistics
reserved reserved for future development
show display attributes
features configure feature settings
ip configure IP settings
logout logout of the CLI
port configure port data
security configure security settings
snmp configure snmp
switch configure switch data
system configure system data
zoning confgiure zoning settings

There are several commands that allow you to navigate through the switch "..", "ctrl-U" and "root" .

M-Series (Mcdata) zoning commands are detailed in the below table

showactive show actively running zoneSet


clearzone clear WWN's in a zone
deletezone remove zone from running config
activezoneset activation of changes
addzone add a new zone to the working area
addwwnmem add a WWN to a zone
showpending show pending zones
renamezone rename a zone
deletewwn delete a WWN from a zone
renamezoneset rename a zone set

Zoning limits

 64 zone sets (max)


 2000 zones (max)
 1024 zones per zone set (max)
 deafult should all ways be disabled (causes all port to see each other creating ghosts in a FA's login table)

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

B-Series (Brocade) zoning commands are detailed in the below table

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
cfgclear clears all zoning information (must disable the effective config first)
cfgdisable disables the effective zone set

B-series creating a zone commands

Creating zone by WWN zonecreate "zone1", "20:00:00:e0:69:40:07:08 ; 50:06:04:82:b8:90:c1:8d"


Create a zone configuration cfgcreate "test_cfg", "zone1 ; zone2"
saving the zone
cfgsave (this will save across reboots)
configuration
enable the zone
cfgenable "test_cfg"
configuration
saving the zone
cfgsave
configuration
view zoning information zoneshow or cfgshow

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.

EXEC mode commands:

attach connect to a specific linecard


bios BIOS related commands
callhome callhome commands
clear reset functions
clock manage the system clock
config enter configuration mode
debug debug functions
discover discover information
exit exit ffrom the submode
fcping Ping a N_Port
fctrace trace a route for a N_Port
load load system image
no disable debugging functions
reload reboot the switch
setup run the basic setup command facility
show display running system information
system system management commands
test test command
write write the current configuration
zone zoning server commands

CONFIG mode commands:

aaa config aaa


boot configure boot variables
callhome enter the callhome configuration mode
clock configure time and date
fcalias fcalias configuration commands
fcanalyzer configure fabric analyzer
fcc configure FCC congestion control
fcdomain enter the fcdomain configuration mode
fcdroplatency configure switch or network latency
fcflow configure fcflow
fcinterop interop commands
fcns Name server configuration
fcroute configure FC routes
fcs Configure fabric config server
fctimer configure fibre channel timers
fspf configure fspf
interface select an interface to configure
ip configure IP features
no Negate a command or set its default
ntp NTP configuration
power configure power supply
poweroff power off module in switch
qos Configure priority of FC control frames
radius-server configure radius related parameters
role configure roles
snmp-server configure snmp
span enter SPAN configuration mode
ssh configure ssh parameters
switchname configure systems network name
system system config command
trunk configure switch wide trunk protocol
username configure username information
vsan enter the vsan configuration mode
zone zoning configuration commands
zoneset zoneset configuration commands

There are several commands that allow you to navigate through the switch "cd", "copy", "dir", "find", "mkdir", "move", "rmdir"
and "tail".

MDS-series creating a zone

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

MDS-series common commands

display logged in WWN, display vsan information # show flogi database


display the specific vsan logins # show fcns database vsan 4
activatng a zoneset # zoneset activate name zone1 vsan 4
delete a zoneset # clear zone dataabse vsan 4
configure the default zone # zone default-zone permit vsan 4
# show zoneset active
display zones and zonsets # show zoneset
# show zoneset active vsan 4
copy active zone set to the full zone set # zone copy active-zoneset full-zoneset vsan 4
distribute the full zoning database to others switches # zoneset distribute full vsan 4

SAN ZONES CREATE FOR CISCO MDS SERIES SWITCH USING THE CLI COMMANDS........

ZONE CREATE STEPS----

1.CHECK THE FLOGI(FABRIC LOGIN) STATUS.

SHOW FLOGI DATABASE


SHOW FCNS DATABASE VSAN 1 <---------STATUS OF VSAN 5

2.DISABLE THE DEFAULT ZONE

NO ZONE DEFAULT-ZONE PERMIT VSAN 1

3.CREATE THE Fc-Alias FOR ZONE

>CONF

>FCALIAS NAME SUN_HBA1 VSAN 1

>MEMBER PWWN 10:00:00:00:C9:B0:B9:8E

>FCALIAS NAME WIN_HBA1 VSAN 1

>MEMBER PWWN 10:00:00:00:C9:6A:33:FF

>FCALIAS NAME VNX_SPA VSAN 1

>MEMBER PWWN 50:06:01:6B:08:60:10:07

>END

>SHOW FCALIAS

4.CREATE THE ZONES

>CONF

>ZONE NAME WIN_HBA1_VNX_SPA VSAN 1

>MEMBER FCALIAS WIN_HBA1

>MEMBER FCALIAS VNX_SPA

>ZONE NAME SUN_HBA1_VNX_SPA VSAN 1

>MEMBER FCALIAS SUN_HBA1

>MEMBER FCALIAS VNX_SPA

>END

>SHOW ZONE

5.CREATE THE ZONESET

>CONF
>ZONESET NAME CLOUD_zone vsan 1

>member win_hba1_vnx_spa

>member sun_hba1_vnx_spa

>end

6.activate the zones

>zoneset activate name cloud_zone vasan 1

7. save the configuration

>copy running-config startup-config

8.validate the zone configuration and show the active zone

>show zoneset

>show zoneset active

----zone delete steps---

1.deactivate the zoneset

>conf

>no zoneset activate name cloud_zone vsan 1

2. delete the zoneset

>no zoneset name cloud_zone vsan 1

3.delete the zones

>no zone name win_hba1_vnx_spa vsan 1

>no zone name sun_hba1_vnx_spa vsan 1

4. delete the Fc-Alias

>no fc-alias name esxi_hba1 vsan 1

>end

>show zoneset
>show zoneset active

HOW TO CREATE ZONE AND ACTIVATE ZONESET CISCO MDS SWITCH:-

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—

SPA-ServerNameHBA1-SW1 (On fabric switch 1)

SPB-ServerNameHBA1-SW1 (On fabric switch 1)

SPA-ServerNameHBA2-SW2 (On fabric switch 2)

SPB-ServerNameHBA1-SW2 (On fabric switch 2)

Note:- PWWN will be member of zones

Zones will be the member of active zoneset in one VSAN


a- Login in to Fabric Switch and check the pwwn on connected ports and identify the
servers. to do this use command

>>show flogi database

Here you will identify the ports connected to servers and SAN Storage

#conf t

Zone name SPA-1-servernameHBA1-sw1 VSAN1

member pwwn xx:xx:xx:xx:xx:xx:xx:xx (San SPA pwwn)

member pwwn xx:xx:xx:xx:xx:xx:xx:xx (Server HBA-1 pwwn)

Step2. Now make member of above zones to active zoneset of your VSAN.

To check which zoneset is active

#show zoneset active

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.

#zoneset name test vsan1


#member SPA-1-servernameHBA1-SW1

#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.

#zoneset activate name test VSAN1

Step4. Now save the configuration and exit.

#copy running-config startup-config

Now should be able to see all pwwn in your storage management software

IMP COMMAND:--

#show flogi database,show zone,show zoneset,sh vsan,sh running-config

Another same method for zoning:-----

How to do zoning on CISCO MDS SAN switches using Command Line


Interface (CLI)

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.

Connect to the switch using ssh/telnet


1. Change into configuration mode

config t

2. Check the vsan database and confirm if the interface is in part of the VSAN

show flogi database int fc1/24

show flogi database int fc2/24

3. Add the ports into the VSAN if it is not in the database

vsan database

vsan 100 interface fc1/24

vsan 100 interface fc2/24

exit

4. Create device alias for the interfaces

device-alias database

device-alias name TESTSERVER_hba0 pwwn xx:xx:xx:xx:xx:xx:xx:xx (WWN from interface 1/24)

device-alias name TESTARRAY_port0 pwwn xx:xx:xx:xx:xx:xx:xx:xx (WWN from interface 2/24)

5. Check that the alias is in pending state to be added

do show device-alias pending-diff

6. Commit device-alias changes

device-alias commit

exit
7. Add a name/ description and enable the ports

int fc1/24

no shut

switchport description TESTSERVER_hba0

int fc2/24

no shut

switchport description TESTARRAY_p0

exit

8. Create zone

zone name TESTSERVER_hba0_TESTARRAY_p0 vsan 100

member devicealias TESTSERVER_hba0

member devicealias TESTARRAY_p0

exit

9. Check Active zoneset

show zoneset active

10. Backup current zoneset (assuming current zoneset is TESTZONESET_Active)

zoneset clone TESTZONESET_Active TESTZONESET_Backup.<Date> vsan 100

11. Add new zone member to zoneset


zoneset name TESTZONESET_Active vsan 100

member TESTSERVER_hba0_TESTARRAY_p0

exit

12. Verify that the zoneset is fully populated

do show zoneset brief vsan 100

13. Activate zoneset

zoneset activate name TESTZONESET_Active vsan 100

exit

14. Verify zone activation status

show zone status vsan 100

15. Ensure that the new zone is part of the active zoneset

show zone name TESTSERVER_hba0_TESTARRAY_p0 active vsan 100

16. Copy the running config to the startup config

copy run start

17. Repeat the above steps Fabric B

This concludes the step by step procedure to do zoning on CISCO MDS SAN switches using Command
Line Interface (CLI)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy