AIX服務器上裝了was、ihs、 mq、db2等之類的軟件,是一臺好久的老服務器,若是你想知道這些軟件的版本,你能夠這樣來查詢。java
一、WASlinux
#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目錄下eclipse
#cd /usr/was61/WebSphere/AppServersocket
#cd binide
#./versionInfo.sh 執行此腳本就能夠查看具體版本信息了ui
WVER0010I: Copyright (c) IBM Corporation 2002, 2005; All rights reserved.code
WVER0012I: VersionInfo reporter version 1.15.4.3, dated 11/12/08orm
--------------------------------------------------------------------------------
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
二、 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
--------------------------------------------------------------------------------
三、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
四、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"