HP 3PAR StoreServ 7450 4-node HP 3PAR Command Line Interface Administrator& - Page 127

Starting a Task, Displaying Task Information, Table 10 Task Manager Commands

Page 127 highlights

Table 10 Task Manager Commands (continued) Command settask showtask starttask waittask Description Set the priority of a running task. Display information about tasks on the system. Start a CLI command that runs as a background task. Ask the CLI to wait for a task to complete before proceeding. For a complete list of options available for the CLI task manager commands, see the HP 3PAR Command Line Interface Reference and the HP 3PAR CLI Help. Starting a Task You can use the starttask command to start a CLI command that runs as a background_command task type. The background_command manages CLI commands with long running times in the background so that multiple tasks can run concurrently. The background_command task type can be managed with the task manager commands: • See Table 10 (page 126) for a complete list of the task manager commands. • See the background_command task type in Table 11 (page 130) for a list of the commands that can be run by the starttask command. If the command running as a background_command requires user confirmation, you must force the command with the -f option. To start a background_command task, issue the starttask command, where: • is the name of the CLI command to run as a background_command. For a complete list of options available for the starttask command, see the HP 3PAR Command Line Interface Reference and the HP 3PAR CLI Help. Displaying Task Information Once a task is started, you can use the task ID to obtain information about the task. To see a list of all tasks that have been active within the last 24 hours, you can use the showtask command without specifying a task ID. For example: cli% showtask Id Type Name Status Phase Step -----Start_Time------ ---------FinishTime------- 1 vv_copy vv1a done 0/0 0/0 Wed Oct 06 18:44:05 EDT 2004 Wed Oct 06 18:44:57 EDT 2004 2 vv1b vv_copy active 2/3 0/8 Wed Oct 06 19:44:34 EDT 2004 -- All tasks are displayed by their task IDs, including active and completed tasks. The system stores information for up to 1,000 tasks. You can use the showtask-t command to show tasks older than 24 hours. You can use the showtask -d command and the task ID to display status information about a specific ongoing or completed task. Task 454 is shown in the following example: cli% showtask -d 454 Id Type Name Status Phase Step ----------StartTime FinishTime------454 tune_vv testvol done 0/0 0/0 Fri Apr 29 11:42:06 PDT 2005 Fri Apr 29 11:42:19 PDT 2005 Task Manager 127

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204

Table 10 Task Manager Commands
(continued)
Description
Command
Set the priority of a running task.
settask
Display information about tasks on the system.
showtask
Start a CLI command that runs as a background task.
starttask
Ask the CLI to wait for a task to complete before proceeding.
waittask
For a complete list of options available for the CLI task manager commands, see the
HP 3PAR
Command Line Interface Reference
and the HP 3PAR CLI Help.
Starting a Task
You can use the
starttask
command to start a CLI command that runs as a
background_command
task type. The
background_command
manages CLI commands with
long running times in the background so that multiple tasks can run concurrently. The
background_command
task type can be managed with the task manager commands:
See
Table 10 (page 126)
for a complete list of the task manager commands.
See the
background_command
task type in
Table 11 (page 130)
for a list of the commands
that can be run by the
starttask
command.
If the command running as a
background_command
requires user confirmation, you must force
the command with the
-f
option.
To start a
background_command
task, issue the
starttask <command_name>
command,
where:
<command_name>
is the name of the CLI command to run as a
background_command
.
For a complete list of options available for the
starttask
command, see the
HP 3PAR Command
Line Interface Reference
and the HP 3PAR CLI Help.
Displaying Task Information
Once a task is started, you can use the task ID to obtain information about the task. To see a list
of all tasks that have been active within the last 24 hours, you can use the
showtask
command
without specifying a task ID. For example:
cli% showtask
Id Type
Name Status Phase Step -----Start_Time------
---------FinishTime-------
1 vv_copy vv1a done
0/0
0/0 Wed Oct 06 18:44:05 EDT 2004 Wed Oct 06 18:44:57 EDT
2004
2 vv1b vv_copy active 2/3
0/8 Wed Oct 06 19:44:34 EDT 2004 --
All tasks are displayed by their task IDs, including active and completed tasks. The system stores
information for up to 1,000 tasks. You can use the
showtask-t <hours>
command to show
tasks older than 24 hours.
You can use the
showtask -d
command and the task ID to display status information about a
specific ongoing or completed task. Task
454
is shown in the following example:
cli% showtask -d 454
Id
Type
Name
Status Phase Step ----------StartTime---------
--------FinishTime-------
454 tune_vv testvol done 0/0
0/0 Fri Apr 29 11:42:06 PDT 2005 Fri Apr 29 11:42:19
PDT 2005
Task Manager
127