was、ihs、 mq、 db2的版本查询
AIX服務器上裝了was、ihs、 mq、db2等之類的軟件,是一臺很久的老服務器,如果你想知道這些軟件的版本,你可以這樣來查詢。
1、WAS
#ps -ef|grep java
wasuser 360526 ?1 6 Jun 29 ?- 720:55 /usr/was61/WebSphere/AppServer/java/bin/java -Declipse.security -Dwas.status.socket=38771
先看一下進程信息,然后進入/usr/was61/WebSphere/AppServer目錄下
#cd /usr/was61/WebSphere/AppServer
#cd bin
#./versionInfo.sh ?執行此腳本就可以查看具體版本信息了
WVER0010I: Copyright (c) IBM Corporation 2002, 2005; All rights reserved.
WVER0012I: VersionInfo reporter version 1.15.4.3, dated 11/12/08
--------------------------------------------------------------------------------
IBM WebSphere Application Server Product Installation Status Report
--------------------------------------------------------------------------------
Report at date and time June 11, 2013 4:34:01 PM GMT+08:00
Installation
--------------------------------------------------------------------------------
Product Directory ?/usr/was61/WebSphere/AppServer
Version Directory ?/usr/was61/WebSphere/AppServer/properties/version
DTD Directory ? /usr/was61/WebSphere/AppServer/properties/version/dtd
Log Directory ? /usr/was61/WebSphere/AppServer/logs
Backup Directory ? /usr/was61/WebSphere/AppServer/properties/version/nif/backup
TMP Directory ? /tmp
Product List
--------------------------------------------------------------------------------
ND ? ? ?installed
Installed Product
--------------------------------------------------------------------------------
Name ? ? ?IBM WebSphere Application Server - ND
Version ? ? 6.1.0.45
ID ? ? ?ND
Build Level ? ?cf451235.03
Build Date ? ?8/29/12
--------------------------------------------------------------------------------
End Installation Status Report
2、 IHS
IHS一般跟WAS的版本一致,如果你想單獨查,可以這樣來查
$ ps -ef|grep http
root 405752 ?1 0 Jun 29 ?- 0:26 /usr/was61/HTTPServer/bin/httpd -d /usr/was61/HTTPServer -k start
nobody 557170 405752 0 Jun 29 ?- 2:14 /usr/was61/HTTPServer/bin/httpd -d /usr/was61/HTTPServer -k start
nobody 577732 405752 0 Jul 01 ?- 1:49 /usr/was61/HTTPServer/bin/httpd -d /usr/was61/HTTPServer -k start
進入/usr/was61/HTTPServer/bin目錄
# ./versionInfo.sh ?執行此腳本就可以查看具體版本信息了
WVER0010I: Copyright (c) IBM Corporation 2002, 2005; All rights reserved.
WVER0012I: VersionInfo reporter version 1.15.4.3, dated 11/12/08
--------------------------------------------------------------------------------
IBM WebSphere Application Server Product Installation Status Report
--------------------------------------------------------------------------------
Report at date and time June 11, 2013 3:16:50 PM GMT+08:00
Installation
--------------------------------------------------------------------------------
Product Directory ?/usr/was61/HTTPServer
Version Directory ?/usr/was61/HTTPServer/properties/version
DTD Directory ? /usr/was61/HTTPServer/properties/version/dtd
Log Directory ? /usr/was61/HTTPServer/logs
Backup Directory ? /usr/was61/HTTPServer/properties/version/nif/backup
TMP Directory ? /tmp
Product List
--------------------------------------------------------------------------------
IHS ? ? ?installed
Installed Product
--------------------------------------------------------------------------------
Name ? ? ?IBM HTTP Server
Version ? ? 6.1.0.45
ID ? ? ?IHS
Build Level ? ?cf451235.03
Build Date ? ?8/29/12
--------------------------------------------------------------------------------
End Installation Status Report
--------------------------------------------------------------------------------
3、MQ
如果裝有MQ,可以切換至它默認的mqm賬戶
AIX下查詢
# su - mqm
$ dspmqver ?執行此命令顯示版本信息
Name: ?WebSphere MQ
Version: ?530.4 CSD04
CMVC level: p530-04-030617
BuildType: IKAP - (Production)
linux下查詢
tyzssq7:/home/mqm # su - mqm
mqm@tyzssq7:~> dspmqver
Name: ?WebSphere MQ
Version: ?7.0.1.3
CMVC level: p701-103-100813
BuildType: IKAP - (Production)
或者aix下也可以通過lslpp命令來看
# lslpp -ah mqm.server.rte
Fileset ? Level ?Action ?Status ?Date ? Time ?
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
mqm.server.rte
? ? 5.3.0.1 COMMIT ?COMPLETE ?01/06/06 ?13:52:45
? ? 5.3.0.1 APPLY ?COMPLETE ?01/06/06 ?13:52:45
? ? 5.3.0.4 APPLY ?COMPLETE ?01/06/06 ?13:53:43
4、DB2
切換到數據庫的用戶
# su - db2inst2
$ db2level ?執行此命令可看具體版本信息
DB21085I Instance "db2inst2" uses "32" bits and DB2 code release "SQL08027"
with level identifier "03080106".
Informational tokens are "DB2 v8.1.1.128", "s061108", "U810098", and FixPak
"14".
Product is installed at "/usr/opt/db2_08_01".
或者連接數據庫的時候,也可以看到版本
tyzssq7:/home/mqm # su - db2inst1
db2inst1@tyzssq7:~> db2 connect to portaldb
?Database Connection Information
Database server ? ?= DB2/LINUXX8664 9.7.6
SQL authorization ID ?= DB2INST1
Local database alias ?= PORTALDB
或者
db2inst1@tyzssq7:/opt/ibm/db2> db2licm -l
Product name: ? ? ? ? ? ? ? ? ? ? "DB2 Advanced Enterprise Server Edition"
License type: ? ? ? ? ? ? ? ? ? ? "Trial"
Expiry date: ? ? ? ? ? ? ? ? ? ? ?"02/19/2014"
Product identifier: ? ? ? ? ? ? ? "db2aese"
Version information: ? ? ? ? ? ? ?"9.7"
Product name: ? ? ? ? ? ? ? ? ? ? "DB2 Connect Server"
License type: ? ? ? ? ? ? ? ? ? ? "Trial"
Expiry date: ? ? ? ? ? ? ? ? ? ? ?"02/19/2014"
Product identifier: ? ? ? ? ? ? ? "db2consv"
Version information: ? ? ? ? ? ? ?"9.7"
總結
以上是生活随笔為你收集整理的was、ihs、 mq、 db2的版本查询的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 大型WEB架构概况(笔记整理)一
- 下一篇: linux 禁ping设置