2.4.3 Setting automatic startup and automatic termination
You must start the services of NNMi and JP1/Base before you can start the services of JP1/IM - EG for NNMi. The services of JP1/IM - EG for NNMi must be stopped before you stop the services of NNMi and JP1/Base.
If you set automatic startup and termination of JP1/IM - EG for NNMi, you can specify in advance the service start and termination sequences. Set automatic startup and termination when necessary.
The settings for automatic startup and termination depend on the OS.
- Organization of this subsection
(1) In Windows
In Windows, use JP1/Base's startup control to set automatic startup and termination of JP1/IM - EG for NNMi. Startup control starts and stops services according to a predefined sequence.
- Setting automatic startup
-
You set automatic startup by specifying the definition of JP1/IM - EG for NNMi in JP1/Base's start sequence definition file (JP1SVPRM.DAT). The following shows the definition of JP1/IM - EG for NNMi:
[Jp1IMEGforNNMi] Name=JP1/IM - EG for NNMi ServiceName=JP1_IM-EG_for_NNMi StopCommand=<JP1/IM - EG for NNMi Path>\bin\jegn_spmd_stop.exe
At the time of a new installation, these lines are commented out by inclusion of a hash mark (#) at the beginning of each line. Delete these hash marks.
The services are started in the order specified. If you edit the start sequence definition file, make sure that you enter the definition of JP1/IM - EG for NNMi after the definition of JP1/Base.
- Setting automatic termination
-
In order to use JP1/Base's startup control to set automatic termination of JP1/IM - EG for NNMi, JP1/Power Monitor must be installed on the same computer. For details about JP1/Power Monitor, see the manual Job Management Partner 1/Power Monitor Description, User's Guide and Reference.
When JP1/Power Monitor is used to turn off the power, the services for which the termination command (StopCommand=) is specified are stopped in the reverse order of their startup among all the services specified in JP1/Base's start sequence definition file.
Express the termination command as an absolute path. It is specified as follows during the new installation:
StopCommand=JP1/IM-EG-for-NNMi-path\bin\jegn_spmd_stop.exe
Replace JP1/IM-EG-for-NNMi-path with the actual JP1/IM - EG for NNMi installation path. If the installation path contains a space, enclose character strings following StopCommand= in double-quotation marks (").
(2) In UNIX
In UNIX, use an automated startup script and an automated stop script to set automatic startup and termination of JP1/IM - EG for NNMi.
- Setting automatic startup
-
Execute the following command to copy the automated startup script (jegn_start):
# cd /etc/opt/jp1eg4nnmi # cp -p jegn_start.model jegn_start
When you execute the above command, the automated startup script is called when the system starts and JP1/IM - EG for NNMi is started automatically. For details about the automated startup script, see jegn_start (UNIX only) in 7. Commands.
- Setting automatic termination
-
Execute the following command to copy the automated stop script (jegn_stop):
# cd /etc/opt/jp1eg4nnmi # cp -p jegn_stop.model jegn_stop
When you execute the above command, the automated stop script is called when the system is terminated and JP1/IM - EG for NNMi is terminated automatically. For details about the automated stop script, see jegn_stop (UNIX only) in 7. Commands.