Author |
Message
|
vids |
Posted: Thu Dec 04, 2003 3:25 pm Post subject: Linear log clean-up script on windows 2000 |
|
|
 Acolyte
Joined: 24 Mar 2003 Posts: 68 Location: CA, USA
|
Hi,
I am trying to run Linear log clean-up script(MS62 support pac) on Windows 2000 box.
http://www-306.ibm.com/software/integration/support/supportpacs/individual/ms62.html
cleanmqlogs.pl -t C:\Program Files\IBM\WebSphere MQ -l C:\Program Files\IBM\WebSphere MQ\log -n -z QM1
where -t is the data directory
-l is log directory
I am getting the error "error opening mqs.ini".
Can anyone let me know how to run this perl script.
Thanks in advance _________________ Vids |
|
Back to top |
|
 |
EddieA |
Posted: Thu Dec 04, 2003 4:30 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
The problem is that Windows doesn't use an mqs.ini file. It stores everything in the Registry instead.
I'd suggest you build a dummy mqs.ini file that will point the Perl script at the correct location for files. You might also need dummy QM.ini files for each Queue Manager as well.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
vids |
Posted: Fri Dec 05, 2003 8:33 am Post subject: |
|
|
 Acolyte
Joined: 24 Mar 2003 Posts: 68 Location: CA, USA
|
Thanks Eddie.
Is anyone used this script on windows 2000?? or is there any other scripts available to clean up linear log on windows 2000???
Thanks _________________ Vids |
|
Back to top |
|
 |
RatherBeGolfing |
Posted: Mon Dec 08, 2003 5:48 am Post subject: |
|
|
 Centurion
Joined: 12 Nov 2002 Posts: 118 Location: Syracuse, NY, USA
|
I've been running the MS62 support pac to clean up linear log files on my V5.3 queue managers on Windows 2000 for most of the year. I didn't have to build any phantom .ini files
My command, which I launch from a cmd file with a triggered Q looks like this:
perl cleanmqlogs -n -u -t E:\Progra~1\IBM\Websph~1 QM1 >>cleanmqlogs.out 2> cleanmqlogs.err
My command assumes the log files are in the "standard" location in the folder specified in -t, so I don't have to use the -l variable. I don't want to archive the log files so I use -u (to delete them) instead of -z. The redirects at the end push successful results to .out and error results to .err.
I have used the short file names because I pass in the directory structure through the process definition associated with my triggered queue. And, MQ didn't like passing the "long" file names through a triggered process.
As, I mentioned, I've had no trouble running this command in Windows 2000.
I suspect your problem may be with the -z (Gzip) part of the argument??
Larry |
|
Back to top |
|
 |
vids |
Posted: Mon Dec 08, 2003 10:32 am Post subject: |
|
|
 Acolyte
Joined: 24 Mar 2003 Posts: 68 Location: CA, USA
|
Hi Larry,
Thank you so much. The problem was because of the space in the path specified C:\Program Files\IBM\WebSphere MQ.
The following command workes fine.
perl cleanmqlogs.pl -n -z -t C:\Progra~1\IBM\Websph~1 -l C:\Progra~1\IBM\Websph~1\log QM1 >>cleanmqlogs.out 2> cleanmqlogs.err
Since my Qmanager was recently created I can see the following entry in cleanmqlogs.out file
cleanmqlogs.pl: QM1: Needed for Media Recovery: S0000000.LOG
cleanmqlogs.pl: QM1: Needed for Qmgr Restart: S0000000.LOG
I'm not sure how -z works. Can we use winzip instead of gzip ?
In script, I changed $gzip = "gzip.exe"; to $gzip = "C:\Program Files\WinZip\WINZIP32.EXE";
It's not throwing any error. But Since I don't have any files to archieve, I can't test this. I know you are using -u to delete the files but could you please try using -z and let me know how exactly it works and where it's going to archive the files. I don't see any option to specify the path where we want to archieve the log files.
Secondly,
When I try to run rcdmqimg -m QM1 -t all
I get the following error:
AMQ7092: An object name is required but you did not specify one.
AMQ7024: Arguments supplied to a command are not valid.
Usage: rcdmqimg [-z] [-l] [-m QMgrName] -t ObjType [GenericObjName]
Can anyone let me know what's the problem here.
Thanks _________________ Vids |
|
Back to top |
|
 |
EddieA |
Posted: Mon Dec 08, 2003 10:59 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
I not sure you'll be able to use WinZip instead of gzip because I think the command line options are different. I'm sure you could find a Win32 version of gzip if you go looking.
Try: rcdmqimg -m QM1 -t all *
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
vids |
Posted: Mon Dec 08, 2003 12:46 pm Post subject: |
|
|
 Acolyte
Joined: 24 Mar 2003 Posts: 68 Location: CA, USA
|
Eddie ,
Thank you.
rcdmqimg -m QM1 -t all * works fine. _________________ Vids |
|
Back to top |
|
 |
vids |
Posted: Mon Dec 08, 2003 1:38 pm Post subject: |
|
|
 Acolyte
Joined: 24 Mar 2003 Posts: 68 Location: CA, USA
|
Eddie,
rcdmqimg -m QM1 -t all * looks like working fine but I don't see any new entry in the error log after running rcdmqimg showing which is the oldest log file required to start queue manager QM1.
The output of rcdmqimg is
Media image for object QM1, type catalogue recorded.
Media image for object QM1, type qmgr recorded.
Media image for object SYSTEM.DEFAULT.PROCESS, type process recorded.
Media image for object SYSTEM.DEFAULT.NAMELIST, type namelist recorded.
Media image for object SYSTEM.DEFAULT.AUTHINFO.CRLLDAP, type authinfo recorde
Media image for object SYSTEM.ADMIN.CHANNEL.EVENT, type queue recorded.
Media image for object SYSTEM.ADMIN.COMMAND.QUEUE, type queue recorded.
Media image for object SYSTEM.ADMIN.PERFM.EVENT, type queue recorded.
Media image for object SYSTEM.ADMIN.QMGR.EVENT, type queue recorded.
Media image for object SYSTEM.AUTH.DATA.QUEUE, type queue recorded.
Media image for object SYSTEM.CHANNEL.INITQ, type queue recorded.
Media image for object SYSTEM.CHANNEL.SYNCQ, type queue recorded.
Media image for object SYSTEM.CICS.INITIATION.QUEUE, type queue recorded.
Media image for object SYSTEM.CLUSTER.COMMAND.QUEUE, type queue recorded.
Media image for object SYSTEM.CLUSTER.REPOSITORY.QUEUE, type queue recorded.
Media image for object SYSTEM.CLUSTER.TRANSMIT.QUEUE, type queue recorded.
Media image for object SYSTEM.DEAD.LETTER.QUEUE, type queue recorded.
Media image for object SYSTEM.DEFAULT.ALIAS.QUEUE, type queue recorded.
Media image for object SYSTEM.DEFAULT.INITIATION.QUEUE, type queue recorded.
Media image for object SYSTEM.DEFAULT.LOCAL.QUEUE, type queue recorded.
Media image for object SYSTEM.DEFAULT.MODEL.QUEUE, type queue recorded.
Media image for object SYSTEM.DEFAULT.REMOTE.QUEUE, type queue recorded.
Media image for object SYSTEM.MQSC.REPLY.QUEUE, type queue recorded.
Media image for object SYSTEM.PENDING.DATA.QUEUE, type queue recorded.
Thanks _________________ Vids |
|
Back to top |
|
 |
EddieA |
Posted: Mon Dec 08, 2003 3:34 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
You need to add the -l option to get the log message written.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
vids |
Posted: Tue Dec 09, 2003 8:16 am Post subject: |
|
|
 Acolyte
Joined: 24 Mar 2003 Posts: 68 Location: CA, USA
|
Thanks Eddie. _________________ Vids |
|
Back to top |
|
 |
starfish77 |
Posted: Wed Dec 10, 2003 1:34 pm Post subject: |
|
|
 Apprentice
Joined: 07 Nov 2003 Posts: 31 Location: USA
|
Is there any utility on UNIX to clear the logs |
|
Back to top |
|
 |
vids |
Posted: Fri Dec 12, 2003 8:13 am Post subject: |
|
|
 Acolyte
Joined: 24 Mar 2003 Posts: 68 Location: CA, USA
|
MS62 can be used in Unix also. _________________ Vids |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Dec 12, 2003 10:00 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
For the record, there are three support packs that handle linear log cleanups.
MS0L
The aforementioned MS62
and MS67. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|