NCM - 10.1.x
To change IP addresses of Smarts NCM Application Server, Device Server, and/or Reporting Server, please perform the following steps depending on Smarts NCM distributed environment.
NOTE: To complete the following procedure, root or administrator access is required to the Smarts NCM server(s).
======================================================================================================
Change IP address of APPLICATION SERVER (AS):
======================================================================================================
systemctl stop vcmaster
/etc/hosts
$VOYENCE_HOME/ncmcore/webapps/voyence/powerup.jnlp
Example:<property name="jnlp.server_ip" value="<NEW_AS_IP>"/>
<property name="jnlp.legacy_reports_advisor_url" value="https://<NEW_RA_IP>/web/"/>
If the remote Device Server IP address has changed also, perform step 5, 6 and 7 explained below else it is safe to skip.
Run commands:
Set environmental variable as source /etc/voyence.conf
Navigate to cgi-bin as cd $VOYENCE_HOME/cgi-bin
Run ./cflist.cgi > AS.txt
to extract infraDB
POP 1000 "<DS_NAME>" NetList= RsrcList= DevList=1001,1002,1003 EmsList= : ADDR="<OLD_IP>" AGE_DAYS=730 CLEANUP_DAYS=90 AD_ENABLE=0 AD_ARPCACHE=0 AD_DFLTROUTE=0 AD_AUTO_RESOURCE=0 AD_DEFAULT_POLL=0 SNMP_TIMEOUT=500 SNMP_RETRY=3 CM_DEBUGSESSION=1 SORTCONFIG=1 CM_MAXMAINTASKS=20 CM_PULLTIMER=1200 MAX_COMM_ATTEMPTS="5" AD_BATCHSIZE=50 AD_NUMHOP=10 RECORDVER="1.0"
./cfwrite.cgi < AS.txt
$VOYENCE_HOME/db/controldb/data/pg_hba.conf
listen_addresses
in Database server:$VOYENCE_HOME/db/controldb/data/postgresql.conf
systemctl start vcmaster
======================================================================================================
Change IP address of DEVICE SERVER (DS):
======================================================================================================
systemctl stop vcmaster
/etc/hosts
$VOYENCE_HOME/data/devserver/master.addr
$VOYENCE_HOME/data
systemctl start vcmaster
======================================================================================================
Change IP address of REPORTING SERVER (RA):
======================================================================================================
service httpd stop
service tomcat stop
/etc/hosts
$VOYENCE_HOME/web/conf/web.properties
service httpd start
service tomcat start
======================================================================================================
Change IP address of DATABASE SERVER (DB):
======================================================================================================
systemctl stop controldb
/etc/hosts
DB_IP=<NEW_DB_IP>
url=jdbc:postgresql://<<NEW_DB_IP>:5435/voyencedb
vc.jdbc.url=jdbc:postgresql://<NEW_DB_IP>:5435/voyencedb
vcweb.jdbc.url=jdbc:postgresql://<NEW_DB_IP>:5435/voyencedb
systemctl start vcmaster
systemctl start controldb
service tomcat restart
Consider redistributing lockbox and unlock once IPs of other servers are updated.
Refer KB: Lockbox Utility Guide