You are on page 1of 2

EMC Corporation, Technology Solutions

Cisco CLI Quick Reference


There are almost 1700 CLI commands in the
Cisco IOS v1.03, so this Quick Reference is
intended to be a guide to some of the most
commonly used ones.

Cisco CLI commands


When (config-????) is listed preceding the CLI
command, you must enter configure first to
enter into config mode, and choose the
appropriate area to run the commands listed.
Otherwise all other commands can be run from
exec mode (#).
Help / Tips
? = lists all available commands at that level
show vsan ? = Always remember to put a
question mark (?) after any command or partial
command for help info.
conf<tab> = You can type partial
commands and complete them with the <tab>
key
conf term = An example that you dont have
to type the entire command (conf term =
configure terminal)
Moving between modes
end = exits config mode at any layer and
returns to exec mode
exit = goes up one layer / directory
Offline / Turning off a feature / Delete
no <command> = putting no in front of a
command will negate it (offline, take down,
delete, etc depends on the command)

Cisco CLI Quick Reference


VSAN commands
show vsan = lists all VSANs on the switch
show vsan membership = lists members /
interfaces in each VSAN
(config) # vsan database = enter
VSAN database configuration mode
(config-vsan-db) # vsan ## = create a
VSAN instance (## = number for VSAN)
(config-vsan-db) # vsan ## name
<name> = assign a name to a particular VSAN
(##)
(config-vsan-db) # vsan ## suspend
= takes a VSAN down operationally
(config-vsan-db) # vsan ##
interface fc1/1 = adds int fc1/1 to a
particular VSAN
(config-vsan-db) # vsan ##
loadbalancing src-dst-ox-id =
configures load-balancing on a particular
VSAN (default is src-dst-ox-id)
Zoning commands
show zoneset = lists all zonesets
show zone vsan ? = lists zones in a VSAN
show zone status vsan ? = lists status of
zones in a particular VSAN
show zoneset active = lists active
zoneset & active zones (members)
(config) # zone name <name> vsan ?
= creates a zone in a particular VSAN
(config-zone) # member pWWN <wwn>
= adds members to the zone
(config) # zoneset name <name> vsan
? = creates a zoneset in a particular VSAN
(config-zoneset) # member
<zonename> = add zone to zoneset
(config) # zoneset activate name
<zonesetname> vsan ? = activates
zoneset in a particular VSAN

05/12/03

(config) # no zone default-zone


permit VSAN ? = removes default zone
access to a VSAN (access will only be
permitted according to the configuration of the
active zoneset)
More Show / Information commands
show flogi database = lists nodes logged
into the fabric (not nameserver loginserver)
show fcns database = lists all nodes
registered with the NameServer
show fcs database = lists Fabric-wide
configuration information
show fspf database = lists all fspf
information on routes available to other
switches
show tech-support = lists a LOT of
information for the switch
show port-channel summary = lists a
summary of all port channels
show port-channel database = lists
detailed information on all port channels
show flash = shows available disk space
show users = shows users logged in
show wwn switch = displays switch WWN
Tech Support commands
show tech-support = displays a lot of
information useful for troubleshooting the
switch (similar to Brocades supportshow)
show rscn statistics = displays
Registered State Change Notification statistics
Statistics commands
show fcns statistics = displays Fibre
Channel switch statistics (for other statistics,
replace fcns with other available databases)
clear fcns statistics = clears statistical
counters (using fcns as an example)

Page 1 of 2

EMC Corporation, Technology Solutions


Port / Interface commands
show interface = shows information on all
ports (or per port: fc1/1 = slot 1 / port 1)
show interface status = shows
status/mode information on all ports
(config-if) # shutdown = takes port
offline
(config-if) # no shutdown = puts port
online
(config-if) # switchport beacon =
beacon port
(config-if) # switchport mode ? =
set porttype
(config-if) # switchport speed ? =
set speed
Switch commands
reload = reboots the system
show version = shows currently installed
code / images
show fcdomain vsan ? = shows domain
ID
(config) # switchname <name> = sets
name of switch
show interface mgmt 0 = shows IP
address, MAC address (netmask is shown as
/<bits>)
show ip route configured = shows
routing tables / default gateway (if configured)
Backup commands
copy running-config startup-config
= Saves any changes made to the running
configuration across reboots
copy startup-config <tftp server> =
Backs up a copy of the configuration to a
server
Module commands
show module = lists status for all modules
show system redundancy status =
shows information for active and standby
Supervisor modules (MDS9509)

Cisco CLI Quick Reference


system switchover = failover to standby
Supervisor module (MDS9509)
FC Utilities
fcping fcid 0x6f0001 vsan 1 = verifies
connectivity to a node & checks
congestion/latency (like ping in the IP world)
fctrace fcid 0x6f0001 = shows route
(ISL pathways) to destination node & latency
(config) # fcanalyzer ? = built-in Fibre
Channel frame analyzer
(config) # span session 1 = enter
span configuration mode (to mirror ports)
(config-span) # destination
interface fc1/9 = chooses the port to
span (mirror) frames to
(config-if) # switchport mode sd =
configures interfaces to SD port type
(config-if) # no switchport encap =
configures no encapsulation for the SD port
output
(config-span) # source interface
fc1/2 = choosing the source port to span
(config-span) # suspend = suspends
the current SPAN session being configured
show span session = lists all span
sessions
You can download a large CLI Reference Guide
(350+ pages) from the Cisco website:
1. Go to www.cisco.com.
2. Perform a search for MDS
3. Select any link listed.

Brocade vs. Cisco CLI Comparison


B: version =
C: show version
B: nsshow =
C: show fcns database
B: switchshow =
C: show fcdomain vsan ?
C: show interface status
C: show tech-support
C: show flogi database
B: configshow =
C: show running-config
C: show fcs database
B: configupload =
C: copy startup-config
tftp://<tftp srvr IP>
B: configsave =
C: copy running-config startupconfig
B: zoneshow / cfgshow =
C: show zoneset
C: show zone vsan ?
C: show zone status vsan
C: show zoneset active
B: lsdbshow / urouteshow =
C: show fspf database
B: supportshow =
C: show tech-support

4. Once at that page, look for Technical


Documentation on the left
5. Once opened, there should be a listing for CLI
Reference Guide.
If you find any errors or have questions, please
send a note to the author:
mailto:byrum_michael@emc.com

05/12/03

Page 2 of 2

You might also like