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><?xml version="1.0"?>
<XeObject
className="com.hp.mx.core.tools.actiononeve
nts.ActionOnEventsTaskParamete
rs" classVersion="2">
<Property name="wizardMode">
<Simple>1</Simple>
</Property>
<Property name="sendPage">
<Simple>false</Simple>
</Property>
<Property name="pag
erMode">
<Simple>1</Simple>
</Property>
<Property name="pagerMessage">
<Simple></Simple>
</Property>
<Property name="pagingUsers">
<List size="0">
</List>
</Property>
<Pr
operty name="sendMail">
<Simple>false</Simple>
</Property>
<Property name="mailTo">
<Simple></Simple>
</Property>
<Property name="mailCC">
<Simple></Simple>
</Property>
<P
roperty name="mailSubject">
<Simple></Simple>
</Property>
<Property name="mailFormat">
<Simple>1</Simple>
</Property>
<Property name="mailEncoding">
<Simple>UTF
-
8</Simple>
</Prope
rty>
<Property name="launchApp">
<Simple>false</Simple>