Cisco Zoning Command Line



  1. Confirm WWN is logged in into switch

sanhoue01a# show flogi database | i fc1/23

or 

sanhoue01a# show flogi database | i <WWN>


  1. Confirm given WWN should not part of active zoneset if its new host zoning

sanhoue01a# show zoneset active | i <WWN>


  1. Find out active zoneset and its part of which VSAN

sanhoue01a# show zoneset active | i zoneset

zoneset name Houston_FabricA_20140711 vsan 11


OR you can use below mentioned command to get full detail about active zoneset


sanhoue01a#  sh zone analysis act vsan 11

Zoning database analysis vsan 11

  Active zoneset: Houston_FabricA_20140711

    Activated at: 03:49:37 CDT Jul 11 2014

    Activated by: Local [ CLI ]

    Default zone policy: Deny

    Number of devices zoned in vsan: 19/21 (Unzoned: 2)

    Number of zone members resolved: 86/92 (Unresolved: 6)

    Num zones: 46

    Number of IVR zones: 0

    Number of IPS zones: 0

    Formatted size: 3 Kb / 2048 Kb


  1. Confirm port security status

sanhoue01a# show port-security status

Fabric Distribution Disabled

VSAN 1 :No Active database, learning is disabled, No Session

VSAN 11 :Activated database, learning is disabled, No Session 


  1. Get into config mode,  then inside the port and make sure port is not down

sanhoue01a# config t

Enter configuration commands, one per line.  End with CNTL/Z.

sanhoue01a(config)# int fc1/23

sanhoue01a(config-if)# no shut


  1. Bind the WWN with port using below mentioned command. that is port-security.

sanhoue01a(config-if)# port-security database vsan 11

sanhoue01a(config-port-security)# pwwn 10000090fa5b76f1 interface fc1/23

sanhoue01a(config-port-security)# port-security activate vsan 11 no-auto-learn



  1. Move the port into VSAN

sanhoue01a(config)# vsan database

sanhoue01a(config-vsan-db)# vsan 11 interface fc1/23

Traffic on fc1/23 may be impacted. Do you want to continue? (y/n) [n] y

sanhoue01a(config-vsan-db)#


  1. Create device alias

device-alias database

device-alias name vhhoupb102_hba0 pwwn 10000090fa5b76f1

device-alias commit


the output be like below 

sanhoue01a(config-vsan-db)# device-alias database

sanhoue01a(config-device-alias-db)# device-alias name vhhoupb102_hba0 pwwn 10000090fa5b76f1

sanhoue01a(config-device-alias-db)# device-alias commit


  1. Creating zones using device alias

zone name vhhoupb102_hba0_vmaxhou5887_FA10e0 vsan 11

member device-alias vmaxhou5887_FA10e0

member device-alias vhhoupb102_hba0

zone name vhhoupb102_hba0_vmaxhou5887_FA10f0 vsan 11

member device-alias vhhoupb102_hba0

member device-alias vmaxhou5887_FA10e0

zone name vhhoupb102_hba0_vmaxhou5887_FA7f0 vsan 11

member device-alias vhhoupb102_hba0

member device-alias vmaxhou5887_FA7f0

zone name vhhoupb102_hba0_vmaxhou5887_FA10f0 vsan 11

member device-alias vhhoupb102_hba0

member device-alias vmaxhou5887_FA10f0


the output be like below 

sanhoue01a(config-zone)# zone name vhhoupb102_hba0_vmaxhou5887_FA10e0 vsan 11

member device-alias vmaxhou5887_FA10e0

sanhoue01a(config-zone)# member device-alias vhhoupb102_hba0

member device-alias vhhoupb102_hba0

member device-alias vmaxhou5887_FA7f0

zone name vhhoupb102_hba0_vmaxhou5887_FA10f0 vsan 11

member device-alias vhhoupb102_hba0

sanhoue01a(config-zone)# member device-alias vmaxhou5887_FA10e0

sanhoue01a(config-zone)# zone name vhhoupb102_hba0_vmaxhou5887_FA7f0 vsan 11

sanhoue01a(config-zone)# member device-alias vhhoupb102_hba0

sanhoue01a(config-zone)# member device-alias vmaxhou5887_FA7f0

sanhoue01a(config-zone)# zone name vhhoupb102_hba0_vmaxhou5887_FA10f0 vsan 11

sanhoue01a(config-zone)# member device-alias vhhoupb102_hba0

sanhoue01a(config-zone)# member device-alias vmaxhou5887_FA10f0

sanhoue01a(config-zone)# exit


  1. Confirm zones are created as per the plan

sanhoue01a# show zone name vhhoupb102_hba0_vmaxhou5887_FA7e0 vsan 11

zone name vhhoupb102_hba0_vmaxhou5887_FA7e0 vsan 11

  pwwn 10:00:00:90:fa:5b:76:f1 [vhhoupb102_hba0]

  pwwn 50:00:09:72:08:5b:fd:18 [vmaxhou5887_FA7e0]

sanhoue01a# show zone name vhhoupb102_hba0_vmaxhou5887_FA10e0 vsan 11

zone name vhhoupb102_hba0_vmaxhou5887_FA10e0 vsan 11

  pwwn 10:00:00:90:fa:5b:76:f1 [vhhoupb102_hba0]

  pwwn 50:00:09:72:08:5b:fd:24 [vmaxhou5887_FA10e0]

