Author |
Message
|
bloomy |
Posted: Mon Apr 12, 2010 1:03 pm Post subject: Package name for WMB7 on LINUX |
|
|
 Acolyte
Joined: 11 Feb 2009 Posts: 61 Location: Bloomington, IL USA
|
I am trying to write a script for the automation of WMB7 installation, during this process I am trying to find if the WMB was already installed on the server.
In AIX I used the below command to check if WMB 7 is installed on the server.
lslpp -l | grep mqsi70.brokerc
but I am stuck with the same on LINUX, i am using "rpm" instead of "lslpp" but i am not getting any results back. May be the package name is not same on AIX and LINUX and I am not able to find the package name of WMB on the LINUX server.
I tried "rpm -q -a | grep mqsi70.brokerc" and i tried "rpm -q -a" and wrote the output to a file and searched for mqsi but did not find it. does anyone know what would be the package name of WMB7 on LINUX. Thanks in advance! |
|
Back to top |
|
 |
Herbert |
Posted: Tue Apr 13, 2010 2:58 am Post subject: Re: Package name for WMB7 on LINUX |
|
|
 Centurion
Joined: 05 Dec 2006 Posts: 146 Location: Leersum, The Netherlands
|
bloomy wrote: |
I am trying to write a script for the automation of WMB7 installation, during this process I am trying to find if the WMB was already installed on the server.
....
tried "rpm -q -a | grep mqsi70.brokerc" and i tried "rpm -q -a" and wrote the output to a file and searched for mqsi but did not find it. does anyone know what would be the package name of WMB7 on LINUX. Thanks in advance! |
The WMB installation on Linux is done by running a executable and not with package management software like apt-get / rpm. I don't think that quering package software will answer your question.
hgj |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Apr 13, 2010 4:59 am Post subject: Re: Package name for WMB7 on LINUX |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Herbert wrote: |
The WMB installation on Linux is done by running a executable and not with package management software like apt-get / rpm. I don't think that quering package software will answer your question.
|
I've not checked recently, but... underneath the executable, there was a bunch of rpm's that got installed. Well, they certainly showed up with
Code: |
rpm -qa | grep -i mq
|
And I'm not talking about the WMQ Packages.
However,
I'd probably test for the existence of a file in /opt/.../bin _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Apr 13, 2010 5:33 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
looking in /opt is a nice idea but may not be fully correct, as the broker install path is entirely customizable (unlike mq, which must be in /opt/mqm )
/var/mqsi is much more fixed. |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Apr 13, 2010 7:54 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
mqjeff wrote: |
looking in /opt is a nice idea but may not be fully correct, as the broker install path is entirely customizable (unlike mq, which must be in /opt/mqm )
/var/mqsi is much more fixed. |
Invoke the mqsiprofile and get the fill path to the bin file using which. That gets over the location issue. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Apr 13, 2010 8:58 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
smdavies99 wrote: |
mqjeff wrote: |
looking in /opt is a nice idea but may not be fully correct, as the broker install path is entirely customizable (unlike mq, which must be in /opt/mqm )
/var/mqsi is much more fixed. |
Invoke the mqsiprofile and get the fill path to the bin file using which. That gets over the location issue. |
yes, but how do you find the mqsiprofile? |
|
Back to top |
|
 |
bloomy |
Posted: Tue Apr 13, 2010 9:37 am Post subject: |
|
|
 Acolyte
Joined: 11 Feb 2009 Posts: 61 Location: Bloomington, IL USA
|
Thanks to everyone for the responses.
I am still not sure how to do this in LINUX, i will be more specific this time. In AIX when we do the below we get the result if we have broker installed or not. i wanted to find a similar way in LINUX.
$ lslpp -l | grep mqsi70.brokerc
mqsi70.brokerc 7.0.0.0 COMMITTED Broker Component
PS: lslpp command does not work in LINUX, and i dont think there is any command that would do the work of lslpp in LINUX. May be I am wrong. |
|
Back to top |
|
 |
MrSmith |
Posted: Fri May 06, 2011 2:28 am Post subject: |
|
|
 Master
Joined: 20 Mar 2008 Posts: 215
|
Not the neatest but certainly a way is that any WMB runtime will have certain "executables" like mqsideploy (which is fairly fundemental) so just use something like "locate" (if using RHEL) or "find" command these should show you where the "executable" exists place to variable and check variable is empty, like i say not neat but doable |
|
Back to top |
|
 |
mqjeff |
Posted: Fri May 06, 2011 2:40 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
The odds are very good that /var/mqsi itself will exist as a directory on any system that has at one point had Broker installed on it.
The odds are slightly less good that it will NOT exist on a system that HAS NOT had Broker installed on it.
So if the only intent is to find out if Broker was installed, test for the existence of /var/mqsi.
If the intent is to find out WHERE broker was installed or WHAT VERSION was installed.... I would probably do something like a recursive find for mqsiprofile itself. |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri May 06, 2011 3:05 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
To re-iterate my previous reply...
This is on RHEL 5.5 patched to 5.6
Code: |
[root@tigercub ~]# rpm -qa | grep mqsi
mqsi70.brokerc-7.0-0.0
mqsi70.datadirect-7.0-0.0
mqsi70.mrm-7.0-0.1
mqsi70.data-7.0-0.1
mqsi70.mrm-7.0-0.2
mqsi70.data-7.0-0.2
mqsi70.is-7.0-0.0
mqsi70.links-7.0-0.0
mqsi70.core-7.0-0.1
mqsi70.itlm-7.0-0.2
mqsi70.brokerc-7.0-0.2
mqsi70.tsamples-7.0-0.2
mqsi70.datadirect-7.0-0.2
mqsi70.mrm-7.0-0.0
mqsi70.profiles-7.0-0.0
mqsi70.data-7.0-0.0
mqsi70.brokerc-7.0-0.1
mqsi70.tsamples-7.0-0.1
mqsi70.datadirect-7.0-0.1
mqsi70.la-7.0-0.2
mqsi70.tsc-7.0-0.2
mqsi70.core-7.0-0.2
mqsi70.samples-7.0-0.2
mqsi70.tsc-7.0-0.0
mqsi70.core-7.0-0.0
mqsi70.samples-7.0-0.0
mqsi70.remover-7.0-0.1
mqsi70.is-7.0-0.1
mqsi70.itlm-7.0-0.1
mqsi70.links-7.0-0.1
mqsi70.tsamples-7.0-0.0
mqsi70.la-7.0-0.1
mqsi70.profiles-7.0-0.1
mqsi70.remover-7.0-0.2
mqsi70.profiles-7.0-0.2
mqsi70.la-7.0-0.0
mqsi70.itlm-7.0-0.0
mqsi70.tsc-7.0-0.1
mqsi70.samples-7.0-0.1
mqsi70.is-7.0-0.2
mqsi70.links-7.0-0.2
[root@tigercub ~]#
|
From the above it is quite easy to deduce that Version 7.0.0.2 is installed. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri May 06, 2011 4:42 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
bloomy, Linux installs are much different.
In the binary downloads for the product. WebSphere Message Broker V7.0.0.x Quick Start Guide for Multiplatform Multilingual, there is a PDF file in there called "installationguide.pdf".
Please read that, especially chapter 6.
Chapter 6 has crucial information and those steps must be completed prior to you installing the product.
Please do not try to install any files until you read and understand these instructions. There are preparation steps that must be completed before you begin. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
|