Cisco SAN Switch Service Manual

Inspection Commands

show interface fc 1/1 transceiver details
show interface mgmt 0
show interface brief
show port internal all
show environment
show license
show system uptime
show clock
show version
show inventory
show module
show fabric switch information
show fcdomain domain-list
show zoneset active
show running-config

Configuration

For safety and consistent setup, always log in to the principal switch to configure the Zone.

Example:

# Show WWN
show fcs database
show flogi database

# Remove
zoneset name SW1_ZONESET vsan 100
no member HIS1QI_HBA1_VNX5500_1
no member HIS3QI_HBA1_VNX5500_1

no zone name HIS1QI_HBA1_VNX5500_1 vsan 100
no zone name HIS3QI_HBA1_VNX5500_1 vsan 100

no fcalias name HIS1QI_HBA1 vsan 100
no fcalias name HIS3QI_HBA1 vsan 100

# Add
fcalias name ESXI235_HBA1 vsan 100
member pwwn 10:00:00:90:fa:b1:d8:ad
fcalias name ESXI236_HBA1 vsan 100
member pwwn 10:00:00:90:fa:b9:ae:2e

zone name ESXI235_HBA1_VNX5500_1_SPA0 vsan 100
member fcalias VNX5500_1_SPA0
member fcalias ESXI235_HBA1
zone name ESXI235_HBA1_VNX5500_1_SPB0 vsan 100
member fcalias VNX5500_1_SPB0
member fcalias ESXI235_HBA1
zone name ESXI236_HBA1_VNX5500_1_SPA0 vsan 100
member fcalias VNX5500_1_SPA0
member fcalias ESXI236_HBA1
zone name ESXI236_HBA1_VNX5500_1_SPB0 vsan 100
member fcalias VNX5500_1_SPB0
member fcalias ESXI236_HBA1

zoneset name SW1_ZONESET vsan 100
member ESXI235_HBA1_VNX5500_1_SPA0
member ESXI235_HBA1_VNX5500_1_SPB0
member ESXI236_HBA1_VNX5500_1_SPA0
member ESXI236_HBA1_VNX5500_1_SPB0

# Activate
zoneset activate name SW1_ZONESET vsan 100

# Save
copy run start

Tips

  • Change the WWN format:

    echo "500000E0DA888820" | sed 's/../&:/g;s/:$//' | tr '[:upper:]' '[:lower:]'
  • Find out which port the WWN connect to:

    grep -i '50:00:00:e0:da:88:88:20' *.log | grep fc1
  • Find out which zone the WWN belongs to:

    awk '/^  zone name/ {zone=$0} /50:00:00:e0:da:88:88:20/ {print zone; print $0}' 172.30.249.126.log
  • Count the number of a type of WWN within the zone.

    awk '/^  zone name/ {zone=$0} /50:00:00:e0:da:88:88.*/ {print zone; print $0}' 172.30.249.126.log | grep "^  zone name" | awk '{print $3}' | sort | uniq -c | awk '{print $2 ": " $1}'