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

Appendix B
Sample
e
vent
h
andler XML
f
ile
Here is the XML extracted using mxtas
k
lf . Note it uses queryname
CITYB Event combo
.
For this
example,
you can cut & paste
fr
om this document. The
XML file
in the
previous
example
is
named
C:
\
Docume~1
\
Administrator
\
cap.xml
.
E
dit the queryname to match the queries you have created.
Y
ou can create the Event Handler Task using the GUI (same steps are for creating the Watch Dog
Even
t Handler above); the
n export it using the CLI tool.
For example
;
mxtask
lf ClaudiasEvents >> cap.xml.
<?xml version="1.0" encoding="windows
-
1252"?>
<task
-
list>
<task name="AutomaticEventHandler1" type="add"
owner="dl360auto4
\
Administrator" state="e
nabled">
<toolname>Action on Events</toolname>
<queryname>CITYB Event combo</queryname>
<scheduleinfo />
<timefilter />
<toolparams>&lt;?xml version="1.0"?&gt;
&lt;XeObject
className="com.hp.mx.core.tools.actiononeve
nts.ActionOnEventsTaskParamete
rs" classVersion="2"&gt;
&lt;Property name="wizardMode"&gt;
&lt;Simple&gt;1&lt;/Simple&gt;
&lt;/Property&gt;
&lt;Property name="sendPage"&gt;
&lt;Simple&gt;false&lt;/Simple&gt;
&lt;/Property&gt;
&lt;Property name="pag
erMode"&gt;
&lt;Simple&gt;1&lt;/Simple&gt;
&lt;/Property&gt;
&lt;Property name="pagerMessage"&gt;
&lt;Simple&gt;&lt;/Simple&gt;
&lt;/Property&gt;
&lt;Property name="pagingUsers"&gt;
&lt;List size="0"&gt;
&lt;/List&gt;
&lt;/Property&gt;
&lt;Pr
operty name="sendMail"&gt;
&lt;Simple&gt;false&lt;/Simple&gt;
&lt;/Property&gt;
&lt;Property name="mailTo"&gt;
&lt;Simple&gt;&lt;/Simple&gt;
&lt;/Property&gt;
&lt;Property name="mailCC"&gt;
&lt;Simple&gt;&lt;/Simple&gt;
&lt;/Property&gt;
&lt;P
roperty name="mailSubject"&gt;
&lt;Simple&gt;&lt;/Simple&gt;
&lt;/Property&gt;
&lt;Property name="mailFormat"&gt;
&lt;Simple&gt;1&lt;/Simple&gt;
&lt;/Property&gt;
&lt;Property name="mailEncoding"&gt;
&lt;Simple&gt;UTF
-
8&lt;/Simple&gt;
&lt;/Prope
rty&gt;
&lt;Property name="launchApp"&gt;
&lt;Simple&gt;false&lt;/Simple&gt;