C613-50170-01 Rev B
Command Reference for x510 Series
464
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
S
CRIPTING
C
OMMANDS
WAIT
wait
Overview
This command pauses execution of the active script for the specified period of
time.
Syntax
wait <
delay
>
Default
No wait delay is specified by default to pause script execution.
Mode
Privileged Exec (when executed from a script not directly from the command line)
Usage
Use this command to pause script execution in an
.scp
(AlliedWare Plus™ script) or
an
.sh
(ASH script) file executed by the
command. The script must contain
an
enable
command, because the
wait
command is only executed in the
Privileged Exec mode.
Example
See an
.scp
script file extract below that will show port counters for interface
port1.0.1 over a 10 second interval:
Related
Commands
Parameter
Description
<
delay
>
<
1-65335
> Specify the time delay in seconds
enable
show interface port1.0.1
wait 10
show interface port1.0.1