After you install the SolutionPack for Network Configuration Manager, you must configure the IP address of the M&R server in the NCM Application Server. If the M&R IP address was already set during the NCM installation, skip this task.
Procedure
- Follow these steps to set the IP address of the M&R server in the NCM Application Server:
Operating system Steps Linux - Open the <Product directory>/db/controldb/data/pg_hba.conf file for editing.
- Add this line at the end of the pg_hba.conf file: host all all <M&R IP address>/32 md5
- Save and exit the pg_hba.conf file.
- Open the <Product directory>/db/controldb/data/postgresql.conf file for editing.
- Find the line #listen_addresses = 'localhost'.
- Add the M&R entry. For example: listen_addresses = 'localhost,10.31.149.68,10.31.151.223'
- Save and exit the postgresql.conf file.
- Type service controldb restart to restart the controldb service.
Windows - Open the <Product directory>\db\controldb\data\pg_hba.conf file for editing.
- Add this line at the end of the pg_hba.conf file: host all all <M&R IP address>/32 md5
- Save and exit the pg_hba.conf file.
- Open the <Product directory>\db\controldb\data\postgresql.conf file for editing.
- Find the line #listen_addresses = 'localhost'.
- Add the M&R entry. For example: listen_addresses = 'localhost,10.31.149.68,10.31.151.223'
- Save and exit the postgresql.conf file.
- Navigate to Start > Administrative Tools > Services > NCM_Controldb to restart the controldb service.
- If you have selected ElastiSearch DB for Jobs data, you need to manually create the schema. You have to create the following ES-NCM-JOBS resource for the tomcat server, This enables the connection to NCM Jobs database. For example, to create a schema:
In Linux:
Elastic Search: ./bin/manage-resources.sh create dba/ES-NCM-JOBS '{ "type": "elasticsearch", "datasource": { "hosts": ["http://<Elastic Search Server IP Address>:9200"],"prefix": "/ncm*"},"settings": {"mapping": "ES-NCM-JOBS.xml"}, "disabled": false }'
In Windows:Elastic Search: APG PATH\bin\manage-resources.cmd create dba/ES-NCM-JOBS '{ "type": "elasticsearch", "datasource": { "hosts": ["http://<Elastic Search Server IP Address>:9200"],"prefix": "/ncm*"},"settings": {"mapping": "ES-NCM-JOBS.xml"},"disabled": false }'
- Restart Tomcat service.