NetWorker: How to change the database service port used by the NetWorker Management Console (NMC)
Summary: This KB explain procedure how to change the TCP service port used by the NMC database on Linux and Windows
Instructions
By default, the NetWorker Management Console database uses port 5432 for TCP/IP communications. It is recommended to use default ports to avoid potential connection issues. You must keep track of any non-default changes made to the ports used by NetWorker.
NetWorker Processes and Ports
Perform the following steps to change the service port that is used by NMC.
Linux NMC Server
1. Stop the NMC service:
# /etc/init.d/gst stop
OR
# systemctl stop gst
int db_svc_port=5432
int db_svc_port=2639
3. Run the /opt/lgtonmc/bin/gstconfig command to update the port value in the NetWorker NMC server configuration file.
port=5432
port=2639
# /etc/init.d/gst start
OR
# systemctl start gst
- If the /etc/init.d/gst file is missing for sysvinit systems or gst file is not enabled for systemd systems, run the script:
/opt/lgtonmc/bin/nmc_config
- Monitor the /opt/lgtonmc/logs/gstd.raw for service startup.
- Multiple Postgres processes appear. Two or more httpd processes appear. By default, these httpd processes run as nsrnmc.
- Confirm that the daemons have started, by typing the following command:
ps -ef | grep -i lgtonmc
Output similar to the following appears when the daemons have started:root 3064 1 0 10:03 ? 00:00:01 /opt/lgtonmc/bin/gstd
dbuser 3329 1 0 10:04 ? 00:00:00 /opt/lgtonmc/postgres/bin/postgres -D /opt/lgtonmc/nmcdb/pgdata
nsrnmc 3969 1 0 10:04 ? 00:00:00 /opt/lgtonmc/apache/bin/httpd -f /opt/lgtonmc/apache/conf/httpd.conf
nsrnmc 3970 3969 0 10:04 ? 00:00:00 /opt/lgtonmc/apache/bin/httpd -f /opt/lgtonmc/apache/conf/httpd.conf
Windows NMC Server
1. Stop the GSTD Service service.net stop gstd
2. Edit the C:\Program Files\EMC NetWorker\Management\GST\etc\gstd.conf file to change the following line:int db_svc_port=5432
int db_svc_port=2639
port=5432
For example:
port=2639
4. Use the regedit to update the port number in the registry.
a. Browse to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\lgto_gst_pgsql.
b. Edit the Port registry key.
c. In the Value Data field, specify the new port number.
d. Click OK.

# net start gstd
- Monitor the C:\Program Files\EMC NetWorker\Management\GST\logs\gstd.raw for service startup.