Cisco MDS 9000 Family Command Reference, Release 1.1(1a)
S Commands

Table Of Contents

S Commands

send

setup

sleep

snmp-server

snmp-server host

span session

special-frame

ssh key

ssh server enable

switchname

switchport

switchport initiator id

system auto-sync

system cores

system default switchport

system hap-reset

system heartbeat

system memlog

system statistics reset

system switchover

system trace

system upgrade-reset

system watchdog


S Commands


The commands in this chapter apply to the Cisco MDS 9000 Family of multilayer directors and fabric switches. All commands are shown here in alphabetical order regardless of command mode. See the "Command Modes" section to determine the appropriate mode for each command. For more information, refer to the Cisco MDS 9000 Family Configuration Guide.

send

setup

sleep

snmp-server

snmp-server host

span session

special-frame

ssh key

ssh server enable

switchname

switchport

switchport initiator id

system auto-sync

system cores

system default switchport

system hap-reset

system heartbeat

system memlog

system statistics reset

system switchover

system trace

system upgrade-reset

system watchdog

send

To send a message to all active CLI users currently using the switch, use the send command in EXEC mode.

send message-text

Syntax Description

message-text

The text of your message.


Defaults

None.

Command Modes

EXEC mode.

Command History

This command was introduced in Cisco MDS SAN-OS Release 1.0(2).

Usage Guidelines

This message is restricted to 80 alphanumeric characters with spaces.

Examples

The following example sends a warning message to all active users about the switch being shut down.

switch# send Shutting down the system in 2 minutes. Please log off.

Broadcast Message from admin@excal-112
        (/dev/pts/3) at 16:50 ... 

Shutting down the system in 2 minutes. Please log off.

setup

To enter the switch setup mode, use the setup command in EXEC mode.

setup

Syntax Description

This command has no arguments or keywords.

Defaults

None.

Command Modes

EXEC mode.

Command History

This command was introduced in Cisco MDS SAN-OS Release 1.0(2).

Usage Guidelines

Refer to the Cisco MDS 9000 Family Configuration Guide for more information on using the setup command.

The setup utility guides you through the basic configuration process. Type Ctrl-c at any prompt to skip the remaining configuration options and proceed with what is configured until that point.

If you do not wish to answer a previously-configured question, or if you wish to skip answers to any questions press Enter. If a default answer is not available (for example switch name), the switch uses what is previously configured and skips to the next question.

Examples

The following example shows how to enter switch setup mode.

switch# setup
---- Basic System Configuration Dialog ----

This setup utility will guide you through the basic configuration of
the system. Setup configures only enough connectivity for management
of the system.

*Note: setup always assumes a predefined defaults irrespective
of the current system configuration when invoked from CLI.

Press Enter incase you want to skip any dialog. Use ctrl-c at anytime
to skip away remaining dialogs.

Would you like to enter the basic configuration dialog (yes/no): yes

sleep

To delay an action by a specified number of seconds, use the sleep command.

sleep <seconds>

Syntax Description

<seconds>

The number of seconds to delay an action.


Defaults

None.

Command Modes

EXEC mode.

Command History

This command was introduced in Cisco MDS SAN-OS Release 1.0(2).

Usage Guidelines

This command is useful within scripts. For example, if you create a script called test-script:

switch# show file slot0:test-script
discover scsi-target remote
sleep 10
show scsi-target disk

switch# run-script slot0:test-script

When you execute the slot0:test-script, the switch software executes the discover scsi-target remote command, and then waits for 10 seconds before executing the show scsi-target disk command.

Examples

The following example shows how to delay the switch prompt return.

switch# sleep 30

You will see the switch prompt return after 30 seconds.

snmp-server

To set the contact information, switch location, and switch name, use the snmp-server command in configuration mode. To remove the system contact information, use the no form of the command.

snmp-server [community community string] [ro | rw] [contact name-string] [location location] [user name group auth md5 password priv password | sha password priv password]

