Setting Daylight Savings Time on a Cisco MDS switch

Cisco MDS

I recently ran into a log time difference at a customer’s site so I want to repeat my blog from last year (Configuring the timezone and NTP). It’s slightly different on Cisco LAN / Routing equipment, but on Cisco MDS SAN switches the DST configuration is set by using the following commands:

config t
clock summer-time CEST 5 Sun Mar 02:00 5 Sun Oct 03:00 60
exit
copy run start

  • CEST means Central Europe Summer Time (you can use your timezone name instead if you like)
  • the first 5, followed by “Sun” means that the DST will become active on the LAST (5th, sometimes the 4th) Sunday of the month following the day you just named (March)
  • 02:00 is the time of day when the DST will become active (time will go forward)
  • the second 5, followed by “Sun” means that the DST will become active on the LAST (5th, sometimes the 4th) Sunday of the month following the day you just named (October)
  • 03:00 is the time of day when the DST will end (time will go back to normal, backwards, so from 03:00 in my example the clock will go back to 02:00)

You can check the date, time and timezone by typing “show clock”.

Cisco MDS NX-OS zoning on the CLI

Cisco MDS

The Cisco Fabric Manager or the newer DCNM can be great for creating a limited number of zones and aliases, but when the number of zones exceeds 10 or 20 or so, creating, cloning and editing these can be a pain in the B@TT.

FC-SWITCH-01# conf t
Enter configuration commands, one per line. End with CNTL/Z.

FC-SWITCH-01(config)#

Create aliases:

FC-SWITCH-01(config)# fcalias name VM101-HBA1 vsan 45
FC-SWITCH-01(config)# member pwwn 20:21:22:25:B6:00:00:01

Enhanced zone session has been created. Please ‘commit’ the changes when done.

FC-SWITCH-01(config-fcalias)#

FC-SWITCH-01(config-fcalias)# fcalias name VM101-HBA1 vsan 45
FC-SWITCH-01(config-fcalias)# member pwwn 20:21:22:25:B6:00:00:02
FC-SWITCH-01(config-fcalias)# fcalias name VM102-HBA1 vsan 45
FC-SWITCH-01(config-fcalias)# member pwwn 20:21:22:25:B6:00:00:03

FC-SWITCH-01(config-fcalias)# device-alias commit

Create two new zones:

FC-SWITCH-01(config-zone)# zone name VM101-HBA1_VNX-5600-08-SPA6 vsan 45
FC-SWITCH-01(config-zone)# member fcalias VNX5600-08-SPA6
FC-SWITCH-01(config-zone)# member fcalias VM101-HBA1
FC-SWITCH-01(config-zone)# zone name VM102-HBA1_VNX-5600-08-SPB7 vsan 45
FC-SWITCH-01(config-zone)# member fcalias VNX5600-08-SPB7
FC-SWITCH-01(config-zone)# member fcalias VM102-HBA1
FC-SWITCH-01(config-zone)# zone commit vsan 45

Commit operation initiated. Check zone status

Now add the two new zones to a zoneset:

FC-SWITCH-01(config)# zoneset name ZS_VSAN170 vsan 45
FC-SWITCH-01(config-zoneset)# member VM101-HBA1_VNX-5600-08-SPA6
FC-SWITCH-01(config-zoneset)# member VM102-HBA1_VNX-5600-08-SPB7
FC-SWITCH-01(config-zoneset)# zone commit vsan 45

FC-SWITCH-01(config)#

Maximum distances using fiber cable types OM1/OM2/OM3/OM4/OS1

What are the maximum distances using different fiber grades?

 

fiber cable specs graph

The graphs show the direction where OM-specs are going compared to distances.

Read more »

Cisco MDS: Fabric is already locked

Cisco MDS

When you encounter a fabric lock, because you accidentally left the GUI or CLI without committing the changes, you can try the following to clear the lock and retry to apply your changes:

  1. run ‘show cfs lock’ to see who lock`s the fabric
  2. run ‘clear device-alias session’ to clear the lock when you were doing zoning activities

Instead of the “clear device-alias session” in line 2, another common possibility to get the lock cleared is:

  • ‘clear ivr session’ (when you were in the middle of IVR activities)

Other locks can occur, but the device-alias and ivr are probably the most common. At least the ones that I encountered so far.

Sometimes a lock error pops up when opening a VSAN in DCNM, saying that the fabric is locked from switch ABC. In that case, log on to switch ABC and type (if nobody is actually zoning at that moment):

  • clear zone lock vsan 123

This will clear the lock from the entire fabric only if issued on initiating switch

Cisco zoning: some commonly used – show – commands

Cisco MDS

When you need to look up the current zoning config of a Cisco SAN-switch / VSAN, there’s a number of commands that will help you. Because a “show run” doesn’t always do the trick well, especially if you have a large config. And using the “sh run | i “some text you’re looking for” doesn’t always help as well if you don’t know the exact phrase you’re looking for.

I hope this table helps:

show Command
Description
show zone Displays zone information for all VSANs.
show zone vsan 100 Displays zone information for VSAN 100.
show zoneset vsan 100 Displays information for the zone set in VSAN 100.
show zoneset vsan 2-5 Displays configured zone set information for a range of VSANs (2, 3, 4 and 5 in this case).
show zone name AZone Displays members of zone “AZONE”.
show fcalias vsan 100 Displays fcalias configuration in VSAN 100.
show zone member pwwn 20:00:00:25:b1:34:aa:c2 Displays membership status of a port wwn. Very good if you’re concerned that 1 HBA is used in more than 1 zone!
show zone statistics Displays zone statistics.
show zone statistics read-only-zoning Displays read-only zoning statistics.
show zoneset active Displays the active zone sets.
show zoneset brief Displays brief descriptions of zone sets.
show zone active Displays the active zones.
show zone status Displays zone status.
show zone Displays zone statistics.
show running Displays the interface-based zones.