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

Command line 如何在命令行上列出WAS7配置文件中的所有服务器?,command-line,websphere,websphere-7,Command Line,Websphere,Websphere 7,我想使用wasadmin或其他命令列出概要文件中的所有服务器,但是查看ibmkknowledge中心并不是很容易找到的 有人能告诉我可以使用什么命令吗?我使用的是windows 7系统。您可以使用命令行工具。它将列出配置文件中的所有服务器及其当前状态(已停止/已启动),如下所示: C:\IBM\WebSphere\AppServer85\profiles\AppSrv1\bin>serverStatus.bat -all ADMU0116I: Tool information is bei

我想使用wasadmin或其他命令列出概要文件中的所有服务器,但是查看ibmkknowledge中心并不是很容易找到的

有人能告诉我可以使用什么命令吗?我使用的是windows 7系统。

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

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

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.

不建议在同一配置文件中使用多台服务器。您对此有业务需求吗?在许多wsadmin命令中,一个很好的帮助起点是使用。不建议在同一配置文件中使用多个服务器。您对此有业务需求吗?在许多wsadmin命令中,一个很好的帮助起点是使用。