no snmp-server [community snmp community string] [ro | rw] [contact name-string] [location location] [user name group auth md5 password priv password | sha password priv password | localizedkey]

Syntax Description

community

Sets community string and access privileges.

community string

Specifies SNMP community string. Maximum length is 32 characters.

ro

Sets read-only access with this community string.

rw

Sets read-write access with this community string.

contact

Modifies system contact.

name-string

Specifies the name of the contact.

location

Modifies sysLocation.

location

Specifies and modifies system location.

user

Sets a user who can access the SNMP engine.

group

Specifies group to which the user belongs. Maximum length is 32 characters.

auth

Sets authentication parameters for the user.

md5

Sets HMAC MD5 algorithm for authentication.

password

Specifies user password. Maximum length is 64 characters.

priv

Sets encryption parameters for the user.

sha

Uses HMAC SHA algorithm for authentication.

localizedkey

Sets passwords in localized key format.


Defaults

The default is read-only (ro).

Command Modes

Configuration mode

Command History

This command was introduced in Cisco MDS SAN-OS Release 1.0(2).

Usage Guidelines

The localized keys are not portable across devices as they contain information on the engine ID of the device. If a configuration file is copied into the device, the passwords may not be set correctly if the configuration file was generated at a different device. We recommend that passwords be explicitly configured to the desired passwords after copying the configuration into the device.

Examples

The following example sets the contact information, switch location, and switch name.

switch# config t
switch(config)# snmp-server contact NewUser 
switch(config)# 
switch(config)# no snmp-server contact NewUser 
switch(config)# 
switch(config)# snmp-server location SanJose
switch(config)# 
switch(config)# no snmp-server location SanJose
switch(config)# 
switch(config)# snmp-server name NewName 
switch(config)#
switch(config)# no snmp-server name NewName 
switch(config)#
switch(config)# snmp-server user joe network-admin auth sha abcd1234
switch(config)#
switch(config)# snmp-server user sam network-admin auth md5 abcdefgh
switch(config)#
switch112(config)# snmp-server user Bill network-admin auth sha abcd1234 priv abcdefgh
switch112(config)#
switch112(config)# no snmp-server user usernameA 
switch112(config)# snmp-server user user1 network-admin auth md5 0xab0211gh priv 
0x45abf342 localizedkey

snmp-server host

To specify the recipient of an Simple Network Management Protocol notification operation, use the snmp-server host global configuration command. To remove the specified host, use the no form of this command.

snmp-server host host-address [traps | informs] [version {1 | 2c | 3 [auth | noauth | priv]}] community-string [udp-port port] [notification-type]

no snmp-server host host-address [traps | informs]

Syntax Description

host-address

Specifies the name or IP address of the host (the targeted recipient).

traps

Sends SNMP traps to this host.

informs

Sends SNMP informs to this host.

version

Specifies the version of the Simple Network Management Protocol (SNMP) used to send the traps. Version 3 is the most secure model, as it allows packet encryption with the priv keyword.

1

SNMPv1 (default). This option is not available with informs.

2c

SNMPv2C.

3

SNMPv3 has three optional keywords (auth, no auth (default), or priv).

auth

Enables Message Digest 5 (MD5) and Secure Hash Algorithm (SHA) packet authentication

noauth

Specifies the noAuthNoPriv security level.

priv

Enables Data Encryption Standard (DES) packet encryption (privacy).

community-string

Sends a password-like community string with the notification operation.

udp-port

Specifies the port UDP port of the host to use. The default is 162.


Defaults

Sends SNMP traps.

Command Modes

Configuration mode

Command History

This command was introduced in Cisco MDS SAN-OS Release 1.0(3).

Usage Guidelines

If you use the version keyword, one of the following must be specified: 1, 2c, or 3.

Though you can set the community-string using the snmp-server host command by itself, we recommend you define this string using the snmp-server community command prior to using the snmp-server host command.

Examples

The following example specify the recipient of an SNMP notification.

switch# config t
switch(config)# snmp-server host 10.1.1.1 traps version 2c abcddsfsf udp-port 500

