6.9.1 Changing communication settings (with jp1hosts information)
This subsection describes changing the communication settings of the respective hosts.
The following table shows whether you need to change the communication settings for the hosts in the system configuration shown in Figure 6-8.
Host name |
Communication settings of the main part of JP1/Base |
Event service communication settings (edit of conf) |
|
---|---|---|---|
jp1hosts information |
Communication protocol settings |
||
hostA (physical host) |
Required |
Required |
Required |
hostL (logical host) |
Required |
Required |
Required |
hostB |
Required |
Required |
Required |
- Organization of this subsection
(1) Changes required for hostA (physical host)
You need to set up the jp1hosts definition file and event server settings file (conf) so that JP1/Base on each host recognizes the IP address.
-
Stop all programs for which JP1/Base is a prerequisite or that depend on JP1/Base.
-
Stop JP1/Base.
-
Edit the jp1hosts definition file.
Edit the jp1hosts definition file with the following information:
# Correspond the IP address 20.0.0.10 to hostA, and 20.0.0.20 to hostL hostA 20.0.0.10 hostL 20.0.0.20
-
Execute the jbshostsimport command.
jbshostsimport {-o|-r} jp1hosts-definition-file-name
-
Execute the jbssetcnf command.
jbssetcnf physical_ipip.conf
-
Edit the event server settings file (conf).
In the event server settings file (conf), change the ports and the remote-server parameters shown below:
ports 20.0.0.10 jp1imevt jp1imevtapi remote-server hostL close 20.0.0.20
-
Edit the API settings file (api).
Add the server parameters in the API settings file (api) as follows:
server hostA keep-alive 20.0.0.10 server hostL keep-alive 20.0.0.20 server hostB keep-alive 20.0.0.11
-
Restart JP1/Base.
Restart JP1/Base, JP1/Base prerequisite programs, and the programs that have dependency relationships with JP1/Base.
This completes the communication settings for hostA.
(2) Changes required for hostL (logical host)
-
Stop all programs for which JP1/Base is a prerequisite or that depend on JP1/Base.
-
Stop JP1/Base.
-
Edit the jp1hosts definition file.
Edit the jp1hosts definition file with the following information:
# Correspond the IP address 20.0.0.10 to hostA, 20.0.0.11 to hostB, and 20.0.0.20 to hostL hostA 20.0.0.10 hostB 20.0.0.11 hostL 20.0.0.20
-
Execute the jbshostsimport command.
jbshostsimport {-o|-r} jp1hosts-definition-file-name -h hostL
-
Edit the logical_ipip.conf.
Open the logical_ipip.conf using a text editor, look for [LOGICALHOSTNAME\JP1BASE], and change it to [hostL\JP1BASE].
-
Execute the jbssetcnf command.
jbssetcnf logical_ipip.conf
-
Edit the event server settings file (conf).
In the event server settings file (conf), change the ports and the remote-server parameters shown below:
ports 20.0.0.20 jp1imevt jp1imevtapi remote-server hostL close 20.0.0.20
-
Edit the API settings file (api).
In the API settings file (api), add the server parameters shown below:
server hostA keep-alive 20.0.0.10 server hostL keep-alive 20.0.0.20 server hostB keep-alive 20.0.0.11
-
Restart JP1/Base.
Restart JP1/Base, JP1/Base prerequisite programs, and the programs that have dependency relationships with JP1/Base.
- Note
-
In cluster operation, also perform steps 3 through 6, and 8, on the secondary logical host.
This completes the communication settings for hostL (a logical host).
(3) Changes required for hostB
-
Stop all programs for which JP1/Base is a prerequisite or that depend on JP1/Base.
-
Stop JP1/Base.
-
Edit the jp1hosts definition file.
Edit the jp1hosts definition file with the following information:
# Correspond the IP address 20.0.0.11 to hostB, and 20.0.0.20 to hostL hostB 20.0.0.11 hostL 20.0.0.20
-
Execute the jbshostsimport command.
jbshostsimport {-o|-r} jp1hosts-definition-file-name
-
Execute the jbssetcnf command.
jbssetcnf physical_ipip.conf
-
Edit the event server settings file (conf).
In the event server settings file (conf), add the ports and the remote-server parameters shown below:
ports 20.0.0.11 jp1imevt jp1imevtapi remote-server hostL close 20.0.0.20
-
Edit the API settings file (api).
Add the server parameters in the API settings file (api) as follows:
server hostA keep-alive 20.0.0.10 server hostL keep-alive 20.0.0.20 server hostB keep-alive 20.0.0.11
-
Restart JP1/Base.
Restart JP1/Base, JP1/Base prerequisite programs, and the programs that have dependency relationships with JP1/Base.
This completes the communication settings for hostB.