12.3 Changing the connection destination port number for the database
You can change the connection destination port number for the database on the smart device manager.
Prerequisites
You must stop all the JP1/ITDM2 - SDM program modules and all commands.
Procedure
-
On the communication server, stop the following service from the Windows Services window:
JP1/ITDM2 - Smart Device Manager Web Server
-
On the communication server, stop the following service from the Windows Services window:
JP1/ITDM2 - Smart Device Manager (Communication Server Service)
-
On the smart device manager, stop the following service from the Windows Services window:
JP1/ITDM2 - Smart Device Manager Web Server
-
On the smart device manager, stop the following service from the Windows Services window:
JP1/ITDM2 - Smart Device Manager Server Service
-
On the smart device manager, stop the following service from the Windows Services window:
JP1/ITDM2 - Smart Device Manager (DB Service)
-
On the smart device manager, use a text editor to open the following file:
JP1/ITDM2 - SDM (Smart Device Manager)-installation-folder\db\conf\pdsys
-
If necessary, change the values of pd_name_port and pd_service_port.
Example: Change the underlined part:
set pd_name_port = 26066 set pd_service_port = 26067
For pd_name_port, set the port number used to connect the smart device manager and its database.
For pd_service_port, set the port number used to connect the communication server and the database of the smart device manager.
-
On the smart device manager, start the following service from the Windows Services window:
JP1/ITDM2 - Smart Device Manager (DB Service)
-
On the smart device manager, start the command prompt, and then change the current directory to the command storage location.
-
On the smart device manager, execute the sdmnetchange command.
sdmnetchange -target Manager -port port-number-specified-in-pd_name_port
-
On the smart device manager, start the following service from the Windows Services window:
JP1/ITDM2 - Smart Device Manager Server Service
-
On the smart device manager, start the following service from the Windows Services window:
JP1/ITDM2 - Smart Device Manager Web Server
-
On the communication server, start the command prompt, and then change the current directory to the command storage location.
-
On the communication server, execute the sdmnetchange command.
sdmnetchange -target Comsrv -port port-number-specified-in-pd_service_port
-
On the communication server, start the following service from the Windows Services window:
JP1/ITDM2 - Smart Device Manager (Communication Server Service)
-
On the communication server, start the following service from the Windows Services window:
JP1/ITDM2 - Smart Device Manager Web Server
Result
The connection destination port number for the database is changed.
Related topics