Documente Academic
Documente Profesional
Documente Cultură
Prompts
switch# exec mode switch(config)# global configuration mode switch(config-xxxx)# specific configuration submode
Helpful Hints
? displays available commands or arguments fort a command <tab> completes partially typed command Control-Z backs out to the exec prompt do executes any command you precede with the word do as if the command executed from the exec mode prompt exit backs up a level in prompt no negates the command it precedes | filters output when used with include and exclude commands > redirects output to a file
Troubleshooting Commands
switch# fcping fcid 0xaaaaaa vsan x switch# fcping pwwn aa:bb:cc vsan x Sends ECHO over FC frames to determine if the destination device is logged in and communicating. switch# fctrace Traces the route to an N port. switch(config)# fcanalyzer local brief limit-c 0 Captures control frames to console session. switch# show tech-support details Performs a show version, show environment, show module, show run, show hardware, show interface, show accounting log, show process (et al), show license (et al), show system health. switch# tac-pac Creates a gzip file (show_tech_out.gz) on the volatile filesystem of the show tech details command. switch# show version switch# show interface brief switch# show interface fcx/y trunk vsan switch# show module switch# show fspf internal route switch# show topology
Configuration Management
switch# show run Shows the presently-running configuration. switch# copy run start Saves current configuration to startup configuration. switch# install all system image kickstart image Upgrades all modules in any Cisco MDS 9000 family switch.
switch# show license usage switch# show logging log switch# show device alias
Cisco MDS 9000 Family Command Line Interface Quick Reference Card for SAN-OS Release 2.x
SPAN Commands
switch(config)# span session x Creates a new SPAN session under the ID of x. switch(config-span)# source int fcx/y (rx/tx) Specifies which interface (slot x, port y) to mirror traffic from to a SPAN-destination interface. You can specify ingress frames only (RX), egress frames only (TX), or ALL frames (no RX/TX) following the command. switch(config-span)# destination int fcx/y Specifies which interface (slot x, port y) will receive the mirrored traffic. This interface should be where the packet analyzer is attached. This interface should be configured as an SD port, or SPAN-destination. switch(config)# interface fcx/y switch(config-if)# switchport mode SD switch(config-if)# switchport speed (1000/2000) Configures an interface (slot x, port y) as a SPAN destination interface. Frames to/from interfaces identified within span sessions can be directed to these ports. Packet analyzers should be attached to SD-type ports. The Ethereal packet analyzer is available here: http://www.ethereal.com.
CFS Commands
Cisco Fabric Services (CFS) provides a common infrastructure for automatic configuration synchronization in the fabric. Various SAN-OS applications use CFS. The following examples show commands that support one CFS application, in this case NTP. switch# config term switch(config)# ntp distribute Enables the distribution of the NTP configuration to the fabric. By leveraging CFS, this action need occur just once over the life of the application. switch(config)# ntp server x.x.x.x Forms a server association with a server. switch(config)# ntp commit Commits changes to the active NTP configuration. switch(config)# ntp abort Discards the proposed changes. switch(config)# ntp-pending diff Displays the difference between the active NTP configuration and the proposed changes that go into effect when the ntp commit command executes. switch# show cfs application Shows CFS information for all applications on the switch. switch# show cfs application name name Displays CFS information for the named application.
User Commands
switch(config)# username name Defines a user. Enter a name of 32 characters or less. switch(config)# username abcd password wxyz expire 2005-08-31 Creates or updates a user account and password that are set to expire on 2005-08-31. switch(config)# role name name Assigns users to a new role or modifies the profile of an existing role. Enter a name of 16 characters or less. switch(config-role)# description role description Assigns a description to the new role just created. Enter a description of 64 characters or less. switch# show role Displays all roles configured on the switch.