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 » Having problems with MS62 - cleanmqlogs.pl

Post new topic  Reply to topic
 Having problems with MS62 - cleanmqlogs.pl « View previous topic :: View next topic » 
Author Message
alexf400
PostPosted: Thu Apr 10, 2014 3:42 am    Post subject: Having problems with MS62 - cleanmqlogs.pl Reply with quote

Newbie

Joined: 10 Apr 2014
Posts: 8

About a week ago I found that disk space was increasing on 2 of my Production MQ servers, so delving into it further I found that the MS62 script (cleanmqlogs.pl ) running under Autosys was failing.

When I ran it manually (after doing an rcdmqimg) the script asked whether it could overwrite the previous cleardowns last .gz file, after I answered yes the script then gzipped the rest of the files. But that leaves me the problem of how to run this as a scheduled job.

The log of the job looks like this.

About to gzip LNPBISWI.QM's S0021345.LOG
About to gzip LNPBISWI.QM's S0021346.LOG
About to gzip LNPBISWI.QM's S0021347.LOG
cleanmqlogs.pl: LNPBISWI.QM: Needed for Media Recovery: S0021420.LOG
cleanmqlogs.pl: LNPBISWI.QM: Needed for Qmgr Restart: S0021420.LOG
cleanmqlogs.pl: LNPBISWI.QM: latest = latest4restart
About to gzip LNPBISWI.QM's S0021347.LOG
cleanmqlogs.pl: LNPBISWI.QM: Needed for Media Recovery: S0021420.LOG
cleanmqlogs.pl: LNPBISWI.QM: Needed for Qmgr Restart: S0021420.LOG
cleanmqlogs.pl: LNPBISWI.QM: latest = latest4restart
About to gzip LNPBISWI.QM's S0021347.LOG
cleanmqlogs.pl: LNPBISWI.QM: Needed for Media Recovery: S0021466.LOG
cleanmqlogs.pl: LNPBISWI.QM: Needed for Qmgr Restart: S0021466.LOG
cleanmqlogs.pl: LNPBISWI.QM: latest = latest4restart
About to gzip LNPBISWI.QM's S0021347.LOG
cleanmqlogs.pl: LNPBISWI.QM: Needed for Media Recovery: S0021539.LOG
cleanmqlogs.pl: LNPBISWI.QM: Needed for Qmgr Restart: S0021538.LOG
cleanmqlogs.pl: LNPBISWI.QM: latest = latest4restart
About to gzip LNPBISWI.QM's S0021466.LOG
About to gzip LNPBISWI.QM's S0021467.LOG

So the script has already gzipped S0021347.LOG but starts the next session trying to gzip it again, even though it doesnt exist. It is S0021347.LOG.gz now.

The problem seemed to start on April 1st on both servers, there havent been any changes on the servers as far as I know, and the scripts have been working for years prior to that.

I would be grateful for any advice or help you could offer.

Thanks
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Apr 10, 2014 5:12 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Make sure you move any zipped / gzipped logs to a different directory. This way they cannot show up in a list of files scanned by the support pack...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
MonkeyDoo
PostPosted: Thu Apr 10, 2014 5:22 am    Post subject: Reply with quote

Novice

Joined: 05 Aug 2013
Posts: 17

After the rcdmqimg, you are told which file is need for restart and recovery. Any file of a lower number than the lowest of those two are no longer needed as the Qmgr will never reference them again.

Why would you gzip them (or keep them)?
Back to top
View user's profile Send private message
alexf400
PostPosted: Thu Apr 10, 2014 5:43 am    Post subject: Reply with quote

Newbie

Joined: 10 Apr 2014
Posts: 8

"After the rcdmqimg, you are told which file is need for restart and recovery. Any file of a lower number than the lowest of those two are no longer needed as the Qmgr will never reference them again.

Why would you gzip them (or keep them)?"

Very good point! But that's what the SupportPac does as default. So I guess I could do a cleanmqlogs.pl -u QMGR and that would delete all the old files rather than keeping the gzip versions of them, which as you say, we have no need for!

I wonder why it started going wrong last week though, after all those years of running OK?


Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Having problems with MS62 - cleanmqlogs.pl
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.