Automating Failover Event Handling on Two HP Systems Insight Manager Servers White Paper 532451-002, February 2010

38
Appendix B
Sample event handler XML file
Here is the XML extracted using
mxtask
-
l
f
. Note it uses queryname
CITYB Event combo
. For this
example, you can cut
and
paste
from this document. The XML file in the previous example is named
C:
\
Docume~1
\
Administrator
\
cap.xml
. Edit the queryname to match the queries you have
created. You can create the
Event Handler Task
using the GUI (same steps are for creating the
Watch
Dog E
vent Handler
above)
. T
hen export it using the CLI tool.
For example:
mxtask
-
l
f 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.actiononevents.Actio
nOnEventsTask
Paramete
rs" classVersion="2">
<Property name="wizardMode">
<Simple>1</Simple>
</Property>
<Property name="sendPage">
<Simple>false</Simple>
</Property>
<Property name="pagerMode">
<Simple>1</Simple>
</Property>
<Property name="pa
gerMessage">
<Simple></Simple>
</Property>
<Property name="pagingUsers">
<List size="0">
</List>
</Property>
<Property name="sendMail">
<Simple>false</Simple>
</Property>
<Property name="mailTo">
<Simple></Simple>
</Property>
<Property na
me="mailCC">
<Simple></Simple>
</Property>
<Property name="mailSubject">
<Simple></Simple>
</Property>
<Property name="mailFormat">
<Simple>1</Simple>
</Property>
<Property name="mailEncoding">
<Simple>UTF
-
8</Simple>
</Property>
<Property n
ame="launchApp">
<Simple>false</Simple>