Use the serverStatus script in Qshell to obtain the status of an application server instance. For information on running Qshell scripts, see Configure Qshell to run WebSphere Application Server - Express scripts.
Authority
No special authority is required to run this script.
UsageOn the CL command line, run the STRQSH (Start Qshell) command.
Run the cd command to change to the directory that contains the script:
cd /QIBM/ProdData/WebASE51/ASE/bin
Run the serverStatus script:
serverStatus server
where server is the name of your application server.
Syntax
The syntax of the serverStatus script is:
serverStatus server | -all -instance instance [ -logfile filename ] [ -replacelog ] [ -trace ] [ -username username ] [ -password password ] [ -help | -? ]
Parameters
The parameters of the serverStatus script are:
server
The value server is name of the server for which you want to display status. You must specify either a server name or the -all parameter. This value is case sensitive.
-all
If you specify this parameter, the script displays the status of all of the servers in the instance. You must specify either the -all parameter or a server name.
-instance
This is a required parameter. The value instance specifies the name of the instance that contains the server or servers for which you want to display status.
-logfile
This is an optional parameter. The value filename specifies the location and name of the log file for the script. The default value is /QIBM/UserData/WebASE51/ASE/instance/logs/serverStatus.log where instance is the name of the instance that contains to which the server for which you want to display status.
-replacelog
This is an optional parameter. If you specify this parameter, the script replaces the log file if it exists. By default the script appends to the log file if it exists.
-trace
This is an optional parameter. If you specify this parameter, the script outputs additional trace information to the log file for the script. You should only specify this parameter if errors occur when you try to display server status. The default is to not log additional trace information.
-username
This parameter is required if security is enabled for the server. The value username specifies the user name for authentication.
-password
This parameter is required if security is enabled for the server. The value password specifies the password for authentication.
-help or -?
This optional paramter prints the usage statement for the script.
Example
serverStatus myAppSvr
This example displays the status for the myAppSvr instance.