sanhoue01a# show zone name vhhoupb102_hba0_vmaxhou5887_FA7f0 vsan 11

zone name vhhoupb102_hba0_vmaxhou5887_FA7f0 vsan 11

  pwwn 10:00:00:90:fa:5b:76:f1 [vhhoupb102_hba0]

  pwwn 50:00:09:72:08:5b:fd:58 [vmaxhou5887_FA7f0]

sanhoue01a# show zone name vhhoupb102_hba0_vmaxhou5887_FA10f0 vsan 11

zone name vhhoupb102_hba0_vmaxhou5887_FA10f0 vsan 11

  pwwn 10:00:00:90:fa:5b:76:f1 [vhhoupb102_hba0]

  pwwn 50:00:09:72:08:5b:fd:64 [vmaxhou5887_FA10f0]


  1. Confirm the active zoneset one more time

sanhoue01a#  sh zone analysis act vsan 11

Zoning database analysis vsan 11

  Active zoneset: Houston_FabricA_20140711

    Activated at: 03:49:37 CDT Jul 11 2014

    Activated by: Local [ CLI ]

    Default zone policy: Deny

    Number of devices zoned in vsan: 19/21 (Unzoned: 2)

    Number of zone members resolved: 86/92 (Unresolved: 6)

    Num zones: 46

    Number of IVR zones: 0

    Number of IPS zones: 0

    Formatted size: 3 Kb / 2048 Kb


  1. Make a clone of active zoneset

Cmd : Zoneset clone <active zoneset name> <clone_active zoneset name> vsan <>


Output:


sanhoue01a(config)# zoneset clone Houston_FabricA_20140711 Houston_FabricA_20140711-A vsan 11

sanhoue01a(config)#









  1. Add new zones to Clone active zoneset

Cmd : zoneset name <Clone active zoneset>vsan <>

member <zonename>

Output: (Adding one more server zones)

sanhoue01a(config)# zoneset name Houston_FabricA_20140711-A vsan 11

sanhoue01a(config-zoneset)# member vhhoupb102_hba0_vmaxhou5887_FA7e0

sanhoue01a(config-zoneset)# member vhhoupb102_hba0_vmaxhou5887_FA10e0

sanhoue01a(config-zoneset)# member vhhoupb102_hba0_vmaxhou5887_FA7f0

sanhoue01a(config-zoneset)# member vhhoupb102_hba0_vmaxhou5887_FA10f0

sanhoue01a(config-zoneset)# member vhhoupb103_hba0_vmaxhou5887_FA7e0

sanhoue01a(config-zoneset)# member vhhoupb103_hba0_vmaxhou5887_FA10e0

sanhoue01a(config-zoneset)# member vhhoupb103_hba0_vmaxhou5887_FA7f0

sanhoue01a(config-zoneset)# member vhhoupb103_hba0_vmaxhou5887_FA10f0


  1. Confirm zones added to clone zoneset or not


sanhoue01a# show zoneset name Houston_FabricA_20140711-A vsan 11 | i vhhoupb102

  zone name vhhoupb102_hba0_vmaxhou5887_FA7e0 vsan 11

    pwwn 10:00:00:90:fa:5b:76:f1 [vhhoupb102_hba0]

  zone name vhhoupb102_hba0_vmaxhou5887_FA10e0 vsan 11

    pwwn 10:00:00:90:fa:5b:76:f1 [vhhoupb102_hba0]

  zone name vhhoupb102_hba0_vmaxhou5887_FA7f0 vsan 11

    pwwn 10:00:00:90:fa:5b:76:f1 [vhhoupb102_hba0]

  zone name vhhoupb102_hba0_vmaxhou5887_FA10f0 vsan 11

    pwwn 10:00:00:90:fa:5b:76:f1 [vhhoupb102_hba0]



  1. Once you confirmed zones added successfully activate the clone zoneset

Cmd: zoneset activate name <Clone active zoneset name> vsan 11


Output:

sanhoue01a(config)# zoneset activate name Houston_FabricA_20140711-A vsan 11

WARNING: You are trying to activate zoneset Houston_FabricA_20140711-A, which is different from current active zoneset Houston_FabricA_20140711. Do you want to continue? (y/n) [n] y

Zoneset activation initiated. check zone status



  1. Confirm the active zoneset and also confirmed the zone member should be 54 now.

sanhoue01a(config)# show zone analysis act vsan 11

Zoning database analysis vsan 11

  Active zoneset: Houston_FabricA_20140711-A

    Activated at: 05:52:28 CDT Jul 11 2014

    Activated by: Local [ CLI ]

    Default zone policy: Deny

    Number of devices zoned in vsan: 21/21 (Unzoned: 0)

    Number of zone members resolved: 102/108 (Unresolved: 6)

    Num zones: 54

    Number of IVR zones: 0

    Number of IPS zones: 0

    Formatted size: 3 Kb / 2048 Kb

sanhoue01a(config)#




  1. Distribute the zoneset (make sure you are distubuting the zoneset from Correct Principal switch,)

Cmd : zoneset distribute full vsan <>


Output: 

sanhoue01a(config)# zoneset distribute full vsan 11


  1. Login to Array and check new WWN should be visible in list logins 


  1. sanhoue01a# copy run start

[########################################] 100%

Copy complete, now saving to disk (please wait)...

sanhoue01a#



Once your task is completed successfully in Fabric A then go ahead with Fabric B using above steps


Comments

Popular Posts