span session

To configure a SPAN session, use the span session command. To remove a configured SPAN feature or revert it to factory defaults, use the no form of the command.

span session session-id {destination interface fc slot-number | source [ rx | tx] | interface fc slot-number| port-channel port-channel-number | sup-fc inband-interface-number |] | suspend}

no span session session-id {destination interface fc slot-number | source [ rx | tx] | interface fc slot-number| port-channel port-channel-number | sup-fc inband-interface-number |] | suspend}

Syntax Description

session-id

Enter SPAN session ID from 1 to 16.

destination

Specifies the SPAN destination.

interface

Specifies SPAN destination configuration.

fc

Configures the Fiber Channel interface.

slot-number

Specifies the slot number and port number.

source

Specifies the SPAN source.

rx

Specifies SPAN traffic in ingress direction

tx

Specifies SPAN traffic in egress direction

interface

SPAN source interface configuration.

port-channel

PortChannel interface.

port-channel-number

PortChannel number from 1 to 128.

sup-fc

Inband interface.

inband interface number

Inband interface number, which is 0.

suspend

SPAN suspend session.


Defaults

None.

Command Modes

Configuration mode.

Command History

This command was introduced in Cisco MDS SAN-OS Release 1.0(2).

Usage Guidelines

None.

Examples

The following example shows how to configure a SPAN session.

switch# config t
switch(config)# span session 1
switch(config-span)#
switch(config)# no span session 6
switch(config-span)# destination interface fc9/1
switch(config-span)# no destination interface fc1/5
switch(config-span)# source interface sup-fc0
switch(config-span)# source vsan1
switch(config-span)# source interface po1
switch(config-span)# no source interface po3
switch(config-span)# suspend
switch(config-span)# no suspend
switch(config-span)# exit
switch(config)# span session 1
switch(config-span)#
switch(config-span)# source interface fc9/1 tx filter vsan 1
switch(config-span)# source filter vsan 1-2

Related Commands

Command
Description

show span session

Displays all SPAN session information.


special-frame

To enable or disable special-frames for the FCIP interface, use the special-frame option. To disable the passive mode for the FCIP interface, use the no form of the option.

special-frame peer-wwn pwwn-id

no special-frame peer-wwn pwwn-id

Syntax Description

special-frame

Configures special frames.

peer-wwn

Configures the peer WWN for special frames.

pwwn-id

Enters the peer pWWN ID.


Defaults

Disabled

Command Modes

Configuration mode

Command History

This command was introduced in Cisco MDS SAN-OS Release 1.1(1).

Usage Guidelines

Access this command from the switch(config-if)# submode.

When a new TCP Connection is established, an FCIP special frame (if enabled) makes one round trip from the FCIP profile and initiates the TCP connect operation to the FCIP profile receiving the TCP connect request and back. Use these frames to identify the FCIP link endpoints, to learn about the critical parameters shared by Fibre Channel and FCIP profile pairs involved in the FCIP link, and to perform configuration discovery

Examples

switch# config t

switch(config)# interface fcip 1

switch(config)# peer-info ipaddr 10.1.1.1

switch(config)# peer-info ipaddr 10.1.1.1 port 4000

switch(config)# no peer-info ipaddr 10.1.1.1 port 4000

Related Commandss

Command
Description

show interface fcip

Displays an interface configuration for a specified FCIP interface.



ssh key

To generate a host key, use the ssh key command in configuration mode.

ssh key {dsa number | rsa number | rsa1 number}

Syntax Description

dsa

Generates a DSA key.

rsa

Generates an RSA key.

rsa1

Generates an RSA1 key.

number

Specifies a number of bits from 768 to 2048.


Defaults

Disabled

Command Modes

Configuration mode.

Command History

This command was introduced in Cisco MDS SAN-OS Release 1.0(2).

Usage Guidelines

None.

Examples

The following example shows how to generate a host key.

