wsadmin + jython重新启动WAS appserver [英] wsadmin + jython restart WAS appserver
本文介绍了wsadmin + jython重新启动WAS appserver的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以使用wsadmin(jacl/jython)停止/启动WAS appserver.我想删除配置文件上的所有缓存,然后重新启动WAS appserver.我将wsadmin作为独立服务器使用.
Is it possible to stop/start WAS appserver using wsadmin (jacl/jython). I want to detele all caches on profile and then restart WAS appserver. I'm using wsadmin as standalone.
推荐答案
您可以从wsadmin中发出命令(使用Jython):
From wsadmin you may issue a command (using Jython):
AdminControl.invoke(AdminControl.queryNames('WebSphere:*,type=Server,node=%s,process=%s' % ('YourNodeName', 'YourServerName')), 'restart')
与WAS Base& ND. 使用ND,您还有另一种选择:
works with WAS Base & ND. With ND you have another option:
AdminControl.invoke(AdminControl.queryNames('WebSphere:*,type=Server,node=%s,process=%s' % ('YourNodeName', 'YourServerName')), 'stop')
# now your server is stopped, you can do any cleanup
# and then start the server with NodeAgent
AdminControl.invoke(AdminControl.queryNames('WebSphere:*,type=NodeAgent,node=%s' % 'YourNodeName'), 'launchProcess', ['YourServerName'], ['java.lang.String'])
这篇关于wsadmin + jython重新启动WAS appserver的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文