静默式设置IHS加入WAS DMGR管理并成功分发插件

现在的新版的WAS版本,将IHS加入到WAS的DMGR管理,一般有几中方式,一是静默式设置,二是,用WCT图形化设置,三是,在DMGR通过增加远程非受管节点的方式来将IHS加入到WAS的DMGR管理,让DMGR可以控制IHS的启停,下面,就说明静默式设置试,就是在遇到IHS,无法使用图形化界面时,如何在命令行,将IHS加入到WAS 的DMGR管理。

一、在IHS所在机器,静默式安装IM,IHS,PLUGIN,WCT工具软件,这里在本博客早前的文章有详细说明,这里不详述。有兴趣者,可以在本博客搜索就知道静默式安装方法。

二、在WAS 所在机器,静默式安装IM,WAS工具软件,并创建相应Node和DMGR,这些在本博客早前的文章有详细说明,这里也不详述,有兴趣者,可以在本博客搜索就知道静默式安装方法。

三、编辑ihs远程加入到DMGR的response.xml文件,内容如下:

configType=remote
enableAdminServerSupport=true
enableUserAndPass=true
enableWinService=false
ihsAdminCreateUserAndGroup=true
ihsAdminPassword=wasadmin
ihsAdminPort=8008
ihsAdminUnixUserGroup=wasadmin
ihsAdminUnixUserID=wasadmin
mapWebServerToApplications=true
wasMachineHostname=rhel6desk
webServerConfigFile1=/opt/IBM/HTTPServer/conf/httpd.conf
webServerDefinition=webserver1
webServerHostName=ctos6desk
webServerOS=Linux
webServerPortNumber=80
webServerSelected=ihs

留意红色标注的参数,要跟实际环境参数匹配。

四、编辑安装脚本:wct_shell.sh ,内容如下:

cd /opt/IBM/WebSphere/Toolbox/WCT/

./wctcmd.sh -tool pct -defLocPathname /opt/IBM/WebSphere/Plugins -defLocName webserver1 -createDefinition -response /opt/IBM/WebSphere/Toolbox/WCT/response.xml 

五、执行wct_shell.sh ,如下所示:

[root@ctos6desk WCT]# chmod a+x wct_shell.sh
[root@ctos6desk WCT]# ./wct_shell.sh
正在导入定义位置…

已成功导入定义位置

正在启动工具 pct …

工具执行已成功完成。

六、最后会在/opt/IBM/WebSphere/Plugins/bin下面生成一个configurewebserver1.sh .

七、通过ssh ,将configurewebserver1.sh ,传到was机器的dmgr的bin目录,如下所示:

[root@ctos6desk bin]# sftp root@192.168.179.17
Connecting to 192.168.179.17…
root@192.168.179.17’s password:
sftp> cd /opt/IBM/WebSphere
sftp> ls
AppServer Plugins Toolbox
sftp> cd AppServeer
Couldn’t canonicalise: No such file or directory
sftp> cd AppServer
sftp> cd profiles
sftp> ls
AppSrv01 Dmgr01
sftp> cd Dmgr01
sftp> cd bin
sftp> put configurewebserver1.sh
Uploading configurewebserver1.sh to /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/configurewebserver1.sh
configurewebserver1.sh 100% 2122 2.1KB/s 00:00
sftp> bye

八、执行configurewebserver1.sh,如下所示:

[root@rhel6desk bin]# ./configurewebserver1.sh
区域/单元名: <default>
Username: wasadmin
Password:
WASX7209I: 已使用 SOAP 连接器连接到节点 rhel6deskCellManager01 上的进程“dmgr”;进程的类型为:DeploymentManager
WASX7303I: 已将下列选项传递至脚本编制环境,它们将作为参数存储在 argv 变量中:“[webserver1, IHS, /opt/IBM/HTTPServer, /opt/IBM/HTTPServer/conf/httpd.conf, 80, MAP_ALL, /opt/IBM/WebSphere/Plugins, unmanaged, ctos6desk-node, ctos6desk, linux]”。

Input parameters:

Web server name – webserver1
Web server type – IHS
Web server install location – /opt/IBM/HTTPServer
Web server config location – /opt/IBM/HTTPServer/conf/httpd.conf
Web server port – 80
Map Applications – MAP_ALL
Plugin install location – /opt/IBM/WebSphere/Plugins
Web server node type – unmanaged
Web server node name – ctos6desk-node
Web server host name – ctos6desk
Web server operating system – linux
IHS Admin port – 8008
IHS Admin user ID – “”
IHS Admin password – “”
IHS service name – “”

Creating the unmanaged node ctos6desk-node .
Unmanged node ctos6desk-node is created.

Creating the web server definition for webserver1 on node ctos6desk-node.
Parameters for administering IHS web server can also be updated using wsadmin script or admin console.
Web server definition for webserver1 is created.

Start computing the plugin properties ID.
Plugin properties ID is computed.

Start updating the plugin install location.
Plugin install location is updated.

Start updating the plugin log file location.
Plugin log file location is updated.

Start updating the RemoteConfigFilename location.
Plugin remote config file location is updated.

Start updating the RemoteKeyRingFileName location.
Plugin remote keyring file location is updated.

Start saving the configuration.

Configuration save is complete.

Computed the list of installed applications.

Processing the application DefaultApplication.
Get the current target mapping for the application DefaultApplication.
Computed the current target mapping for the application DefaultApplication.
Start updating the target mappings for the application DefaultApplication.
ADMA5075I: 已开始编辑应用程序 DefaultApplication。
Target mapping is not updated for the application DefaultApplication, exception = com.ibm.ws.scripting.ScriptingException: com.ibm.websphere.management.exception.AdminException
javax.management.MBeanException
com.ibm.websphere.management.exception.AdminException: ADMA5026E: 没有在模块 DefaultWebApplication.war+WEB-INF/web.xml 的 ObjectName WebSphere:cell=rhel6deskCell01,node=rhel6deskCellManager01,server=server1 中指定有效目标。

Start saving the configuration.

Configuration save is complete.

九、然后登陆WAS的DMGR管理控制台,就可以在WEB服务器里,新加入的webserver1服务器,正常的话,就可以成功生成插件和分发插件,并且通过DMGR来控制IHS的启停。

 

以下文章点击率最高

Loading…

发表评论