You are on page 1of 12

Quick Reference

HOME
STORAGES & SAN SWITCHES
OS
SERVER
LEARNINGS
USEFUL PDF FILES
TAPE LIBRARIES & BACUP
EC DATA
Cisco MDS San Switch Command Reference
To Collect Information from Cisco Switch Use the below mentioned commands
# term len 0
# show tech-support details
To collect basic information use the below mentioned commands
# show module
# show version
# show running-config
# show logging log
# show interfaces brief
# show fcns
# show flogi
# show hardware internal errors
# show zoneset active
# show accounting log
Configuring Cisco MDS Zones via CLI
The topic of this post is how to use the command-line interface (CLI) to configure zones on a Cisco MDS 9000
series Fibre Channel switch.
I wont go into great detail on the purpose of zones and that sort of thing; Ill just focus on the mechanics of how its
done.
First, create some aliases for your own use instead of having to remember the Fibre Channel World Wide Port Names
(WWPNs). This will make life a lot easier, in my opinion. You create aliases using the fcalias command, like this
(where applicable in this command and all other commands in this post, replace XXX with the appropriate VSAN
number):
switch(config)# fcalias name stor-array-processor-a vsan XXX
switch(config-fcalias)# member pwwn AA:BB:CC:DD:EE:FF:00:11
switch(config-fclias)# exit
switch(config)#
Replace the fake WWPN I used in the command above with the correct WWPN for that device. Repeat this process for
all the storage processor ports, server HBAs, etc. From this point forward, you can use the alias in place of the WWPN
when creating zones.
Next, create zones. Each zone should have a single initiator and (ideally) a single target, although multiple targets is
usually acceptable. To create a zone, use the zone and member commands like this:
switch(config)# zone name first-new-zone vsan XXX
switch(config-zone)# member fcalias stor-array-processor-a
switch(config-zone)# member fcalias server-hba
switch(config-zone)# exit
switch(config)#
Since each zone contains only a single initiator, youll need to repeat this process for each initiator.
Once you have all the zones created, next create a zoneset. You can create a new zoneset just using
the zoneset command, or you can use an existing zoneset &
Add the new zones youve defined to the zoneset like this:
switch(config)# zoneset existing-zoneset-name vsan XXX
switch(config-zoneset)# member first-new-zone
switch(config-zoneset)# member second-new-zone
switch(config-zoneset)# exit
Finally, activate the zoneset:
switch(config)# zoneset activate name existing-zoneset-name vsan XXX
Then save the configuration with copy runn start and you should be good to go!
Adding a new alias , zone or zoneset
Adding a new alias, zone, or zoneset is similar to modifying an existing alias, zone, or zoneset. For example, to add a
new alias to an existing zone, you would use these commands:
switch(config)# zone name existing-zone-name-here vsan XXX
switch(config-zone)# member fcalias new-alias-to-add
switch(config-zone)# exit
Likewise, adding a new zone to an existing zoneset is similar to defining a new zoneset:
switch(config)# zoneset name existing-zoneset-name vsan XXX
switch(config-zoneset)# member new-zone-to-add
switch(config-zoneset)# member another-new-zone
switch(config-zoneset)# exit
Attaching the Sample SAN Switch Zoning
Creating Alias
fcalias name docmgmt vsan 3
member pwwn 10:00:00:05:1e:c6:45:e2
exit
fcalias name SE9985_1A vsan 3
member pwwn 50:06:0e:80:14:44:80:50
exit
Creating Zone
zone name docmgmt_SE9985_1A vsan 3
member fcalias SE9985_1A
member fcalias docmgmt
exit
Adding Zone to the Zoneset
zoneset name gatisw2config vsan 3
member docmgmt_SE9985_1A
exit
Activating Zoneset
zoneset activate name gatisw2config vsan 3
Copying Running configuration to startup configuration
copy runn start
Cisco MDS 9100 Series Zoning
Before we begin zoning please make sure you have cabled each HBA to both switches assuring the host is connected to
each switch. Now lets get started
Configuring and Enabling Ports with Cisco Device Manager:
Once your HBAs are connected we must first Enable and Configure the ports.
1. Open Cisco Device Manager to enable port:
2. Type in the IP address, username and password of the first switch:
3. Right-click the port you attached FC cable to and select enable:
Cisco allows the usage of multiple VSANs (Virtual Storage Area Network). If you have created a VSAN other than
VSAN 1 you must configure the port for the VSAN you created.
1. To do this, right-click the port you enabled and select Configure:
2. When the following screen appears, click on Port VSAN and select your VSAN, then click Apply:
3. Save your configuration by clicking on Admin and selecting Save Configuration, once the Save Configuration
screen pops up and requests you to select Yes:
Click "Yes"
Once you have enabled and configured the ports, we can now zone your Hosts HBAs to the SAN.
Login to Cisco Fabric Manager:
1. Lets begin by opening Cisco Fabric Manager:
2. Enter FM server username and password (EMC Default admin; password) , then clock Login:
3. Highlight the switch you intend to zone and select Open:
4. Expand the switch and right-click VSAN, then select Edit Local Full Zone Database:
Creating An FC Alias:
In order to properly manage your zones and HBAs, it is important to create an FC Alias for the WWN of each HBA.
The following screen will appear:
1. When it does, right-click FC-Aliases and select Insert, once selected the next screen will appear. Type in the
name of the host and HBA ID, example: SQL_HBAO. Click the down arrow and then select the WWN that corresponds
to your server, finally click OK:
Creating Zones:
Now that we have created FC-Aliases, we can now move forward creating zones. Zones are what isolates connectivity
among HBAs and targets. Lets begin creating zones by:
1. Right-clicking on Zones.
2. Select Insert from the drop down menu. A new screen will appear.
3. Type in the name of the Zone, for management purposes use the following format <name of FC-Alias
host>_<Name of FC Alias Target> Example: SQL01_HBAO_VNX_SPAO.
4. Click OK:
Note: These steps must be repeated to zone the hosts HBA to the second storage controller. In our case, VNX_SPB1.
Adding Members to Zones:
Once the Zones names are created, insert the aliases into the Zones:
5. Right-click on the Zone you created.
6. Select Insert, and a new screen will appear.
7. Select FC-Alias, click on box then select Host FC Alias.
8. Select the target FC Alias, click OK, and click Add:
Cre!"e ! free #e$%i"e #i"&

You might also like