コマンド行インターフェースを使用して、イベントをイベント・サーバーに送信することができます。
イベント・サーバーへのイベントの送信。
emitevent.jacl スクリプトは、イベントをイベント・サーバーに送信するためのコマンド行インターフェースを提供します。 ソース XML ファイルを提供するか、あるいはコマンド行でプロパティー値を指定することによって、イベントのコンテンツを供給することができます。
<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>
current_system_time パラメーターは、イベントが生成されたシステム時刻で、XML dateTime ストリングとして指定されます。
2 つのサンプル XML ファイル eventsample1.xml および eventsample2.xml が、install_root/events/samples ディレクトリーにあります。
wsadmin -f emitevent.jacl -severity 30 -extensionname test_event
wsadmin -f emitevent.jacl -xml ../samples/eventsample1.xml