トレースのフォーマット

XML ビューアー (インターネット・ブラウザーのような)、またはファイル内の文書型記述子 (DTD) を理解する XML エディターを使用する場合を除いて、mqsireadlog コマンドによって生成されたトレース情報を読み取るのは困難です。

WebSphere Message Broker はコマンド mqsiformatlog を提供して、トレース情報をフラット・ファイルにフォーマットするため、テキスト・エディターを使用してそれを表示することができます。

mqsiformatlog コマンドは、 mqsireadlog コマンドによって生成されたファイルを入力データとして入手し、XML ログを構造化レコードに変換します。 さらに、現行ロケールにある XML メッセージへの挿入を検索します。 フォーマットされた出力をファイルに送信するか、またはコマンド行ウィンドウに表示するように誘導できます。

それぞれのトレース・エントリーには、タイム・スタンプおよび WebSphere Message Broker メッセージが含まれており、これには変数挿入を含む番号 (例、BIP2622) およびテキスト・ストリングが含まれます。

例: Windows でのユーザー・トレース情報のフォーマット

Windows で、 ユーザー・トレースの開始 で作成されたトレース・ファイルをフォーマットするには、 コマンド mqsiformatlog -i trace.xml -o formattrace.log を入力します。ここで、それぞれは以下を表します。

-i は入力ファイル (この場合は、trace.xml) を指定します
-o は出力ファイル (この場合は、formattrace.log) を指定します

このコマンドは、ファイル trace.xml にあるトレース情報を読み取り、それをファイル formattrace.log に書き込みます。以下の例では、normal レベルのトレース・ファイル用の mqsiformatlog コマンドの出力部分を説明します。
Timestamps are formatted in local time, 330 minutes past GMT.

2003-06-19 11:30:29.795999     2852   UserTrace   BIP2632I: Message received and propagated
 to 'out' terminal of MQ Input node 'Video_Test.VIDEO_XML_IN'.
2003-06-19 11:30:29.795999     2852   UserTrace   BIP6060I: Parser type 'Properties' created
 on behalf of node 'Video_Test.VIDEO_XML_IN' to handle portion of incoming message of length
 0 bytes beginning at offset '0'.
2003-06-19 11:30:29.795999     2852   UserTrace   BIP6061I: Parser type 'MQMD' created on
 behalf of node 'Video_Test.VIDEO_XML_IN' to handle portion of incoming message of length
 '364' bytes beginning at offset '0'. Parser type selected based on value 'MQHMD' from
previous parser. 
2003-06-19 11:30:29.795999     2852   UserTrace   BIP6061I: Parser type 'MRM' created on 
 behalf of node 'Video_Test.VIDEO_XML_IN' to handle portion of incoming message of length
 '650' bytes beginning at offset '364'. Parser type selected based on value 'MRM' from
 previous parser. 
2003-06-19 11:30:29.795999     2852   UserTrace   BIP2537I: Node 'Video_Test.Extract Fields':
 Executing statement 'BEGIN ... END;' at (.Video_Test_Compute.Main, 2.2).
2003-06-19 11:30:29.795999     2852   UserTrace   BIP2537I: Node 'Video_Test.Extract Fields':
 Executing statement 'SET OutputRoot = InputRoot;' at (.Video_Test_Compute.Main, 7.3).
2003-06-19 11:30:29.795999     2852   UserTrace   BIP2538I: Node 'Video_Test.Extract Fields':
 Evaluating expression 'InputRoot' at (.Video_Test_Compute.Main, 7.20).
2003-06-19 11:30:29.795999     2852   UserTrace   BIP2568I: Node 'Video_Test.Extract Fields':
 Performing tree copy of 'InputRoot' to 'OutputRoot'.

...

2003-06-19 11:30:29.827999     2852   UserTrace   BIP4124I: Message propagated to 'out'
 terminal of Compute node 'Video_Test.Extract Fields'.
2003-06-19 11:30:29.827999     2852   UserTrace   BIP2638I: The MQ Output node
 'Video_Test.VIDEO_OUT' attempted to write a message to queue 'VIDEO_OUT' connected
 to queue manager ''. The MQCC was '0' and the MQRC was '0'.
2003-06-19 11:30:29.827999     2852   UserTrace   BIP2622I: Message successfully output
 by output node 'Video_Test.VIDEO_OUT' to queue 'VIDEO_OUT' on queue manager ''. 

Threads encountered in this trace:
  2852
関連概念
トレース
特記事項 | 商標 | ダウンロード | ライブラリー | サポート | フィードバック
Copyright IBM Corporation 1999, 2005 Last updated: 11/07/2005
au14310_