Automation of two HP SIM 5.1 or 5.2 servers to provide Failover Event Handling (44776-001, January 2009)

Creating the
t
ool
d
efinition
Enter
the required name (
for example, AddHandler)
, com
mand file, and parameters
. The
path names
must be in DOS 8
-
dot
-
3 format. In this
example,
the command path is the location of the
MXTASK
command.
MXTASK
is used to create a new event handler using an XML file for the rules.
In this example, the command fi
le path is
/opt/mx/bin/mxtask
(Linux)
C:
\
Program Files
\
HP
\
Systems Insight Manager
\
bin
\
mxtask
(Windows).
The parameters are:
-
cf /root/cap.xml (Linux) ,
-
cf C:
\
cap.xml
The
cf
command tells mxtask to
c
reate a task from a
f
ile called
cpa.xml
in XML
format
. See
the
appendix for the syntax of the XML file.
Tricks:
The
simplest
way to
retrieve
the XML file is to use the GUI to create an event handler
(Appendix A) that you want and then use the
mxtask
lf myEventHandler >> cap.xml
to
capture the
content
and s
yntax of the event handler.
After
you have the syntax
correct
, delete the task
using
mxtask
r MyEventHandler
(for
this
example,
the event handler
is named
ClaudiasEvents
).
T
here is no
Modify Task
command so
manipulation of the handler if done by
creating
it and removing it as needed.
T
he path and parameters for this task
is shown below
.