WebSphere MQ version identification

Asked by garys

I would like to be able to identify the version of WebSphere MQ installed on the client PC. Is there a way to do this via pymqi? I have not been able to find anything will return the WebSphere MQ version.

Thank you

Gary Scorby

Question information

Language:
English Edit question
Status:
Solved
For:
PyMQI Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dariusz Suchojad (dsuch) said :
#1

Hi,

just to confirm - you mentioned a client PC but did you mean an MQ client version or is it simply a queue manager running on a client PC version of which you'd like to query for?

Revision history for this message
Dariusz Suchojad (dsuch) said :
#2

Okay, if you meant the version of a queue manager then the PyMQI's equivalent of a following MQSC command

dis qmgr cmdlevel
     1 : dis qmgr cmdlevel
AMQ8408: Display Queue Manager details.
   QMNAME(QM01) CMDLEVEL(700)

would be:

import pymqi as mq
import CMQC, CMQCFC

qm_name = "QM01"
channel = "SVRCONN.1"
conn_info = "192.168.1.135(1434)"

op = mq.cd()
qm = mq.QueueManager(None)
ref = qm.connectTCPClient(qm_name, op, channel, conn_info)
pcf = mq.PCFExecute(qm)

params = pcf.MQCMD_INQUIRE_Q_MGR({CMQCFC.MQCMD_INQUIRE_SYSTEM: "*"})
if params:
    print params[0][CMQC.MQIA_COMMAND_LEVEL]

however I'm still not sure if you actually meant the version of a queue manager?

Revision history for this message
garys (gary-scorby) said :
#3

Thanks Dariusz

I am looking for the version of WebSphere MQ installed on the client...so the IBM versions 5.3.x, 6.0.x, 7.0.x. It will help our support staff if I can trace this information.

Thank you

