You can use a command line interface to submit events to the event server.
Sends an event to the event server.
The emitevent.jacl script provides a command-line interface for submitting events to the event server. You can provide the event content by providing a source XML file or by specifying property values on the command line.
<CommonBaseEvent creationTime=current_system_time version="1.0.1"> <sourceComponentId component="emitevent.jacl" componentIdType="Application" location=local_hostname locationType="Hostname" subComponent="com.ibm.events.cli.util.EmitEventCliHelper" componentType="http://www.ibm.com/namespaces/autonomic/Tivoli /EventInfrastructure"/> <situation categoryName="ReportSituation"> <situationType xsi:type="ReportSituation" reasoningScope="EXTERNAL" reportCategory="CLI"/> </situation> </CommonBaseEvent>
The current_system_time parameter is the system time at which the event is generated, specified as an XML dateTime string.
Two sample XML files, eventsample1.xml and eventsample2.xml, are available in the install_root/events/samples directory.
wsadmin -f emitevent.jacl -severity 30 -extensionname test_event
wsadmin -f emitevent.jacl -xml ../samples/eventsample1.xml