使用 mqsiformatlog 命令处理由 mqsireadlog 创建的 XML 日志。 该命令检索并将 XML 日志所包含的所有消息格式化成适合于用户调用命令的语言环境的格式。
该命令解释已经在任何系统上用独立于平台的代码页 utf-8 创建的输入日志文件。使用它可以产生格式化的输出,这些输出是从其他系统传送到发出此命令的系统上的输入日志文件中产生的。如果使用此设施,则确保使用不转换数据的文件传送程序(例如,指定二进制传送选项)。
您可以将输出导向到文件或者命令 shell。
该命令编写(到文件或标准输出)的输出是以适合于当前用户语言环境的代码页编写的。
mqsiformatlog -i trace.xml -o formattrace.log
下列抽取的内容说明了由该命令生成的输出:
Timestamps are formatted in local time, local time is GMT. . . . 2003-02-12 12:57:21.895999 388 UserTrace BIP2638E: MQPUT to queue 'SYSTEM.BROKER.EXECUTIONGROUP.REPLY' on queue manager 'WBRK_QM': MQCC=0, MQRC=0; node ConfigurationMessageFlow.outputNode'. The node 'ConfigurationMessageFlow.outputNode' attempted to write a message to the specified queue 'SYSTEM.BROKER.EXECUTIONGROUP.REPLY' connected to queue manager 'WBRK_QM'. The MQCC was 0 and the MQRC was 0. No user action required. 2003-02-12 12:57:21.895999 388 UserTrace BIP2622I: Message successfully output by output node 'ConfigurationMessageFlow.outputNode' to queue 'SYSTEM.BROKER.EXECUTIONGROUP.REPLY' on queue manager 'WBRK_QM'. The WebSphere MQ output node ConfigurationMessageFlow.outputNode' successfully wrote an output message to the specified queue SYSTEM.BROKER.EXECUTIONGROUP.REPLY connected to queue manager WBRK_QM. No user action required. . . . Threads encountered in this trace: 335 388