jco_stop (UNIX only)
- Organization of this page
Function
This command is a script for terminating JP1/IM - Manager automatically.
# cd /etc/opt/jp1cons
# cp -p jco_stop.model jco_stop
Once the foregoing procedure has been executed, JP1/IM - Manager terminates automatically when the system terminates.
If the IM database service is running, the IM database service is stopped automatically after JP1/IM - Manager has terminated.
If you are using the intelligent integrated management database, after stopping the JP1/IM - Manager, terminate the trend data management service, then the intelligent integrated management database and finally terminate the IM database service.
If JP1/IM - Manager does not terminate, the command outputs the KAVB8800-E message to standard output.
If the IM database service does not terminate, the command outputs the KAVB8801-E message to standard output.
To stop JP1/IM - Manager manually, execute the /etc/opt/jp1cons/jco_stop.model script, or a file to which the script has been copied.
Format
jco_stop
Execution permission
Superuser permissions
Storage directory
/etc/opt/jp1cons/
Note
-
Execute this command in an environment in which the environment variable JP1_HOSTNAME has not been set. If you execute this command in an environment in which the environment variable JP1_HOSTNAME has been set, the command will attempt to stop JP1/IM - Manager on the logical host that is set in the environment variable JP1_HOSTNAME rather than on the physical host. Because this command does not support logical hosts, you must delete the environment variable JP1_HOSTNAME if you want to stop JP1/IM - Manager on the physical host.
-
The jco_stop command cannot be executed together with the jco_spmd_status command.
Return values
0 |
Normal termination |
1 |
More than one argument is specified or the termination request resulted in a timeout |
Example 1
- JP1/IM - Manager and the IM database service are running:
-
- Input value:
jco_stop
- Result:
KAVB3674-I Termination processing of JP1_CONS has started. KAVB3675-I The stop command terminated normally. KNAN11185-I Processing to stop the IM database service will now start. KNAN11028-I Please wait. KNAN11187-I The IM database service stopped normally. KNAN11186-I Processing to stop the IM database service ended normally. KNAN11188-I The status of the IM database service will now be confirmed. KNAN11183-I The IM database service is stopped. KNAN11189-I The status of the IM database service was successfully confirmed.
Example 2
- JP1/IM - Manager is running and the IM database service is not running:
-
- Input value:
jco_stop
- Result:
KAVB3674-I Termination processing of JP1_CONS has started. KAVB3675-I The stop command terminated normally. KNAN11188-I The status of the IM database service will now be confirmed. KNAN11183-I The IM database service is stopped. KNAN11189-I The status of the IM database service was successfully confirmed.
Example 3
- Neither JP1/IM - Manager nor the IM database service is running:
-
- Input value:
jco_stop
- Result:
KAVB3674-I Termination processing of JP1_CONS has started. KAVB3662-I The process management is not running. KNAN11188-I The status of the IM database service will now be confirmed. KNAN11183-I The IM database service is stopped. KNAN11189-I The status of the IM database service was successfully confirmed.
Example 4
- JP1/IM - Manager is not running and the IM database service is running:
-
- Input value:
jco_stop
- Result:
KAVB3674-I Termination processing of JP1_CONS has started. KAVB3662-I The process management is not running. KNAN11185-I Processing to stop the IM database service will now start. KNAN11028-I Please wait. KNAN11187-I The IM database service stopped normally. KNAN11186-I Processing to stop the IM database service ended normally. KNAN11188-I The status of the IM database service will now be confirmed. KNAN11183-I The IM database service is stopped. KNAN11189-I The status of the IM database service was successfully confirmed.
Example 5
- JP1/IM - Manager and the intelligent integrated management database are running:
-
- Input value:
jco_stop
- Result:
KAVB3674-I Termination processing of JP1_CONS has started. KAVB3675-I The stop command terminated normally KNAN12063-I Termination processing of Trend Data Management Service has started. KNAN12067-I Trend Data Management Service stopped normally. KNAN12065-I Processing to stop Trend Data Management Service ended normally. KNAN12064-I Termination processing of Intelligent Integrated DB Server has started. KNAN12068-I Intelligent Integrated DB Server stopped normally. KNAN12066-I Termination processing of Intelligent Integrated DB Server has started.