189 8069 5689

AIX服务器如何查询was、ihs、mq、db2的版本

这篇文章将为大家详细讲解有关AIX服务器如何查询was、ihs、mq、db2的版本,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

成都创新互联主营平利网站建设的网络公司,主营网站建设方案,重庆APP开发公司,平利h5成都微信小程序搭建,平利网站营销推广欢迎平利等地区企业咨询

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"

关于“AIX服务器如何查询was、ihs、mq、db2的版本”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。


文章名称:AIX服务器如何查询was、ihs、mq、db2的版本
本文链接:http://cdxtjz.com/article/pdhidi.html

其他资讯