The showlog script
The showlog script displays the contents the IBM Service log.
Product
The showlog script is available in WebSphere Application Server and WebSphere Application Server Network Deployment.
Authority
To run this script, your user profile must have *ALLOBJ authority.
Syntax
The syntax of the showlog script is:
showlog binaryfile [ outputfile ] [ -instance instance ]Parameters
The parameters of the showlog script are:
binaryfile
This is a required paramter. The value binaryfile specifies the of the IBM Service log file. If you do not specify a fully qualified file name, the script searches for the specified file in the /QIBM/UserData/WebAS5/edition/instance/logs directory, where edition is Base or ND depending on which product you are running and instance is the name of your instance.Note: The QEJBSVR user profile must have *R authority to the specified file.
outputfile
Optional. The value outputfile specifies the name of the file to which the script writes the formatted contents of the IBM service log. If you do not specify a fully qualified file name, the script creates the output file in the current working directory. By default, showlog writes results to standard out.Note: The QEJBSVR user profile must have *RW authority to the directory to contain the output file.
-instance
Optional. The value instance specifies the instance for which you want to display the IBM service log. The default value is default.
Examples
showlog activity.logThis example writes the formatted contents of the activity.log file for the default instance to standard out. The activity.log file is located in directory /QIBM/UserData/WebAS5/edition/default/logs where edition is Base or ND depending on which product you are running.
showlog -instance myinst /QIBM/UserData/WebAS5/Base/myinst/logs/activity.log /home/myprofile/formatted_activity.logWrites the formatted contents of the activity.log file for the myinst instance to the file formatted_activity.log in the /home/myprofile directory.