|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
runmqsc commands |
« View previous topic :: View next topic » |
Author |
Message
|
aballuff |
Posted: Mon Oct 21, 2002 10:28 am Post subject: runmqsc commands |
|
|
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 |
|
 |
SimplyBao |
Posted: Mon Oct 21, 2002 10:34 am Post subject: |
|
|
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 |
|
 |
aballuff |
Posted: Mon Oct 21, 2002 10:43 am Post subject: runmqsc commands |
|
|
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 |
|
 |
SimplyBao |
Posted: Mon Oct 21, 2002 1:11 pm Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|