14.2.2 Procedure for setting the environment setting parameters by using the jbssetcnf command
To use the jbssetcnf command to replace the settings in the common definition information with new settings specified in a configuration file:
-
Stop the JP1/AJS3 service.
Execute the following commands to confirm that all processes have stopped:
# /etc/opt/jp1ajs2/jajs_stop#1 # /opt/jp1ajs2/bin/jajs_spmd_status
- #1:
-
Confirm that automatic termination has been set.
-
Create a configuration file that contains the new settings.
Use a text editor such as vi to create a configuration file that contains the additional or new environment setting parameter settings.
Assign any name to the configuration file.
The following shows an example of specifying settings in the configuration file.
In this example, the environment setting parameter settings shown in the following table will be used.
Definition key
Parameter
Value
[JP1_DEFAULT\JP1AJSMANAGER\AJSROOT1]
"LOGSIZE"=
00002800 (hexadecimal)
"AJSLOG"=
"all"
[JP1_DEFAULT\JP1AJSMANAGER\AJSROOT2]
"LOGSIZE"=
00005000 (hexadecimal)
"AJSLOG"=
"all"
To specify the above settings, create a configuration file as follows:
[JP1_DEFAULT\JP1AJSMANAGER\AJSROOT1] "LOGSIZE"=dword:00002800 "AJSLOG"="all" [JP1_DEFAULT\JP1AJSMANAGER\AJSROOT2] "LOGSIZE"=dword:00005000 "AJSLOG"="all"
-
Save the configuration file.
-
Change the common definition information.
Execute the following command, which will change the common definition information based on the specified configuration file:
jbssetcnf configuration-file
The jbssetcnf command is located in the /opt/jp1base/bin/jbssetcnf directory.
-
Restart JP1/AJS3.
The changes in the common definition information are applied to JP1/AJS3.