由于IBM BPM PS Adv的Web UI,我试图通过wsadmin控制台在单个JVM上启动和停止应用程序。不允许进行这种操作。所以,我有以下脚本:wsadmin脚本在通过SOAP对DMGR执行时超时
https://gist.github.com/predatorian3/b8661c949617727630152cbe04f78d7e
,当我运行它免受来自细胞宿主的DMGR,我收到以下错误。
[[email protected] ~]$ cat /usr/local/bin/Run_wsadmin.sh
#!/bin/bash
#
#
#
/opt/IBM/WebSphere/AppServer/bin/wsadmin.sh -lang jython -user serviceAccount -password password $*
[[email protected] ~]$ time Run_wsadmin.sh -f /opt/IBM/wsadmin/wsadmin_Restart_Application.py WPS00 CRT00WPS01 redirectResource_war
WASX7209I: Connected to process "dmgr" on node CRTDMGR using SOAP connector; The type of process is: DeploymentManager
WASX7303I: The following options are passed to the scripting environment and are available as arguments that are stored in the argv variable: "[WPS00, CRT00WPS01, redirectResource_war]"
WASX7017E: Exception received while running file "/opt/IBM/wsadmin/wsadmin_Restart_Application.py"; exception information: com.ibm.websphere.management.exception.ConnectorException
org.apache.soap.SOAPException: [SOAPException: faultCode=SOAP-ENV:Client; msg=Read timed out; targetException=java.net.SocketTimeoutException: Read timed out]
real 3m21.275s
user 0m17.411s
sys 0m0.796s
因此,我没有指定连接类型,并使用默认值,即SOAP。但是,在reading about the other Connection Types上,它们都没有看起来更好,但我将其归因于IBM文档模糊性。是否有增加超时等待时间或关闭它的选项,还是有更好的连接类型?
也直接在wsadmin控制台上运行它,它似乎挂起收集应用程序管理器字符串。
[[email protected] ~]$ Run_wsadmin.sh
WASX7209I: Connected to process "dmgr" on node CRTDMGR using SOAP connector; The type of process is: DeploymentManager WASX7031I: For help, enter: "print Help.help()"
wsadmin>appManager = AdminControl.queryNames('cell=CRTCELL,node=WPS00,type=ApplicatoinManager,process=CRT00WPS01,*')
WASX7015E: Exception running command: "appManager = AdminControl.queryNames('cell=CRTCELL,node=WPS00,type=ApplicationManager,process=CRT00WPS01,*')"; exception information:
com.ibm.websphere.management.exception.ConnectorException
org.apache.soap.SOAPException: [SOAPException: faultCode=SOAP-ENV:Client; msg=Read timed out; targetException=java.net.SocketTimeoutException: Read timed out]
wsadmin>
是否确定单元,节点,服务器名称是正确的?那个节点和服务器正在运行? – Gas
是的,当我搜索他们确实出现的过程时。该脚本一直在运行,直到安装了某个应用程序。 – Pred