【问题标题】:How do i list all the servers in a WAS7 Profile on the commandline?如何在命令行上列出 WAS7 配置文件中的所有服务器?
【发布时间】:2016-04-07 23:59:02
【问题描述】:

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

谁能告诉我可以使用什么命令?我在 Windows 7 系统上。

【问题讨论】:

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

标签: command-line websphere websphere-7


【解决方案1】:

您可以使用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.

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-04-21
    • 2021-05-29
    • 2014-07-21
    • 2020-05-06
    • 1970-01-01
    • 2021-08-27
    • 2016-05-13
    • 1970-01-01
    相关资源
    最近更新 更多