Monitor WebSphere Application Server jobs on the iSeries server

The WebSphere Application Server for iSeries product is shipped configured to use a single WebSphere instance, the default instance. However, multiple instances are also supported. For more information, see the Create a new instance topic in Administration. This page describes the jobs used by a WebSphere instance and how you can monitor the jobs by using iSeries command language (CL) commands.

WebSphere Application Server jobs

Each WebSphere Application Server instance consists of one or more jobs. These jobs run in the QEJBAS5 subsystem:

Each WebSphere Application Server Network Deployment instance consists of one job. This job runs in the QEJBASND5 subsystem:

Other jobs

In addition to the jobs that run in the QEJBAS5 or QEJBASND5 subsystems, WebSphere instances use other jobs:

OS/400 command language (CL) commands for monitoring jobs

Use iSeries command language (CL) commands to monitor jobs that run in your WebSphere Application Server environment. You can view job logs, display message details, and view spooled files associated with the jobs. The job logs and associated spooled files for the jobs can contain valuable information for determining the root of a problem.

Note: For more information on iSeries work management CL commands, see OS/400 Work Management V5R1 (SC41-5306-03) or iSeries Work Management V5R2.

This table lists some iSeries commands that you can use to monitor WebSphere Application Server jobs:

Task iSeries command and description
Work with active WebSphere Server jobs
WRKACTJOB SBS(QEJBAS5)
For WebSphere Application Server V5.0 jobs that run in the QEJBAS5 subsystem.
WRKACTJOB SBS(QEJBASND5)
For WebSphere Application Server V5.0 jobs that run in the QEJBASND5 subsystem.
Work with all jobs with a specific name
WRKJOB JOB(job_name)
This command lists all jobs, active or not, named job_name. The jobs are listed by date, most recent first.

This command is very useful when a WebSphere Application Server job ends abnormally or fails to start successfully, and you wish to view the joblog. For instance, if the application server job is starting and then ending immediately, you could do this to view its joblog:

  • Run the command WRKJOB JOB(SERVER1).
  • Specify option 1 on the option line next to the first job listed that has a status of OUTQ.
  • Specify option 4 (Work with spooled files) on the command line of the Work with Job screen.
  • Specify option 5 next to the QPJOBLOG spooled file to view the contents.

Work with a specific job
WRKJOB JOB(job_number/job_user/job_name)
This command displays the Work with Job screen for the specified job.

This command is very useful when you know the fully qualified job information for the job.

View the job log for an active WebSphere server job
WRKACTJOB SBS(QEJBAS5)
or
WRKACTJOB SBS(QEJBASND5)
  1. Run one of the commands above.
  2. Enter option 5 (Work with) in the option line next to the active job whose job log you want to view.
  3. In the Work with Job display, enter option 10 (Display job log, if active or on job queue).
  4. Press F10 to display all messages.
  5. In the job log, position the cursor on a message for which you want to display extended message information.
  6. Press F1 (Help).

Similarly, you can view ended jobs by using the Work with User Jobs (WRKUSRJOB) or Work with Job (WRKJOB) command.

Work with WebSphere server jobs that run under the QEJBSVR user profile
WRKUSRJOB USER(QEJBSVR)
Delete spooled files for QEJBSVR user profile
DLTSPLF FILE(*SELECT) SELECT(QEJBSVR)
View the spooled files for a job
WRKACTJOB SBS(QEJBAS5)
or
WRKACTJOB SBS(QEJBASND5)
  1. Run one of the commands above.
  2. Enter option 8 (Work with Spooled Files) in the option line next to the active job whose spooled files you want to view.
  3. Enter option 5 (Display) in the option line next to the spooled file you want to view.

Similarly, you can view ended jobs by using the Work with User Jobs (WRKUSRJOB) or Work with Job (WRKJOB) command.

In addition to sending product messages to the joblogs of WebSphere Application Server jobs, the WebSphere Application Server code can also send the messages to a specified message queue. For more information, see Monitor the WebSphere Application Server jobs through a message queue.