HP 3PAR OS 3.1.3 Command Line Interface Reference
33 Wait Command
waittask
DESCRIPTION
The waittask command asks the CLI to wait for a task to complete before proceeding. The
command automatically notifies you when the specified task is finished.
SYNTAX
The syntax for the waittask command can be one of the following:
waittask –v <task_ID>
waittask [<task_ID>...]
AUTHORITY
Any role in the system
OPTIONS
–v <task_ID>
Displays the detailed status of the task specified by <task_ID> as it executes. When the task
completes, this command exits.
–q
Quiet; do not report the end state of the tasks, only wait for them to exit.
SPECIFIERS
<task_ID>
Indicates one or more tasks to wait for using their task IDs. When no task IDs are specified, the
command waits for all non-system tasks to complete. To wait for system tasks, <task_id> must
be specified.
RESTRICTIONS
None
EXAMPLES
The following example shows how to wait for a task using the task ID. When successful, the
command returns only after the task is complete.
cli% waittask 1
Task 1 done
NOTES
• See the HP 3PAR Command Line Interface Administrator’s Manual for additional information
and examples regarding task management and task management commands.
• This command returns an error if any of the tasks it is waiting for fail.
664 Wait Command