Infrastructure management using the HP SIM command line interface (436331-002, January 2009)

You must use the following options when the sched parameter tasktype is schedule:
I<intervaltype> are the values that you can define in minutes (runs every X minutes), hours
(runs every X hours), days (runs every X days at the specified time), weeks (runs every X weeks at
the specified day and time), months (runs every X months at the specified day and time), daily (at
the specified time), or runonce (at the specified date and time). Here, X is defined by the P option
below.
P<periodic> defines the periodic interval for the task, and can be any number greater than zero.
For example, P3 runs the task every third time.
D<day|date> defines the day or time for task execution, and is only required if the I parameter is
weeks, months, or runonce. For weeks, valid values are the days of the week (sunday, monday,).
For months, valid values range from 1-31, representing a day of the month. For runonce, the valid
date value uses the mm/dd/yy format.
M<time> defines the time for task execution, and is required for all I parameter values except
minutes and hours. The format is hh:mm, using the 24 hour format. For example, 1pm is
represented as 13:00.
Using the –c option to create a task can be complicated if all of the options are required to properly
define the task. You can create a task by defining the task in XML format, and use the mxtask
command use the XML definition. The command is:
# mxtask –cf taskfile.xml
The XML format for the task is defined in the mxtask(4) man page. The general format of the XML
syntax for the task is:
<?xml version="1.0" encoding="UTF-8"?>
<task-list>
<task name="task name" type="add|remove|manual|schedule"
owner="taskowner" runmode="runnow|runatstartup">
<toolname>tool name</toolname>
<queryname>query name</queryname>
<scheduleinfo interval="x" periodic="x" time="x" day="x" date="x"/>
<timefilter />
<toolparams />
</task>
</task-list>
To remove an existing task, enter:
# mxtask –r taskname
Where taskname is the name of the task you want to remove.
To run an existing task immediately, enter:
# mxtask –e taskname
To change the owner of a task, use the –o option, for example:
# mxtask –o taskname newowner
In this example, newowner, an existing user in HP SIM, becomes the owner of the task taskname. To
execute this command, you must have the authorization to change task ownership (see Managing
users and authorizations).
There are different options available for displaying task information. To see a tabular list of all exiting
tasks in HP SIM, use one of the following commands:
# mxtask
17