HP Systems Insight Manager 6.3 Command Line Interface Guide

Example 15
To create task1, which runs every 7 days on Tuesday at 6:00 PM, with the associated query query1
and tool toolexample that already exists in the database, with the task type schedule, enter mxtask
-c task1 -q query1 -t toolexample -w Tschedule.Idays.P7.Dtuesday.M18:00.
In this example, there are no tool (user) parameters required for the tool being specified, so -A
and -f are not required.
Example 16
To create task1, which runs every Saturday at 1:00 AM, with the associated query query1 and
tool toolexample that already exists in the database, with the task type schedule, enter mxtask
-c task1 -q query1 -t toolexample -w Tschedule.Idaily.Dsaturday.M1:00.
In this example, there are no tool (user) parameters required for the tool being specified, so -A
and -f are not required.
Example 17
To create task1, which runs once at the specified date (mm/dd/yy) and time (hh:mm), with the
associated query query1 and tool toolexample that already exists in the database, with the task
type schedule, enter mxtask -c task1 -q query1 -t toolexample -w
Tschedule.Irunonce.D01/02/03.M1:00.
In this example, there are no tool (user) parameters required for the tool being specified, so -A
and -f are not required.
Example 18
To create task1, with the associated query query1 and tool toolexample that already exists in the
database, with the task type add, and the tool parameter data specified in c:\params.xml,
enter mxtask -c task1 -q query1 -t toolexample -w Tadd -f c:\params.xml.
Tool parameters are specified with -f. The filename specifies the path and name of a file that
contains the tool (user) parameter data for the specified tool. The tool parameter data contained
in this file must be of the exact same XML format as stored in the Systems Insight Manager database.
Example 19
To create task1, with the associated query query1 and tool toolexample that already exists in the
database, with the task type manual, and the task owner owner1, enter mxtask -c task1 -q
query1 -t toolexample -w Tmanual -o owner1.
In this example, there are no tool (user) parameters required for the tool being specified, so -A
and -f are not required.
Example 20
To create task1, with the associated query query1 and tool toolexample that already exists in the
database, with the task type add, the tool parameter data specified in c:\params.xml, the task
owner owner 1, a standard time filter called Business Hours, enter, mxtask -c task1 -q
query1 -t toolexample -w Tadd -f c:\params.xml -o owner 1 -i Business
Hours.
Tool parameters are specified with -f. The filename specifies the path and name of a file that
contains the tool (user) parameter data for the specified tool. The tool parameter data contained
in this file must be of the exact same XML format as stored in the Systems Insight Manager database.
The Task Owner is specified on the command line with -o along with the associated task.
Command line option arguments that contain spaces must be enclosed in double quotation marks.
mxtask 111