IBM Support

Starting and stopping a Web server using wsadmin in WebSphere Application Server

Troubleshooting


Problem

How to start and stop a Web server using wsadmin in WebSphere Application Server, Network Deployment edition.

Resolving The Problem

  1. Start wsadmin from WAS_ND_PROFILE/bin directory.
  2. From wsadmin prompt:
    1. Query Mbean for Web server:

      wsadmin> set ws [$AdminControl queryNames WebSphere:type=WebServer,cell=cell_name,*]
    2. Start the Web server:

      wsadmin> $AdminControl invoke $ws start {
      cell_name node_name web_server_name }

    3. Stop the Web server

      wsadmin> $AdminControl invoke $ws stop {
      cell_name node_name web_server_name}
                               
The command returns 'true' after successful completion.

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Administrative Scripting Tools (for example: wsadmin or ANT)","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"8.5.5;8.5;8.0;7.0;6.1;6.0","Edition":"Network Deployment","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Java SDK","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21214747