Send documentation comments to mdsfeedback-doc@cisco.com
21-29
Cisco MDS 9000 Family Command Reference
OL-8413-07, Cisco MDS SAN-OS Release 3.x
Chapter 21 S Commands
sleep
sleep
To delay an action by a specified number of seconds, use the sleep command.
sleep {seconds}
Syntax Description
Defaults None.
Command Modes EXEC mode.
Command History
Usage Guidelines This command is useful within scripts.
Examples The following example shows how to 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 executes the discover scsi-target remote command,
and then waits for 10 seconds before executing the show scsi-target disk command.
The following example shows how to delay the switch prompt return.
switch# sleep 30
You will see the switch prompt return after 30 seconds.
seconds Specifies the delay in number of seconds. The range is 0 to 2147483647.
Release Modification
1.0(2) This command was introduced.