switch# config t
switch(config)# ssh key rsa1 1024
generating rsa1 key.....
generated rsa1 key
switch(config)#
switch(config)# ssh key dsa 1024
generating dsa key.....
generated dsa key
switch(config)#
switch(config)# ssh key rsa 1024 
generating rsa key.....
generated rsa key
switch(config)#
switch(config)# no ssh key rsa 1024
cleared RSA keys
switch(config)#

Related Commands

Command
Description

ssh server enable

Enables SSH server.


ssh server enable

To enable the SSH server, use the ssh server enable command in configuration mode. To disable the SSH service, use the no form of the command.

ssh server enable

no ssh server enable

Syntax Description

This command has no arguments or keywords.

Defaults

Disabled

Command Modes

Configuration mode.

Command History

This command was introduced in Cisco MDS SAN-OS Release 1.0(2).

Usage Guidelines

None.

Examples

The following example enables the SSH server.

switch# config t
switch(config)# ssh server enable
updated
switch(config)# no ssh server enable
updated

Related Commands

Command
Description

ssh key

Generates an SSH key.


switchname

To change the name of the switch, use the switchname command in configuration mode. To revert the switch name to the default name, use the no form of the command.

switchname name

no switchname name

Syntax Description

name

Specifies a switch name


Defaults

Disabled

Command Modes

Configuration mode.

Command History

This command was introduced in Cisco MDS SAN-OS Release 1.0(2).

Usage Guidelines

None.

Examples

The following example changes the name of the switch to myswitch1.

switch# config t
switch(config)# switchname myswitch1
myswitch1(config)# 
myswitch1(config)# no switchname
switch(config)# 

Related Commands

Command
Description

snmp-server

Sets the contact information, switch location, and switch name within the limit of 20 characters (without spaces).


switchport

To assign the port mode, allowed VSAN numbers, or the description of an FCIP interface, use the switchport command in the interface fcip mode. Use the no form of the command to delete the configured switchport information.

switchport [description text] | [mode auto | E] | [trunk allowed vsan number | add vsan number | all]

no switchport [description text] | [mode auto | E] | [trunk allowed vsan number | add vsan number | all]

Syntax Description

switchport

Configure switchport parameters.

description

Enter description of maximum 80 characters.

text

Description text of maximum 80 characters.

mode

Enter the port mode.

auto

Autosensing mode.

E

E port mode.

trunk

Configure trunking parameters on an interface.

allowed vsan

Configure allowed list for interface(s).

number

Enter the VSAN ID.

add

Give VSAN ID range to add to allowed list

all

Add all the VSANs to allowed list


Defaults

Disabled

Command Modes

Configuration mode.

Command History

This command was introduced in Cisco MDS SAN-OS Release 1.1(1).

Usage Guidelines

Access this command from the switch(config-if)# submode.

Examples

switch## config t

switch(config)# interface fcip 1

switch(config-if)# switchport mode E

switch(config-if)# switchport trunk mode auto

switch(config-if)# switchport trunk allowed vsan all

switch(config-if)# switchport trunk allowed vsan 3

switch(config-if)# switchport trunk allowed vsan add 2

Related Commands

Command
Description

show interface fcip

Displays an interface configuration for a specified FCIP interface.


switchport initiator id

To identify the iSCSI initiator, use the switchport initiator id command in configuration mode. Use the no form of the command to delete the configured switchport information.

switchport [description text] | [initiator id ip-address | name ]

no switchport [description text] | [initiator id ip-address | name ]

Syntax Description

switchport

Configures switchport parameters.

description

Enter description of maximum 80 characters.

text

Description text of maximum 80 characters.

initiator id

Configures the iSCSI initiator ID

ip-address

Identifies initiators using the IP address.

name

Identifies initiators using the specified name.


Defaults

Disabled

Command Modes

Configuration mode.

Command History

This command was introduced in Cisco MDS SAN-OS Release 1.1(1).

Usage Guidelines

Access this command from the switch(config-if)# submode.

Examples

switch## config t

switch(config)# interface iscsi 2/5

