IBM Support

Status of WebSphere Application Server

Technote (FAQ)


Question

Is there a command to use that will show the status of the WebSphere Application Server (WAS) that is installed with Tivoli Workload Scheduler (TWS)? How can you tell if it is hanging, down, or started?

Answer

Use the "~twshome/appserver/bin/serverStatus.sh" script to check the status of WAS.

NOTE: In TWS v8.5 and higher, this script is now located in the following directory (by default): ".../TWA/eWAS/bin"

Syntax:

$ ./serverStatus.sh
Usage: serverStatus <server name | -all> [-logfile <filename>][-replacelog][-trace] [-username <username>] [-password <password>][-profileName <profile>] [-help]

Example:

$ ./serverStatus.sh -all -username maestro -password mypasswd
ADMU0118E: The log file cannot be written to location
/export/home/maestro/appserver/profiles/twsprofile/logs/serverStatus.log;
please specify a different location with -logfile
ADMU0128I: Starting tool with the twsprofile profile
ADMU0503I: Retrieving server status for all servers
ADMU0505I: Servers found in configuration:
ADMU0506I: Server name: server1
ADMU0508I: The Application Server "server1" is STARTED
$

NOTE: Specify a logfile location using the -logfile parameter if you want to save the output to a file and avoid the ADMU0118E error. Alternatively, run this script as root, which has permissions to write to the default log directory.

If WAS is hanging (or stopped), you will get a message at the end (instead of the STARTED message) as follows:

ADMU0509I: The Application Server "server1" cannot be reached. It appears to be stopped.

Product Alias/Synonym

Maestro
TWS
TWA

Document information

More support for: IBM Workload Scheduler

Software version: 8.5, 8.5.1, 8.6

Operating system(s): AIX, HP-UX, Linux, Solaris, Windows

Reference #: 1315699

Modified date: 10 November 2016


Translate this page: