Sleep - Cisco MDS 9000 series Command Reference Manual

Hide thumbs Also See for MDS 9000 series:
Table of Contents

Advertisement

Chapter 21
S Commands
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m

sleep

To delay an action by a specified number of seconds, use the sleep command.
Syntax Description
seconds
Defaults
None.
Command Modes
EXEC mode.
Command History
Release
1.0(2)
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.
OL-8413-07, Cisco MDS SAN-OS Release 3.x
sleep {seconds}
Specifies the delay in number of seconds. The range is 0 to 2147483647.
Modification
This command was introduced.
Cisco MDS 9000 Family Command Reference
sleep
21-29

Advertisement

Table of Contents
loading

Table of Contents