Hello Michael,
not sure what issues you had with registry. I found that it is most
reliable source as MQ itself updating it. The only issues i saw is when you
looking at it at the time of qmgr going down that is not reflected
immediately.
one other way is look at qmgr error log file. When qmgr is down it is not
being updated. Or follow the simialar path as on unix, check the processes
that are running Windows Scripting Host example "ps" can be used.
Michael Dag
<[EMAIL PROTECTED]>
Sent by: MQSeries List
<[email protected]> To:
[email protected]
cc:
14/09/2007 10:31
Please respond to MQSeries List
Subject:
Re: How to
query QMgr status in Windows?
-----------------------------------------------------------------------------------------------------------------------------------------------
Paul,
Still think on Windows dspmq is your best and most reliable option,
is this program targetted at a specific group of machines?
(i.e. can you tell which possible languages are in use?)...
Michael
-----Original Message-----
From: MQSeries List [mailto:[EMAIL PROTECTED] On Behalf
Of
Meekin, Paul
Sent: 14 September 2007 10:34
To: [email protected]
Subject: How to query QMgr status in Windows?
Hi MQers,
I need to check if any QMgrs are running from a small program. Under Unix I
decided to just grep for any amqzxma0 processes which suits my purpose.
Under Windows I'm using Javascript running in Windows Script Host (the only
execution environment I can guarantee to be present) so this option doesn't
seem to be available. (Also, I won't use any language with the word "BASIC"
in it!).
I tried using the registry entries for QueueManagerStatus but found these
to
be unreliable. Another option I ruled out was to issue dspmq and parse the
output since I can't guarantee that the target machine will be using
English
language messages.
I also considered issuing a command like "echo end | runmqsc MY_QMGR" and
checking the return code and while it seems to work is a bit rough and
ready
for my liking.
So I thought I'd try and use the ActiveX classess and actually try to
connect to each QMgr in turn. Unfortunately I can't get this to work - even
though the same code works perfectly in the supplied sample when run in a
web page. I get errors that it can't find the classes.
Can anyone suggest either a way to get the Javascript connection to work or
alternatively a better way of making sure no QMgrs are running?
Cheers,
Paul
To unsubscribe, write to [EMAIL PROTECTED] and, in the
message body (not the subject), write: SIGNOFF MQSERIES Instructions for
managing your mailing list subscription are provided in the Listserv
General
Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
To unsubscribe, write to [EMAIL PROTECTED] and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
To unsubscribe, write to [EMAIL PROTECTED] and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html