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 » How to monitor QMgr by application?

Post new topic  Reply to topic Goto page Previous  1, 2
 How to monitor QMgr by application? « View previous topic :: View next topic » 
Author Message
Michael Dag
PostPosted: Thu Jan 08, 2004 3:39 am    Post subject: Reply with quote

Jedi Knight

Joined: 13 Jun 2002
Posts: 2607
Location: The Netherlands (Amsterdam)

On Solaris/AIX:

Code:
#!/usr/bin/ksh
dspmq | grep -v Running | cut -d '(' -f2,3 | cut -d ')' -f1 | while read qmgr
do
  status=`dspmq -m $qmgr | cut -d '(' -f2,3 | cut -d ')' -f2 | cut -d '(' -f2`
  echo QMgr $qmgr is $status
done


On Windows:

Code:
for /F "tokens=1,2,3,4,5,* delims=()" %i IN ('dspmq') DO @IF NOT %l==Running echo QMgr %j is %l


above scripts already ignore Running qmgrs, replace the 'echo' staement with the action you want to 'perform'.

Michael
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » General IBM MQ Support » How to monitor QMgr by application?
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.