如何在命令行上列出WAS7配置文件中的所有服务器?

时间:2016-04-07 23:59:03

标签: command-line websphere websphere-7

我想使用wasadmin或其他命令列出配置文件中的所有服务器,但查看IBMknowledge中心并不是那么直接找到。

任何人都能说出可以使用的命令吗?我在Windows 7系统上。

1 个答案:

答案 0 :(得分:2)

您可以使用serverStatus命令行工具。它将列出配置文件中的所有服务器及其当前状态(已停止/已启动),如下所示:

C:\IBM\WebSphere\AppServer85\profiles\AppSrv1\bin>serverStatus.bat -all
ADMU0116I: Tool information is being logged in file
           C:\IBM\WebSphere\AppServer85\profiles\AppSrv1\logs\serverStatus.log
ADMU0128I: Starting tool with the AppSrv1 profile
ADMU0503I: Retrieving server status for all servers
ADMU0505I: Servers found in configuration:
ADMU0506I: Server name: server1
ADMU0509I: The Application Server "server1" cannot be reached. It appears to be
           stopped.
相关问题