Gary

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Dariusz Suchojad
Sent: Wednesday, March 10, 2010 10:10 AM
To: Gary Scorby
Subject: Re: [Question #103901]: WebSphere MQ version identification

Your question #103901 on PyMQI changed:
https://answers.launchpad.net/pymqi/+question/103901

    Status: Open => Needs information

Dariusz Suchojad requested for more information:

Hi,

just to confirm - you mentioned a client PC but did you mean an MQ
client version or is it simply a queue manager running on a client PC
version of which you'd like to query for?

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/pymqi/+question/103901

You received this question notification because you are a direct
subscriber of the question.

Revision history for this message
Dariusz Suchojad (dsuch) said :
#4

> I am looking for the version of WebSphere MQ installed on the client...so the IBM versions 5.3.x, 6.0.x, 7.0.x. It will help our
> support staff if I can trace this information.

Mhm, so it's not the queue managers. What operating systems are those MQ clients running on? I'm asking because it may be that the answer is outside of PyMQI, it could be a matter of querying the operation system's services. Is it Windows? Linux? Other systems?

Revision history for this message
garys (gary-scorby) said :
#5

It is Windows.

Gary

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Dariusz Suchojad
Sent: Wednesday, March 10, 2010 11:33 AM
To: Gary Scorby
Subject: RE: [Question #103901]: WebSphere MQ version identification

Your question #103901 on PyMQI changed:
https://answers.launchpad.net/pymqi/+question/103901

    Status: Open => Needs information

Dariusz Suchojad requested for more information:

> I am looking for the version of WebSphere MQ installed on the client...so the IBM versions 5.3.x, 6.0.x, 7.0.x. It will help our
> support staff if I can trace this information.

Mhm, so it's not the queue managers. What operating systems are those MQ
clients running on? I'm asking because it may be that the answer is
outside of PyMQI, it could be a matter of querying the operation
system's services. Is it Windows? Linux? Other systems?

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/pymqi/+question/103901

You received this question notification because you are a direct
subscriber of the question.

Revision history for this message
Dariusz Suchojad (dsuch) said :
#6

> It is Windows.

I think the best way is to ask the operating system, the case in fact doesn't involve communicating with MQ queue manager.
I'm sure there's a nice way to query the Windows package manager (or whatever they call it) for a version of "WebSphere MQ" application. Other, more hacky ways I can imagine:

- take advantage of MQ's setting MQ_JAVA_DATA_PATH environment variable and:
  - parse $MQ_JAVA_DATA_PATH/mqclient.ini file
  - parse META-INF/MANIFEST.MF file found in $MQ_JAVA_DATA_PATH/java/lib/com.ibm.mq.jar

But these are really gross hacks I feel stupid to even mention :-)

Revision history for this message
garys (gary-scorby) said :
#7

Thanks for your help. I just wanted to make sure I wasn't missing a built in call.

Gary

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Dariusz Suchojad
Sent: Wednesday, March 10, 2010 11:57 AM
To: Gary Scorby
Subject: RE: [Question #103901]: WebSphere MQ version identification

Your question #103901 on PyMQI changed:
https://answers.launchpad.net/pymqi/+question/103901

    Status: Open => Answered

Dariusz Suchojad proposed the following answer:

> It is Windows.

I think the best way is to ask the operating system, the case in fact doesn't involve communicating with MQ queue manager.
I'm sure there's a nice way to query the Windows package manager (or whatever they call it) for a version of "WebSphere MQ" application. Other, more hacky ways I can imagine:

- take advantage of MQ's setting MQ_JAVA_DATA_PATH environment variable and:
  - parse $MQ_JAVA_DATA_PATH/mqclient.ini file
  - parse META-INF/MANIFEST.MF file found in $MQ_JAVA_DATA_PATH/java/lib/com.ibm.mq.jar

But these are really gross hacks I feel stupid to even mention :-)

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/pymqi/+question/103901/+confirm?answer_id=5

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/pymqi/+question/103901

You received this question notification because you are a direct
subscriber of the question.

Revision history for this message
Dariusz Suchojad (dsuch) said :
#8

Hm, hm, hm.. now that I think of it, there's one thing you could try - pymqe (not pymqi) exports an __mqlevel__variable,
on my system it is

>>> import pymqe
>>> pymqe.__mqlevels__
('5.0', '5.1', '5.2', '5.3', '6.0', '7.0')
>>>

however I'm not sure if it's available if there's an MQ client only installed. Can you try it out and let me know?

Revision history for this message
garys (gary-scorby) said :
#9

I don't think it's the version of the MQ client install. Not sure what it is...maybe supported versions for the current compile?

Gary

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Dariusz Suchojad
Sent: Wednesday, March 10, 2010 12:10 PM
To: Gary Scorby
Subject: RE: [Question #103901]: WebSphere MQ version identification

Your question #103901 on PyMQI changed:
https://answers.launchpad.net/pymqi/+question/103901

Dariusz Suchojad posted a new comment:

Hm, hm, hm.. now that I think of it, there's one thing you could try - pymqe (not pymqi) exports an __mqlevel__variable,
on my system it is

>>> import pymqe
>>> pymqe.__mqlevels__
('5.0', '5.1', '5.2', '5.3', '6.0', '7.0')
>>>

however I'm not sure if it's available if there's an MQ client only
installed. Can you try it out and let me know?

--
You received this question notification because you are a direct
subscriber of the question.

Revision history for this message
Dariusz Suchojad (dsuch) said :
#10

> I don't think it's the version of the MQ client install. Not sure what it is...maybe supported versions for the current compile?

It's the version of MQ libraries PyMQI has been compiled but I'm not sure if client MQ libraries also export the necessary symbols. Worth a try though.

Revision history for this message
garys (gary-scorby) said :
#11

It was. Thanks again for your help.

Gary

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Dariusz Suchojad
Sent: Wednesday, March 10, 2010 12:37 PM
To: Gary Scorby
Subject: RE: [Question #103901]: WebSphere MQ version identification

Your question #103901 on PyMQI changed:
https://answers.launchpad.net/pymqi/+question/103901

Dariusz Suchojad posted a new comment:
> I don't think it's the version of the MQ client install. Not sure what
it is...maybe supported versions for the current compile?

It's the version of MQ libraries PyMQI has been compiled but I'm not
sure if client MQ libraries also export the necessary symbols. Worth a
try though.

--
You received this question notification because you are a direct
subscriber of the question.

Revision history for this message
Dariusz Suchojad (dsuch) said :
#12

Solved.

Revision history for this message
Gagan (gskhattar) said :
#13

Hi Dariusz Suchojad (dsuch), many thanks for this answer : dis qmgr cmdlevel

It was quite helpful as I was struggling to get the version of MQ 5. Here is what I got

dis qmgr cmdlevel
     1 : dis qmgr cmdlevel
AMQ8408: Display Queue Manager details.
   QMNAME(QMA_ICDPRD01) CMDLEVEL(500)