コマンド行インターフェースを使用して、イベント・サーバーにイベントを実行依頼することができます。
イベントをイベント・サーバーに送信します。
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
(c) Copyright IBM Corporation 2005, 2006.
本製品では Eclipse テクノロジーが採用されています。(http://www.eclipse.org)