简体   繁体   English

IBM MQ dmpmqlog 未生成包含持久数据的日志

[英]IBM MQ dmpmqlog Not Generating Log with Persistent Data

I want to use the dmpmqlog utility to view messages found in circular logs.我想使用dmpmqlog实用程序查看在循环日志中找到的消息。 Even though I follow everything as per IBM documentation, after I create the dump I'm unable to find the data in the logs.尽管我按照 IBM 文档遵循了所有内容,但在创建转储后我无法在日志中找到数据。 I stop the queue manager before running the dmpmqlog command, manually add few messages to the queue.我在运行dmpmqlog命令之前停止了队列管理器,手动将几条消息添加到队列中。 But in the dumped log files these messages are not shown.但在转储的日志文件中,这些消息并未显示。

I used the following invocation of dmpmqlog :我使用了dmpmqlog的以下调用:

dmpmqlog -m QMA
AMQ7701I: DMPMQLOG command is starting.
LOG FILE HEADER
***************

counter1  . . . : 56        
FormatVersion . : 5                    StrucId . . . . : 'HLFH'
logactive . . . : 3                    loginactive . . : 2         
logsize . . . . : 4096       pages
baselsn . . . . : <0:0:0:0>                
nextlsn . . . . : <0:0:16:43833>           
lowtranlsn  . . : <0:0:16:43129>           
minbufflsn  . . : <0:0:16:42697>           
headlsn . . . . : <0:0:16:42697>           
taillsn . . . . : <0:0:16:43832>           
hflag1  . . . . : 1         
               -> CONSISTENT
               -> CIRCULAR
HeadExtentID  . : 0                    LastEID . . . . : 1650643508
LogId . . . . . : 1650643508
FirstArchNum  . : 4294967295           LastArchNum . . : 4294967295
nextArcFile . . : 4294967295
FileCount . . . : 3         
Files . . . . . : 0, 1, 2
LastCId . . . . : 0                    softmax . . . . : 16777216  
LogPageSize . . : 4096      
RecOffset . . . : 4096      
MinAlign  . . . : 4096      
counter2  . . . : 56        


AMQ7719I: DMPMQLOG command is using a default of '0:0:16:42697' for the starting dump location.
LOG RECORD - LSN <0:0:16:42697>           
**********

HLG Header: lrecsize 212, version 1, rmid 0, eyecatcher HLRH
Creation Time: 2022-04-22 22:39:27.137 (UNKNOWN) (UTC +330)

LogRecdType . . : ALM Start Checkpoint (1025)
Eyecatcher  . . : ALRH                 Version . . . . : 1
LogRecdLen  . . : 192                  LogRecdOwnr . . : 1024   (ALM)
XTranid . . . . : TranType: NULL
ObjectName  . . : NULL
Qid . . . . . . : {NULL_QID}
ThisLSN . . . . : <0:0:0:0>                
PrevLSN . . . . : <0:0:15:50639>           

No data for Start Checkpoint Record


LOG RECORD - LSN <0:0:16:42909>           
**********

HLG Header: lrecsize 220, version 1, rmid 0, eyecatcher HLRH
Creation Time: 2022-04-22 22:39:27.137 (UNKNOWN) (UTC +330)

LogRecdType . . : ATM Transaction Table (773)
Eyecatcher  . . : ALRH                 Version . . . . : 1
LogRecdLen  . . : 200                  LogRecdOwnr . . : 768    (ATM)
XTranid . . . . : TranType: NULL
ObjectName  . . : NULL
Qid . . . . . . : {NULL_QID}
ThisLSN . . . . : <0:0:0:0>                
PrevLSN . . . . : <0:0:0:0> 

Also my CURRLOG is showing no log files.我的CURRLOG也没有显示任何日志文件。

DIS QMSTATUS CURRLOG
     1 : DIS QMSTATUS CURRLOG
AMQ8705I: Display Queue Manager Status Details.
   QMNAME(QMD)                             STATUS(RUNNING)
   CURRLOG( )

What am I doing wrong here, any help would be greatly appreciated.我在这里做错了什么,任何帮助将不胜感激。

IBM MQ V 9.1 IBM MQ V 9.1

I suspect you might have more luck with the dmpmqlog program if you try the following invocation:-我怀疑如果您尝试以下调用,您可能会更幸运地使用dmpmqlog程序:-

dmpmqlog -m QMA -b

The CURRLOG parameter is only applicable if you are using linear logging. CURRLOG 参数仅在您使用线性日志记录时适用。 Since you are using circular logging, it is expected to see a blank in there.由于您使用的是循环日志记录,因此预计会在其中看到空白。

From IBM Docs about DISPLAY QMSTATUS :-来自关于DISPLAY QMSTATUS 的IBM 文档:-

CURRLOG流水线日志

The name of the log extent being written to at the time that the DISPLAY QMSTATUS command is processed.在处理DISPLAY QMSTATUS命令时写入的日志范围的名称。 If the queue manager is using circular logging, and this parameter is explicitly requested, a blank string is displayed.如果队列管理器正在使用循环日志记录,并且明确请求了此参数,那么将显示一个空字符串。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM