ADVERTISEMENT

CISCO MDS - Show Commands

A list of useful show commands for CISCO MDS switches.
  1. boot commands

    Boot related Commands
    4 Commands
    • show boot

      Display all the running and startup boot variables such as kickstart and system variable
    • show boot current

      Display all the running boot variables
    • show boot module

      Display the list of boot variables configured for modules
    • show boot variables

      Display the list of boot variables
  2. clock commands

    Clock Commands
    2 Commands
    • show clock

      Display the current date and time set on the switch
    • show clock detail

      Display the current date and time set on the switch along with the summertime configuration
  3. device-alias commands

    device-alias Commands
    3 Commands
    • show device-alias database

      display the contents of the device alias database
    • show device-alias name server1_hba1

      display the entry with name server1_hba1 in the device alias database
    • show device-alias status

      display the current status of device alias database
  4. environment commands

    environment Commands
    4 Commands
    • show environment

      Display the environmental information about the switch. This includes the power supply voltage and status information and also the fan and temperature status.
    • show environment fan

      Display the status of all the fan modules
    • show environment power

      Display the power usage summary and status
    • show environment temperature

      Display the temperature information and status about the intake and outlet sensors
  5. fabric-binding commands

    fabric-binding Commands
    8 Commands
    • show fabric-binding database

      display configured fabric binding database information for all the VSANs
    • show fabric-binding database active

      display activated fabric binding database information for all the VSANs
    • show fabric-binding database active vsan 100

      display active fabric binding database information for VSAN 100
    • show fabric-binding database vsan 100

      display configured fabric binding database information for VSAN 100
    • show fabric-binding status

      displays fabric binding status for each configured VSAN
    • show fabric-binding status vsan 100

      displays fabric binding status for VSAN 100
    • show fabric-binding violations

      displays fabric binding violations for all VSANs
    • show fabric-binding violations vsan 100

      displays fabric binding violations for VSAN 100
  6. fcns commands

    FCNS Commands
    6 Commands
    • show fcns database

      display the contents of the FCNS database for all VSANs. This includes information about each PWWN entry along with FCID, vendor, type etc.
    • show fcns database detail

      display the contents of the FCNS database for all VSANs in detail. This also shows information like the connected interface and switch.
    • show fcns database detail vsan 1

      display the contents of the FCNS database for VSAN 1 in detail. This also shows information like the connected interface and switch.
    • show fcns database fcid 0x0b0100

      display the entries in FCNS database with FCID 0x0b0100
    • show fcns database vsan 1

      display the contents of the FCNS database for VSAN 1 . This includes information about each PWWN entry along with FCID, vendor, type etc.
    • show fcns statistics

      displays the Name Server Statistics
  7. feature commands

    feature Commands
    1 Command
    • show feature

      Display the list of all the features available in the switch and currently enabled or disabled.
  8. flogi commands

    flogi Commands
    8 Commands
    • show flogi database

      Display all the entries in the FLOGI database
    • show flogi database details

      Display all the entries in the FLOGI database along with FCID allocation details
    • show flogi database fcid 0x0b0100

      Display only the entries with fcid 0x0b0100 in the FLOGI database
    • show flogi database interface fc1/1

      Display the entries in the FLOGI database for FC port1 on slot1
    • show flogi database vsan 10

      Display only the entries belongs to vsan 10 interfaces in the FLOGI database
    • show flogi internal errors

      Display the error log of FLOGIs
    • show flogi internal event-history interface fc1/1

      Display the FLOGI event history log for FC port 1
    • show flogi internal event-history vsan 11

      Display the FLOGI event history log for members of vsan 11
  9. hardware commands

    Switch Hardware Commands
    2 Commands
    • show hardware

      Display the complete switch hardware information. This command also show the BIOS version, system and kickstart image information with many other useful details.
    • show hardware internal mgmt0 stats

      Display the information about the switch management interface. Gives the details about the management IP address and MAC address of the port.
  10. interface commands

    Interface Commands
    20 Commands
    • show interface

      Displays information for all interfaces on the switch
    • show interface bbcredit

      Display the Buffer To Buffer credit information for each interface about the operation state.
    • show interface brief

      Displays brief information about all the interfaces on a switch
    • show interface counters brief

      Show the interface counters in brief
    • show interface description

      Displays description about of all the interfaces in the switch
    • show interface detail-counters

      Displays detailed information about the counters in all the interfaces
    • show interface fc1/1

      Display detailed information about FC interface port 1 in slot 1
    • show interface fc1/1 description

      Displays description about FC interface port1 on slot 1 in the switch
    • show interface fc1/1 transceiver

      Display the information about transceiver(SFP) on port 1 module 1. This includes the product id, serial number supported speed and diagnostic information about the SFP.
    • show interface fc1/1 transceiver details

      Display the information about transceiver(SFP) on port 1 module 1. This includes the product id, serial number supported speed and a detailed diagnostic information about the SFP.
    • show interface fc1/1 | include Speed

      Display the Speed of FC port 1 on slot 1
    • show interface fc1/1 | include vsan

      Display the vsan information of FC port 1 on slot 1
    • show interface fc1/1-5 brief

      Displays brief information about FC interfaces 1 to 5 on a switch
    • show interface mgmt

      Displays detailed information about management interface 0
    • show interface port-channel 1

      Show detailed information about port channel 1
    • show interface port-channel 1 brief

      Show brief information about port channel 1
    • show interface port-channel 1 trunk vsan

      Show the trunk per vsan information in port-channel 1
    • show interface port-channel 1 trunk vsan 100

      Show the trunks on vsan 100 in port-channel 1
    • show interface transceiver

      Display the transceiver(SFP) information on all the ports. This includes the product id, serial number supported speed and diagnostic information about the SFP.
    • show interface transceiver details

      Display the information about transceiver(SFP) on all the ports. This includes the product id, serial number supported speed and a detailed diagnostic information about the SFP.
  11. inventory commands

    inventory Commands
    6 Commands
    • show inventory

      Display the inventory of all field replaceable units (FRUs). This includes product IDs, serial numbers, and version IDs
    • show inventory chassis

      Display the inventory of the chassis unit. This includes product IDs, serial numbers, and version IDs
    • show inventory fans

      Display the inventory of all fans in the switch. This includes product IDs, serial numbers, and version IDs
    • show inventory module

      Display the inventory of all the modules. This includes product IDs, serial numbers, and version IDs
    • show inventory module 1

      Display the inventory of module 1. This includes product IDs, serial numbers, and version IDs
    • show inventory power_supply

      Display the inventory of all the power supply units in the switch. This includes product IDs, serial numbers, and version IDs
  12. processes commands

    Processes Commands
    9 Commands
    • show processes

      display all the active system processes running on a switch
    • show processes cpu

      display the cpu utilization for all the active processes running on a switch
    • show processes cpu sort 5min

      display all the system processes sorted by cpu ulitization based last 5 minute
    • show processes log

      display process log information
    • show processes log details

      display detailed information of all process logs
    • show processes log pid 1234

      display detailed information logged against process id 1234
    • show processes memory

      display memory usage information for each system processes in the switch
    • show processes memory shared

      display shared memory information for system processes running on switch
    • show processes memory sort

      display memory usage information for all system processes in the switch sorted by highest first
  13. switch commands

    switch Commands
    2 Commands
    • show switch

      Display the hostname of the switch
    • show switch serialnum

      Display the serial number of the switch. we can also use "show sprom backplane 1" to get the serial number.
  14. switchname commands

    Switchname Commands
    2 Commands
    • show switchname

      Display the hostname of the switch
    • show switchname serialnum

      Display the serial number of the switch. we can also use "show sprom backplane 1" to get the serial number.
  15. system commands

    System Commands
    16 Commands
    • show system auto-collect tech-support

      display the auto collection status of show tech support
    • show system default switchport

      display the default port status of the switch
    • show system error-id 0x402000EC

      display the details of error id 0x402000EC
    • show system error-id list

      display the list of all the error ids with its description
    • show system health

      display current health status for all the modules in the switch
    • show system health module 1

      display current health status for module 1 in the switch
    • show system health statistics

      display current health statistics for all modules in the switch. This include the failure and error counts happened on tests.
    • show system health statistics loopback

      display loopback test statistics for the entire switch
    • show system health statistics loopback interface fc1/1

      display loopback test statistics for FC port 1/1
    • show system health statistics loopback module 1

      display loopback test statistics for the module 1
    • show system health statistics module 1

      display current health statistics module 1 in the switch. This include the failure and error counts happened on tests.
    • show system login failures

      list the failed login attempts to access the switch
    • show system redundancy status

      display the redundancy status of supervisor cards
    • show system reset-reason module 5

      display the reasons for various resets happened for module 1
    • show system resources

      display the current usage summary of various resources in the switch such as memory, processes etc.
    • show system uptime

      display switch uptime
  16. user-account commands

    user-account Commands
    2 Commands
    • show user-account

      display information about all the configured user accounts
    • show user-account user1

      display information about user1
  17. users commands

    users Commands
    1 Command
    • show users

      display all CLI users currently accessing the switch
  18. vsan commands

    vsan commands
    6 Commands
    • show vsan

      Display the information about all the VSANs along with operation status
    • show vsan 100

      Display the information about VSAN 100 along with operation status
    • show vsan 100 membership

      Display the membership information about VSAN 100. This will list the FC ports and Port-channels part of the VSAN
    • show vsan membership

      Display the membership information about all the VSANs. This will list the FC ports and Port-channels part of each VSANs
    • show vsan membership interface fc1/1

      Display the VSAN membership information of FC port 1
    • show vsan usage

      Display the information about the number of VSANs configured and how many available for usage
  19. wwn commands

    wwn Commands
    1 Command
    • show wwn switch

      display wwn of the switch
  20. zone commands

    zone commands
    8 Commands
    • show zone

      Display the list of all the zones defined in all the VSANs
    • show zone active

      Display all the zones those are part of active zoneset in all the VSANs
    • show zone active vsan 100

      Display only the zones those are part of active zoneset configured in VSAN 100 along with its member zones.
    • show zone member pwwn 21:00:00:00:00:00:00:11

      List all the zones to which a member belongs using 21:00:00:00:00:00:00:11
    • show zone name zone123

      Display the members of zone zone123
    • show zone status

      Display the zone database status of VSAN 100. This will include the number of zoneset and zones defines VSAN 100. It also shows if the zoning mode either basic or enhanced.
    • show zone status vsan 100

      Display the zone database status of VSAN 100. This will include the number of zoneset and zones defines VSAN 100.It also shows if the zoning mode either basic or enhanced for zones in VSAN 100
    • show zone vsan 100

      Display the list of all the zones defined for VSAN 100
  21. zoneset commands

    zoneset commands
    4 Commands
    • show zoneset

      Display the zonesets configured in all the VSANs along with its member zones.
    • show zoneset active

      Display only the active zoneset configured in all the VSANs along with its member zones.
    • show zoneset active vsan 100

      Display only the active zoneset configured in VSAN 100 along with its member zones.
    • show zoneset vsan 100

      Display the zonesets configured in VSAN 100 along with its member zones.

[ view all commands ]