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 Discussion » runmqsc commands

Post new topic  Reply to topic
 runmqsc commands « View previous topic :: View next topic » 
Author Message
aballuff
PostPosted: Mon Oct 21, 2002 10:28 am    Post subject: runmqsc commands Reply with quote

Newbie

Joined: 21 Oct 2002
Posts: 6

Hello,
Does anyone know where I can get some runmqsc scripts to do the basic information gathering and trouble shooting?


Thanks Much
AJB
Back to top
View user's profile Send private message
SimplyBao
PostPosted: Mon Oct 21, 2002 10:34 am    Post subject: Reply with quote

Newbie

Joined: 21 Oct 2002
Posts: 2

What types of scripts are you looking for? Windows, UNIX? The scripts are relatively easy to write but looking through the results may be a differnt story. I may be able to help you put something together.
_________________
IBM MQSeries Technical Sales Specialist
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
aballuff
PostPosted: Mon Oct 21, 2002 10:43 am    Post subject: runmqsc commands Reply with quote

Newbie

Joined: 21 Oct 2002
Posts: 6

HI,
I'm looking for UNIX scripts that gathers the qmgrs config info and their queues info. Also maybe a script to see if all the queues are running or not.

Thanks much
AJB
Back to top
View user's profile Send private message
SimplyBao
PostPosted: Mon Oct 21, 2002 1:11 pm    Post subject: Reply with quote

Newbie

Joined: 21 Oct 2002
Posts: 2

There is a support pac that will save QMGR definitions. That support pac is: http://www-3.ibm.com/software/ts/mqseries/txppacs/ms03.html

Additionally, what do you mean by "being able to tell if a queue is running or not"? I'm a bit confused by that question. The queue is either open for puts/get's or it is not. Basically, any command that you want to run can be put into a format such as this:


1. create a file with the appropriate runmqsc command, in my example I'll use example.dat. i.e. dis QMGR(*) all or dis chstatus(*) all

2. At the unix command prompt you can enter the following:

runmqsc "qmgr name" < example.dat > "some output file name" I'll use example_out.dat

DO NOT use the quotes, the text between the quotes are just a representation of what you need.What that will do for you is to perfrom the runmqsc command, pipe in the file name of the commands that you want processed and then output the data to some new file that you've created.

When you have that file with the generated output, you can do one of several things. Say for instance you want to find out how many channels are currently running on the server at that point in time. Your file would have included the line: dis chstatus(*). The output will give you a listing. You could do a word search on the file to see how many channels were in fact running by doing the following:

grep -i RUNNING example.out | wc -l

That line will count how many instances of the word RUNNING you have in that file, and therefore tell you how many channels are running.

You can do basically every command like that.

Another note, are you using a monitoring tool in your environment? There are many vendors out there that sell monitoring tools that can do this for you, and it can be automated. CommerceQuest, BEA, MQSoftware are examples of companies that sell monitoring tools.

Hope this helps.
_________________
IBM MQSeries Technical Sales Specialist
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » runmqsc commands
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.