ユーザー・トレースの検索

mqsireadlog を使用して、ユーザー・トレース機能によって記録されたトレース情報にアクセスできます。

このコマンドは、ユーザーがコマンド上で指定するパラメーターに応じてトレースの詳細情報を検索し、要求された記録をファイルまたはコマンド行ウィンドウに XML 形式で書き込みます。 このコマンド (z/OS 上で、BIPJLOG ジョブをカスタマイズして実行する) の詳細な説明の詳細については、mqsireadlog コマンドを参照してください。

例: XML 形式のユーザー・トレース情報の検索

分散プラットフォームで、 mqsichangetrace コマンドでアクティブにされたユーザー・トレースの情報を検索して、それを出力ファイルに書き込むには、コマンド mqsireadlog WBRK_BROKER -u -e デフォルト -o trace.xml を入力します。 ここで、
-u
ユーザー・トレースを指定する
-e
実行グループ (この場合は、デフォルトの実行グループ) を指定する
-o
は出力ファイル (この場合は、trace.xml) を指定する
これは、ログ要求をブローカーに送信してユーザー・トレース・ログを検索し、ファイル trace.xml に応答を保管します。プレーン・テキスト・エディターを使用して、このファイルを表示できます。 入手する出力の例を以下に示します。
<?xml version="1.0" encoding="UTF-8" ?>
<UserTraceLog uuid="UserTraceLog"
userTraceLevel="none" traceLevel="none"
userTraceFilter="debugTrace" traceFilter="none"
fileSize="1048576" fileMode="safe">
<UserTrace timestamp='2003-01-30 13:35:08.168000' thread='367'
function='ImbConfigurationNode::evaluate' type='ComIbmConfigurationNode'
name='ConfigurationNode' label='ConfigurationMessageFlow.ConfigurationNode'
text='Configuration changed successfully and committed to persistent store'
catalog='BIPV500' number='4040'
file='F:/build/S202_P/src/DataFlowEngine/ImbConfigurationNode.cpp' line='778'>
<Insert type='string'>default</Insert>
<Insert type='string'>2d193932-dd00-0000-0080-ab4b84e10d89</Insert>
<Insert type='string'>ConfigurationMessageFlow.ConfigurationNode</Insert>
</UserTrace>
<UserTrace timestamp='2003-01-30 13:35:08.187999' thread='367'
function='ImbMqOutputNode::putMessage' type='ComIbmMQOutputNode'
name='OutputNode' label='ConfigurationMessageFlow.outputNode'
text='MQPUT issued to put message to the specified output queue'
catalog='BIPV500' number='2638'
file='F:/build/S202_P/src/DataFlowEngine/ImbMqOutputNode.cpp' line='1474'>
<Insert type='string'>WBRK_QM</Insert>
<Insert type='string'>SYSTEM.BROKER.EXECUTIONGROUP.REPLY</Insert>
<Insert type='integer'>0</Insert>
<Insert type='integer'>0</Insert>
<Insert type='string'>ConfigurationMessageFlow.outputNode</Insert>
</UserTrace>

関連概念
トレース

関連タスク
エラーの診断
トレースの使用
ユーザー・トレースの開始
サービス・トレースの検索

関連資料
ユーザー・トレース
mqsichangetrace コマンド
mqsireadlog コマンド
z/OS ユーティリティー・ジョブ