Automation of two HP Systems Insight Manager 5.3 servers to provide Failover Event Handling 532451-001, January 2009

17
Figure 16
Select the tool to create
Creating the tool definition
Enter the required name (for examp
le, AddHandler), command file, a
nd parameters. The path names
must be in DOS 8
-
dot
-
3 format. In this example, the command path is t
he location of the
MXTASK
command
MXTASK
is used to create a new event handler using and XML file for the rules.
In this example, the command file path
is /opt/mx/bin/mxtask
(Linux and HPUX)
C:
\
Program Files
\
HP
\
Systems Insight Manager
\
bin
\
mxtask
(Windows).
The parameters are:
-
cf /root/cap.xml
(Linux and HPUX)
and
-
cf C:
\
cap.xml
The
cf
option
tell
s
mxtask
to create a task from a file called
cap.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
-
If myEventHandler >> cap.xml
to
capture the content and syntax of the event handler. After you have the syntax correct, delete the task
using
mxtask
-
r My
EventHandler
(for this example, the event handler is named
ClaudiasEvents
).
There is no
Modify Task
command so manipulation fo the handler is done by creating it and removing
it as needed. The path and parameters for this task is shown below.