+

Search Tips   |   Advanced Search

 

Querying server state using scripting

 

You can use the wsadmin tool and scripting to query server states. Before starting this task, the wsadmin tool must be running. See the Start the wsadmin scripting client article for more information.

 

Overview

When querying the server state, the following command steps return a value of STARTED if the server is started. If the server is stopped, the command does not return a value.

In a ND environment, you also can query for the server status from the deployment manager. If the server is active, the command returns the STARTED return value. If the server is stopped, the command returns the STOPPED return value.Perform the following steps to query the server state:

 

Procedure



Use the AdminControl object for scripted administration

 

Related Reference


Commands for the AdminControl object