6.3.2 Issuing a JP1 event when a JP1/AJS3 process starts, stops, or terminates abnormally
If a process starts, stops, or terminates abnormally, JP1/AJS3 outputs an error message to the integrated trace log.
In JP1/AJS3 - Manager and JP1/AJS3 - Agent, the message can also be issued as a JP1 event. For details about the JP1 events to be issued, see A. JP1 Events Issued by JP1/AJS3.
You can specify settings to issue a JP1 event in the following cases:
-
When JP1/AJS3 starts or stops
-
When a process managed by JP1/AJS3 starts or stops
-
When a process terminates abnormally
-
When a timeout occurs without notification at startup
-
When restart of an abnormally terminated process finishes#
-
When pre-start process fails
- #:
-
A JP1 event is issued if automatic restart of processes has been set.
The settings for issuing a JP1 event are specified in the jp1ajs_param.conf file. By default, JP1 events are not issued.
To enable issuance of JP1 events:
-
Edit the jp1ajs_param.conf file.
The location of the jp1ajs_param.conf file is as follows:
-
Windows: JP1/AJS3-installation-folder\conf\jp1ajs_param.conf
-
UNIX: /etc/opt/jp1ajs2/conf/jp1ajs_param.conf
For details about how to define the jp1ajs_param.conf file, see 6.3.3 Format of the jp1ajs_param.conf file.
If you do not have the jp1ajs_param.conf file, copy jp1ajs_param.conf.model from the above directory.
-
-
Execute the jbssetcnf command.
jbssetcnf jp1ajs_param.conf
For details about the jbssetcnf command, see the description of this command in the JP1/Base User's Guide.
-
Restart JP1/AJS3.
The settings in the jp1ajs_param.conf file are applied.
You can also use the jajs_config command to define whether to issue a JP1 event as a separate specification. For details about the jajs_config command, see jajs_config in 2. Commands Used during Setup in the manual JP1/Automatic Job Management System 3 Command Reference. For details about the environment setting parameters that define whether to issue a JP1 event, see 20.3 Setting up the system management environment in the JP1/Automatic Job Management System 3 Configuration Guide.