IBM Support

Status of WebSphere Application Server

Question & Answer


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":{"code":"SSGSPN","label":"IBM Workload Scheduler"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"--","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;8.5.1;8.6","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Product Synonym

Maestro;TWS;TWA

Document Information

Modified date:
17 June 2018

UID

swg21315699