switch(config-if)# switchport description techdocs sample

switch(config-if)# switchport initiator id ip-address 

switch(config-if)# switchport initiator name

Related Commands

Command
Description

show interface fcip

Displays an interface configuration for a specified FCIP interface.


system auto-sync

To synchronize the standby supervisor module software image with the bootflash image, use the system auto-sync command in configuration mode. To disable auto syncing of the image, use the no form of this command.

system auto-sync image

no system auto-sync image

Syntax Description

image

System auto-sync image


Defaults

Disabled.

Command Modes

Configuration mode.

Command History

This command was introduced in Cisco MDS SAN-OS Release 1.0(2).

Usage Guidelines

None.

Examples

The following example shows how to synchronize the standby supervisor module software image with the bootflash image.

switch# config t
switch(config)# system auto-sync image
switch(config)# no system auto-sync image 
Automatic synchronization of BOOT and KICKSTART is now disabled
switch(config)# 

system cores

To copy the core and log files periodically, use the system cores command in configuration mode. To revert the switch to factory defaults, use the no form of this command.

system cores slot0 | tftp:

no system cores

Syntax Description

slot0

Selects destination file system.

tftp:

Selects destination file system.


Defaults

None.

Command Modes

Configuration mode.

Command History

This command was introduced in Cisco MDS SAN-OS Release 1.0(2).

Usage Guidelines

Create any required directory before issuing this command. If the directory specified by this command does not exist, the switch software logs a syslog message each time a copy cores is attempted.

Examples

The following example copies the core and log files.

switch# config t
switch(config)# system cores slot0:coreSample
switch(config)# 
switch(config)# no system cores
switch(config)# 

Related Commands

Command
Description

show system cores

Displays the currently configured scheme for copying cores.


system default switchport

To configure default values for various switchport attributes, use the system default switchport command in configuration mode.

system default switchport [shutdown] [trunk mode auto | off | on]

Syntax Description

shutdown

(Optional) Disables or enables switch ports by default.

trunk

(Optional) Configures trunking parameters as a default.

mode

(Optional) Configures trunking mode.

auto

(Optional) Sets autosense trunking.

off

(Optional) Disables trunking.

on

(Optional) Enables trunking.


Defaults

Enabled

Command Modes

Configuration mode

Command History

This command was introduced in Cisco MDS SAN-OS Release 1.0(2).

Usage Guidelines

Attributes configured using this command are applied globally to all future switch port configurations, even if you do not individually specify them at that time.

Examples

The following example configures default values for switchport attributes.

switch# config t
switch(config)# system default switchport shutdown
switch(config-if)# 
switch(config)# no system default switchport shutdown
switch(config-if)#
switch(config)# system default switchport trunkmode auto
switch(config-if)# 

Related Commands

Command
Description

show system default switchport

Displays default values for switch port attributes.


system hap-reset

To configure the HA reset policy, use the system hap-reset command in EXEC mode. Use the no form of this command to disable this feature.

system hap-reset

system no hap-reset

Syntax Description

This command has no arguments or keywords.

Defaults

Enabled

Command Modes

EXEC

Command History

This command was introduced in Cisco MDS SAN-OS Release 1.0(2).

Usage Guidelines

You can disable the HA policy supervisor reset feature (enabled by default) for debugging and troubleshooting purposes.

Examples

The following example enables the supervisor reset HA policy.

switch# system hap-reset 

system heartbeat

To enable system heartbeat checks, use the system heartbeat command in EXEC mode. Use the no form of this command to disable this feature.

system heartbeat

system no heartbeat

Syntax Description

This command has no arguments or keywords.

Defaults

Enabled

Command Modes

EXEC

Command History

This command was introduced in Cisco MDS SAN-OS Release 1.0(2).

Usage Guidelines

You can disable the heartbeat checking feature (enabled by default) for debugging and troubleshooting purposes like attaching a GDB to a specified process.

Examples

The following example enables the system heartbeat checks.

switch# system heartbeat 

system memlog

To collect system memory statistics, use the system memlog command in EXEC mode.

system memlog

Syntax Description

This command has no arguments or keywords.

Defaults

Enabled

Command Modes

EXEC

Command History

This command was introduced in Cisco MDS SAN-OS Release 1.0(2).

Usage Guidelines

Use this command for debugging and troubleshooting purposes.

Examples

The following example enables system memory logging.

switch# system memlog 

system statistics reset

To reset the high availability statistics collected by the system, use the system statistics reset command in EXEC mode.

system statistics reset

Syntax Description

This command has no arguments or keywords.

Defaults

Enabled

Command Modes

EXEC

Command History

This command was introduced in Cisco MDS SAN-OS Release 1.0(2).

Usage Guidelines

You can disable the system statistics reset feature (enabled by default) for debugging and troubleshooting purposes.

Examples

The following example resets the HA statistics.

switch# system statistics reset 

system switchover

To specifically initiate a switchover from an active supervisor module to a standby supervisor module, use the system switchover command in configuration mode.

system switchover {ha | warm}

Syntax Description

ha

Enables high availability.

warm

Enables a warm switchover.


Defaults

system switchover ha

Command Modes

EXEC

Command History

This command was introduced in Cisco MDS SAN-OS Release 1.0(2).

Usage Guidelines

Perform a switchover when the switch has two supervisor modules functioning in the switch. The system switchover command returns a Failed to switchover: (supervisor has no standby) message when the standby supervisor is not present in the switch.

Any switchover function is nonrevertive. Once a switchover has occurred and the failed processor has been replaced or successfully restarted, you cannot switch back to the original, active supervisor module (unless there is a subsequent failure or you issue the system switchover command).

Examples

The following example initiates a HA switchover from an active supervisor module to a standby supervisor module.

switch# config t
switch(config)# system switchover HA

Related Commands

Command
Description

show version compatibility

Determines version compatibility between switching modules.

show module

Displays the HA-standby state for the standby supervisor module.

show system redundancy status

Determines whether the system is ready to accept a switchover.


system trace

To configure the system trace level, use the system trace command in configuration mode. Use the no form of this command to disable this feature.

system trace bit-mask

no system trace

Syntax Description

bit-mask

Specifies the bit mask to change the trace level.


Defaults

None.

Command Modes

Configuration mode.

Command History

This command was introduced in Cisco MDS SAN-OS Release 1.0(2).

Usage Guidelines

This command is used for debugging purposes.

Examples

The following example shows how to configure the system trace level.

switch# config t
switch(config)# system trace bit-mask

system upgrade-reset

To enable a supervisor module reset, use the system upgrade-reset command in EXEC mode. Use the no form of this command to disable this feature.

system upgrade-reset

system no upgrade-reset

Syntax Description

This command has no arguments or keywords.

Defaults

Enabled

Command Modes

EXEC

Command History

This command was introduced in Cisco MDS SAN-OS Release 1.0(2).

Usage Guidelines

This feature enables supervisor module resets when an upgrade has failed. If the upgrade fails for any reason, the software reboots the switch since the file system may be in an unstable state.

You can disable the upgrade-reset feature (enabled by default) for debugging and troubleshooting purposes.

Examples

The following example enables the supervisor reset HA policy.

switch# system upgrade-reset 

system watchdog

To enable watchdog checks, use the system watchdog command in EXEC mode. Use the no form of this command to disable this feature.

system watchdog

system no watchdog

Syntax Description

This command has no arguments or keywords.

Defaults

Enabled

Command Modes

EXEC

Command History

This command was introduced in Cisco MDS SAN-OS Release 1.0(2).

Usage Guidelines

If a watchdog is not logged at every 8 seconds by the software, the supervisor module reboots the switch.

You can disable the watchdog checking feature (enabled by default) for debugging and troubleshooting purposes like attaching a GDB or a kernel GDB (KGDB) to a specified process.

Examples

The following example enables the supervisor reset HA policy.

switch# system watchdog