Author |
Message
|
gbenn |
Posted: Tue Jul 30, 2002 10:51 am Post subject: Log Files |
|
|
 Novice
Joined: 19 Jul 2002 Posts: 12 Location: Ann Arbor, Michigan USA
|
Maybe this is a dumb question but does anyone know how to view the Queue Manager's log files created in: C:\Program Files\MQSeries\log\
The files have a .TXT file association with a .LOG file extension but they are clearly not text files.
Troubleshooting how to troubleshoot is a pain in the rear.  |
|
Back to top |
|
 |
bduncan |
Posted: Tue Jul 30, 2002 11:54 am Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
Hmm.. You should be able to read them with any standard text editor (emacs, vi, wordpad, etc...) I think they don't appear correctly in notepad though because of the lack of the CRLF (since the queue manager writes the logs in UNIX-style even though it's on the windows platform).
Otherwise, I'd say you have a major problem, because I've always been able to view these things in text editors...  _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
gbenn |
Posted: Tue Jul 30, 2002 12:12 pm Post subject: |
|
|
 Novice
Joined: 19 Jul 2002 Posts: 12 Location: Ann Arbor, Michigan USA
|
Well, I think I have a major problem. I tried opening the file with Wordpad, Word, and Ultra-Edit 32 and all of them gave me the same garbage as Notepad. Is there some step I'm missing? I just go to the C:\Program Files\MQSeries\log\queue!manager!1\active directory and open the file: S0000002.LOG and it gives me garbage. For example:
AMQLOG ÈF=ÈF=ÈF= h |
|
Back to top |
|
 |
mgrabinski |
Posted: Tue Jul 30, 2002 9:38 pm Post subject: MQ logs |
|
|
Master
Joined: 16 Oct 2001 Posts: 246 Location: Katowice, Poland
|
Hi!
Brandon, I think that "gbenn" had MQSeries recovery logs in mind. They are binary and cannot be read by a text editor. Your suggestion is true for MQSeries errors logs. They are located in .../qmgrs/<QMgrName>/Errors. They are text and can be viewed by any text editor.
Just my 2 cents  _________________ Marcin Grabinski <>< |
|
Back to top |
|
 |
nimconsult |
Posted: Tue Jul 30, 2002 10:06 pm Post subject: |
|
|
 Master
Joined: 22 May 2002 Posts: 268 Location: NIMCONSULT - Belgium
|
You cannot read them directly as they are binary files.
You can format them into a readable format using the command "dmpmqlog". _________________ Nicolas Maréchal
Senior Architect - Partner
NIMCONSULT Software Architecture Services (Belgium)
http://www.nimconsult.be |
|
Back to top |
|
 |
gbenn |
Posted: Wed Jul 31, 2002 3:51 am Post subject: |
|
|
 Novice
Joined: 19 Jul 2002 Posts: 12 Location: Ann Arbor, Michigan USA
|
Nimconsult,
I tried using that "dmpmqlog" command earlier but when I did it just gave me:
C:\>dmpmqlog
AMQ7701: DMPMQLOG command is starting.
AMQ7718: DMPMQLOG command is using a default of 'queue.manager.1' for the queue
manager name.
AMQ7005: The queue manager is running.
AMQ7716: DMPMQLOG command has finished unsuccessfully.
I used the -m to specify the queue manager. It's in the default install directory, do I need to use the -f to specify the file location? |
|
Back to top |
|
 |
bduncan |
Posted: Wed Jul 31, 2002 8:49 am Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
Ahh, yes, I thought you were referring to the queue manager logs, not the recovery logs. whoops... _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
nimconsult |
Posted: Wed Jul 31, 2002 9:55 pm Post subject: |
|
|
 Master
Joined: 22 May 2002 Posts: 268 Location: NIMCONSULT - Belgium
|
gbenn,
That's one of the multiple issues of dmpmqlog: your queue manager must be stopped to run the command!
In addition to this is issue, my wish-list for dmpmqlog is also:
- filter output for a specific queue, or specific transaction.
- find a message.
- produce a formatted output reusable for "replay" commands.
This is for MQ v6? Can we hope? _________________ Nicolas Maréchal
Senior Architect - Partner
NIMCONSULT Software Architecture Services (Belgium)
http://www.nimconsult.be |
|
Back to top |
|
 |
gbenn |
Posted: Thu Aug 01, 2002 4:41 am Post subject: |
|
|
 Novice
Joined: 19 Jul 2002 Posts: 12 Location: Ann Arbor, Michigan USA
|
Yeah, I soon figured that out. I agree with your wishes too. My log file was 256 pages in length and filled with hexidecimal refs and other data that just doesn't format well when displayed on the screen or sent to a DOS file with '>'. I wish there was a way I could filter out everything but a particular queue's access to see its activity exclusively. |
|
Back to top |
|
 |
|