ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Archiving log files-Tool or code

Post new topic  Reply to topic Goto page 1, 2  Next
 Archiving log files-Tool or code « View previous topic :: View next topic » 
Author Message
veeruk
PostPosted: Wed Mar 29, 2006 7:08 am    Post subject: Archiving log files-Tool or code Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed Mar 29, 2006 7:22 am    Post subject: Reply with quote

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
View user's profile Send private message
veeruk
PostPosted: Wed Mar 29, 2006 7:27 am    Post subject: Reply with quote

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
View user's profile Send private message
sandiksk
PostPosted: Wed Mar 29, 2006 8:04 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed Mar 29, 2006 8:05 am    Post subject: Reply with quote

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
View user's profile Send private message
sandiksk
PostPosted: Wed Mar 29, 2006 8:27 am    Post subject: Reply with quote

Centurion

Joined: 08 Jun 2005
Posts: 133

You could look at the following link for any MQ support pack

http://www-1.ibm.com/support/docview.wss?uid=swg27007197
Back to top
View user's profile Send private message
veeruk
PostPosted: Wed Mar 29, 2006 8:47 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed Mar 29, 2006 9:02 am    Post subject: Reply with quote

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
View user's profile Send private message
veeruk
PostPosted: Wed Mar 29, 2006 11:00 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed Mar 29, 2006 11:09 am    Post subject: Reply with quote

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
View user's profile Send private message
veeruk
PostPosted: Wed Mar 29, 2006 11:16 am    Post subject: Reply with quote

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
View user's profile Send private message
veeruk
PostPosted: Thu Mar 30, 2006 6:55 am    Post subject: Reply with quote

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
View user's profile Send private message
veeruk
PostPosted: Thu Mar 30, 2006 9:32 am    Post subject: Reply with quote

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
View user's profile Send private message
wschutz
PostPosted: Thu Mar 30, 2006 10:56 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
fjb_saper
PostPosted: Thu Mar 30, 2006 2:32 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General IBM MQ Support » Archiving log files-Tool or code
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.