HP 3PAR InForm OS 3.1.1 CLI Administrator's Manual
For a complete list of options available for the settask command, see the HP 3PAR InForm OS
Command Line Interface Reference and InForm OS CLI Help.
Waiting for a Task
You can use the task ID and the waittask command to ask the system to wait for a task to
complete before returning a command prompt. This prevents you from running too many tasks at
once. If you use the waittask -v option the command displays detailed task status as the task
executes, and then return after it completes. For example:
cli%
Id Type Name Status Phase Step -----StartTime---- -----FinishTime--
454 tune_vv testvol Active 2/3 0/4 Fri Apr 29 11:42:06 PDT 2005
Detailed status:
{Fri Apr 29 11:42:06 PDT 2005} Created task.
{Fri Apr 29 11:42:06 PDT 2005} Tuning VV 'testvol'.
{Fri Apr 29 11:42:06 PDT 2005} Scheduled region move of 256MB from (testvol.usr.1:0MB)
to (testvol.usr.2:0MB).
{Fri Apr 29 11:42:06 PDT 2005} Scheduled region move of 256MB from (testvol.usr.0:0MB)
to (testvol.usr.3:0MB).
{Fri Apr 29 11:42:06 PDT 2005} Scheduled region move of 256MB from
(testvol.usr.1:256MB) to (testvol.usr.2:256MB).
{Fri Apr 29 11:42:06 PDT 2005} Scheduled region move of 256MB from
(testvol.usr.0:256MB) to (testvol.usr.3:256MB).
{Fri Apr 29 11:42:06 PDT 2005} Storing task data for later restarts.
{Fri Apr 29 11:42:06 PDT 2005} Started region move of 256MB from (testvol.usr.1:0MB)
to (testvol.usr.2:0MB).
{Fri Apr 29 11:42:06 PDT 2005} Started region move of 256MB from (testvol.usr.0:0MB)
to (testvol.usr.3:0MB).
{Fri Apr 29 11:42:06 PDT 2005} Started region move of 256MB from
(testvol.usr.1:256MB) to (testvol.usr.2:256MB).
{Fri Apr 29 11:42:06 PDT 2005} Started region move of 256MB from
(testvol.usr.0:256MB) to (testvol.usr.3:256MB).
{Fri Apr 29 11:42:19 PDT 2005} Completed region move of 256MB from
(testvol.usr.1:256MB) to (testvol.usr.2:256MB) in 13 seconds.
{Fri Apr 29 11:42:19 PDT 2005} Completed region move of 256MB from (testvol.usr.1:0MB)
to (testvol.usr.2:0MB) in 13 seconds.
{Fri Apr 29 11:42:19 PDT 2005} Completed region move of 256MB from (testvol.usr.0:0MB)
to (testvol.usr.3:0MB) in 13 seconds.
{Fri Apr 29 11:42:19 PDT 2005} Completed region move of 256MB from
(testvol.usr.0:256MB) to (testvol.usr.3:256MB) in 13 seconds.
{Fri Apr 29 11:42:19 PDT 2005} Waiting to switch regions to their new locations.
{Fri Apr 29 11:42:19 PDT 2005} Switching regions to their new locations.
{Fri Apr 29 11:42:19 PDT 2005} Reclaiming unused LD space.
{Fri Apr 29 11:42:19 PDT 2005} Deleted LD testvol.usr.1.
{Fri Apr 29 11:42:19 PDT 2005} Deleted LD testvol.usr.0.
{Fri Apr 29 11:42:19 PDT 2005} Cleaning up task data for later restarts.
{Fri Apr 29 11:42:19 PDT 2005} Completed region moves. Moved 4 regions for a total
of 1024 MB in 13 seconds.
NOTE: To cancel the waittask command, use CTRL-+C. This stops the waittask command
and returns a command prompt, but does not affect the task that is running in the background.
126 Managing Tasks