serverStatus command

Use the serverStatus command to obtain the status of one or all of the servers configured on a node. You can run this command from the $WAS_HOME/bin directory of a WAS installation or a Network Deployment installation.

 

Syntax

The command syntax is as follows

serverStatus <server>|-all [options]
The first argument is required. The argument is either the name of the server for which status is desired, or the -all keyword which requests status for all servers defined on the node.

 

Parameters

The following options are available for the serverStatus command...

-quiet Suppresses the progress information that the serverStatus command prints in normal mode.

-logfile <fileName> Specifies the location of the log file to which information gets written.

-replacelog Replaces the log file instead of appending to the current log.

-trace Generates trace information into a file for debugging purposes.

-username <name> Specifies the user name for authentication if security is enabled. Acts the same as the -user option.

-user <name> Specifies the user name for authentication if security is enabled. Acts the same as the -username option.

-password <password> Specifies the password for authentication if security is enabled.

-help Prints a usage statement.

-? Prints a usage statement.

 

Usage scenario

The following examples demonstrate correct syntax

serverStatus server

serverStatus -all (returns status for all defined servers)

serverStatus -trace (produces the serverStatus.log file)