Author |
Message
|
veeruk |
Posted: Wed Mar 29, 2006 7:08 am Post subject: Archiving log files-Tool or code |
|
|
Acolyte
Joined: 13 Mar 2006 Posts: 73
|
Hi,
I was told to write a batch file which can be used to archive the log files in the test environment (since linear logging is implemented). Is there any third party tool which can be used to archive the log files(except the one useful to restore the queue manager)?
Thank you,
Veeru. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Mar 29, 2006 7:22 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
There are a couple different support packs for managing linear log files.
One is perl, one is java/korn shell. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
veeruk |
Posted: Wed Mar 29, 2006 7:27 am Post subject: |
|
|
Acolyte
Joined: 13 Mar 2006 Posts: 73
|
Could you please let me know the name of the Perl support pack? I searched through the IBM Websphere MQ site, but could not find the one used to 'Archive log files'. Since I have to use it on Windows machine, please let me know the perl support pack.
Thank you. |
|
Back to top |
|
 |
sandiksk |
Posted: Wed Mar 29, 2006 8:04 am Post subject: |
|
|
Centurion
Joined: 08 Jun 2005 Posts: 133
|
You could try this support pac
MS0L: MQSeries - Linear Logfile Maintenance in Java & Korn Shell
There's also MS62 and MS67.
Last edited by sandiksk on Wed Mar 29, 2006 8:06 am; edited 1 time in total |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Mar 29, 2006 8:05 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Sorry, there are actually three support packs.
MS0L - MQSeries - Linear Logfile Maintenance in Java & Korn Shell
MS62 - MQSeries - Linear log clean-up script
and
MS67 - MQSeries - Linear Log Manager
The keyword here is 'linear' not 'archive'. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
sandiksk |
Posted: Wed Mar 29, 2006 8:27 am Post subject: |
|
|
Centurion
Joined: 08 Jun 2005 Posts: 133
|
|
Back to top |
|
 |
veeruk |
Posted: Wed Mar 29, 2006 8:47 am Post subject: |
|
|
Acolyte
Joined: 13 Mar 2006 Posts: 73
|
Thanks a lot for your replies guys.
I went through a 'Read me' file of the MS62 Perl support pack.It says that the program may delete the files used for recovery. Use at our own risk. Now I'm not sure to use it,because I don't want to cause problems to the Test environment anymore.
I looked at MSOL & the other support packs instead, but no instructions were provided for using it on Windows machine,but only on UNIX machines.
Kindly guide me. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Mar 29, 2006 9:02 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Read the doc on MS62 again. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
veeruk |
Posted: Wed Mar 29, 2006 11:00 am Post subject: |
|
|
Acolyte
Joined: 13 Mar 2006 Posts: 73
|
It says that it will unlinke(delete) the files which are not necessary. Now doesn't it mean that the older log files will be deleted.Now I don't want any files to be deleted,but just archive them aside and reduce the disk space. Kindly inform me if I'm getting it wrong somewhere. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Mar 29, 2006 11:09 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Quote: |
it parses the qmgr's error log and determines which files are older than what is required. Then, it either gzips, compresses, or unlinks (deletes), |
My emphasis.
But guess what - If you don't delete them, then they will still be taking up space! _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
veeruk |
Posted: Wed Mar 29, 2006 11:16 am Post subject: |
|
|
Acolyte
Joined: 13 Mar 2006 Posts: 73
|
Thank you.
So THAT was my mistake.Anyhow once we archive it, we'll be deleting the old log files to save space. So it won't cause any problem to the exisitng logs.
Now I got a clear picture.Thanks once again. |
|
Back to top |
|
 |
veeruk |
Posted: Thu Mar 30, 2006 6:55 am Post subject: |
|
|
Acolyte
Joined: 13 Mar 2006 Posts: 73
|
Hi,
I could not find a detailed description of using the Linear Log File maintenance command on Windows Server.I'm providing the steps that I should perform for archiving linear logs below. Can someone please correct me if I'm wrong?
1)Run the command 'rcdmqimg t * -m warwick.qmgr' <where warwick.qmgr is the Queue Manager name>
2)Downloaded and unzipped MS0L support pack
2)Run the command: 'mqllm.bat -q warwick.qmgr'
Is there anything else I need to change in the mqllm.bat file?Please guide me.
Veeru. |
|
Back to top |
|
 |
veeruk |
Posted: Thu Mar 30, 2006 9:32 am Post subject: |
|
|
Acolyte
Joined: 13 Mar 2006 Posts: 73
|
When I tried to execute the batch file on my local machine(test qmgr), the following error showed up:
C:\Documents and Settings\wbiuser\Desktop\msol>mqllm.bat -q testqm1 -l C:\Docume
nts and Settings\wbiuser\Desktop\ -v
C:\Documents and Settings\wbiuser\Desktop\msol>echo off
Registry exception: com.ice.jni.registry.NoSuchKeyException: RegOpenKeyEx(), key
='SOFTWARE\IBM\MQSeries\CurrentVersion\Configuration\QueueManager\-q\Log'
Registry exception: com.ice.jni.registry.NoSuchValueException: RegQueryValueEx()
, value='LogType'
Registry exception: com.ice.jni.registry.NoSuchValueException: RegQueryValueEx()
, value='LogPath'
Exception in thread "main" java.lang.NullPointerException
at com.ibm.aim.logfile.AimMqLinearLogfileMaint.executeMqLinearLogfileMai
nt(AimMqLinearLogfileMaint.java:231)
at com.ibm.aim.logfile.AimMqLinearLogfileMaint.main(AimMqLinearLogfileMa
int.java:452)
Could someone help me figuring out what this means?
Thank you, |
|
Back to top |
|
 |
wschutz |
Posted: Thu Mar 30, 2006 10:56 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Just a guess.. but this:
Quote: |
'SOFTWARE\IBM\MQSeries\CurrentVersion\Configuration\QueueManager\-q\Log'
|
make me think the program is trying to find the "-q" qmgr.
Maybe you should try the bat file without the -q ?[/code] _________________ -wayne |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Mar 30, 2006 2:32 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
and make sure the case of your qmgr name is the same as displayed by dspmq _________________ MQ & Broker admin |
|
Back to top |
|
 |
|