jajs_status
- Organization of this page
Format
jajs_status [-h logical-host-name | -F scheduler-service-name | -v] [-s|-e|-a]
Format1 (for checking the operating information about the logical host)
jajs_status -h logical-host-name [-s|-e|-a]
Format2 (for checking the operating information about the scheduler service)
jajs_status -F scheduler-service-name [-s|-e|-a]
Format3 (for checking the connection information about JP1/AJS3 - View)
jajs_status -v
Description
The jajs_status command is used to check JP1/AJS3 operating information. The command outputs either of the following types of information, or both, according to the specified option:
-
Operating information about the system
-
Information about the environment setting parameters that are valid during operation
Execution privileges
None
Arguments
-h logical-host-name
Specify the name of the logical host for which you want to check operating information.
You can specify a character string of 1 to 255 bytes.
By default, the system assumes the logical host name specified by the JP1_HOSTNAME environment variable. If environment variable JP1_HOSTNAME is not specified, the physical host name (which can be determined by the hostname command) is assumed.
-F scheduler-service-name
If you want to check operating information about a specific scheduler service only, specify the name of the scheduler service.
You can specify a character string of 1 to 30 bytes.
-v
Specify this option to check connection information about JP1/AJS3 - View connected to JP1/AJS3 - Manager.
You can specify this option when the JP1/AJS3 service is running.
You cannot specify this option together with other options.
The information output by this command is the same as the information output by the ajsstatus command with the -v option specified. For details on the ajsstatus command, see ajsstatus in 2. Commands.
-s
Specify this option to output the operating information about the system.
You must specify this option with the -h and -F option. You cannot specify this option with the -v option.
-e
Specify this option to output the information about the environment setting parameters that are valid during operation.
You must specify this option with the -h and -F option. You cannot specify this option with the -v option.
-a
Specify this option to output the operating information about the system and the information about the environment setting parameters that are valid during operation.
You must specify this option with the -h and -F option. You cannot specify this option with the -v option.
Notes
-
If none of the -h, -F, or -v options are specified, the command assumes that the -h option has been specified.
-
If none of the -s, -e, or -a options are specified, the command assumes that the -s option has been specified.
-
If the JP1/AJS3 service is not running, the command terminates abnormally.
Return values
0 |
Normal end |
Values other than 0 |
Abnormal end |
Example 1
The following command outputs the operating information about logical host HOST_A.
jajs_status -h HOST_A -s
Example 2
The following command outputs the operating information about scheduler service AJSROOT1 and the information about the environment setting parameters that are valid during operation.
jajs_status -F AJSROOT1 -a
Output example 1
The following shows an example of information output when the -h option is specified, and explains the output items.
The following shows the meaning of the output.
- <Logical host basis information>
-
- Logical host
-
Indicates the logical host name.
- Status
-
The status of the logical host is output.
-
active:
Indicates that JP1/AJS3 on the logical host is operating.
-
inactive:
Indicates that JP1/AJS3 on the logical host has stopped.
-
- Start time
-
If Status is active, the logical host start time is output in the MMM DD YYYY hh:mm format.
If Status is inactive, *** ** **** **:** is output.
- DB construction
-
If Status is active, the database configuration (standard or compatible ISAM) is output.
If Status is inactive, *** is output.
- Scheduler log file in use
-
If Status is active, the name of the scheduler log file in use is output.
If Status is inactive, *** is output.
- Alternate scheduler log file
-
If Status is active, the name of the alternate scheduler log file is output.
If Status is inactive, *** is output.
- <Logical host service information>
-
The following items are output for each service:
- DB service count
-
The number of database services is output.
- DB service
-
The setup identifier of the database service is output.
- Status
-
The status of the database service is output.
-
active:
Indicates that the database service is operating.
-
inactive:
Indicates that the database service has stopped.
-
- Start time
-
If Status is active, the database service start time is output in the MMM DD YYYY hh:mm format.
If Status is inactive, *** ** **** **:** is output.
- restart count
-
If Status is active, the number of times the database service was restarted is output.
If Status is inactive, *** is output.
Host service
- Status
-
The status of the host service is output.
-
active:
Indicates that the host service is operating.
-
inactive:
Indicates that the host service has stopped.
-
- Start time
-
If Status is active, the host service start time is output in the MMM DD YYYY hh:mm format.
If Status is inactive, *** ** **** **:** is output.
- restart count
-
If Status is active, the number of times the host service was restarted is output.
If Status is inactive, *** is output.
Agent service
- Status
-
The status of the agent service is output.
-
active:
Indicates that the agent service is operating.
-
inactive:
Indicates that the agent service has stopped.
-
- Start time
-
If Status is active, the agent service start time is output in the MMM DD YYYY hh:mm format.
If Status is inactive, *** ** **** **:** is output.
- restart count
-
If Status is active, the number of times the agent service was restarted is output.
If Status is inactive, *** is output.
- Scheduler service count
-
The number of scheduler services is output.
- Scheduler service
-
The name of the scheduler service is output.
- Status
-
The status of the scheduler service is output.
-
active:
Indicates that the scheduler service is operating.
-
inactive:
Indicates that the scheduler service has stopped.
If the database is in a compatible ISAM configuration, inactive is always displayed regardless of the actual status. For the actual status in this case, see the Status under Scheduler function under <Scheduler service function information> output when the -F option is specified.
-
- Start time
-
If Status is active, the scheduler service start time is output in the MMM DD YYYY hh:mm format.
If Status is inactive, *** ** **** **:** is output.
- restart count
-
If Status is active, the number of times the scheduler service was restarted is output.
If Status is inactive, *** is output.
- EmbedDB setup ID
-
The embedded database setup identifier is output.
- <Logical host environment information>
-
Information about the environment setting parameter for the definition keys below is output. These definition keys are available while a logical host is running.
-
[{JP1_DEFAULT|logical-host-name}\JP1AJS2\DB]
-
[{JP1_DEFAULT|logical-host-name}\JP1AJS2\HOST] and the definition key in the directory
-
[{JP1_DEFAULT|logical-host-name}\JP1AJS2COMMON]
For details about environment setting parameter, see 2. Environment Setting Parameters in the Job Management Partner 1/Automatic Job Management System 3 Configuration Guide 2.
-
Output example 2
The following shows an example of information output when the -F option is specified, and explains the output items.
The following shows the meaning of the output.
- <Scheduler service basis information>
-
- Scheduler service
-
Indicates the scheduler service name.
- Status
-
The status of the scheduler service is output.
-
active:
Indicates that the scheduler service is operating.
-
inactive:
Indicates that the scheduler service has stopped.
If the database is in a compatible ISAM configuration, inactive is always displayed regardless of the actual status. For the actual status in this case, see the Status under Scheduler function under <Scheduler service function information>.
-
- Start time
-
If Status is active, the scheduler service start time is output in the MMM DD YYYY hh:mm format.
If Status is inactive, *** ** **** **:** is output.
- restart count
-
If Status is active, the number of times the scheduler service was restarted is output.
If Status is inactive, *** is output.
- EmbedDB setup ID
-
The embedded database setup identifier is output.
- Scheduler log file in use
-
If Status is active, the name of the scheduler log file in use is output.
If Status is inactive, *** is output.
- Alternate scheduler log file
-
If Status is active, the name of the alternate scheduler log file is output.
If Status is inactive, *** is output.
- <Scheduler service function information>
-
The following items are output as information about the specified scheduler service:
- Status
-
The status of the scheduler function is output.
-
active:
Indicates that the scheduler function is operating.
-
inactive:
Indicates that the scheduler function has stopped.
-
- Start time
-
If Status is active, the scheduler function start time is output in the MMM DD YYYY hh:mm format.
If Status is inactive, *** ** **** **:** is output.
- restart count
-
If Status is active, the number of times the scheduler function was restarted is output.
If Status is inactive, *** is output.
- Termination restriction
-
If Status is active, the termination restriction status is output.
-
none:
Indicates that the ajsstop command has not been executed.
-
schedule:
Indicates that the system is monitoring termination according to schedule restrictions.
-
jobnet:
Indicates that the system is monitoring termination according to jobnet restrictions.
-
job:
Indicates that the system is monitoring termination according to job restrictions.
-
kill:
Indicates that the system has been stopped forcibly.
-
terminate:
Indicates that the system has stopped.
-
reset:
Indicates that termination restriction has been reset.
If Status is inactive, *** is output.
-
- <Scheduler service environment information>
-
Information about the environment setting parameter for the definition keys below is output. These definition keys are available while a scheduler service is running.
-
[JP1_DEFAULT\JP1AJSMANAGER]
The environment setting parameters that are common to the system
-
[{JP1_DEFAULT|logical-host-name}\JP1AJSMANAGER]
The environment setting parameters that are common to the logical host where the scheduler service that is specified in the -F option exists
-
[{JP1_DEFAULT|logical-host-name}\JP1AJSMANAGER\scheduler-service-name] and the definition key in the directory
The environment setting parameters for the scheduler service that is specified in the -F option
For details about environment setting parameter of the scheduler service, see 2. Environment Setting Parameters in the Job Management Partner 1/Automatic Job Management System 3 Configuration Guide 2.
-