VoyenceControl: How do I update the IP Address of a Device Server in VoyenceControl?
search cancel

VoyenceControl: How do I update the IP Address of a Device Server in VoyenceControl?

book

Article ID: 303488

calendar_today

Updated On:

Products

VMware

Issue/Introduction

Symptoms:


How do I update the IP Address of a Device Server in VoyenceControl?

The Application Server is unable to communicate with a Device Server.

Environment

VMware Smart Assurance - NCM

Resolution

To update the IP Address of a Device Server you will need to update the infrastructure database, delete a cache file, and restart a few services:
  1. On the Application Server, change directory to $VOYENCE_HOME/cgi-bin.

     
  2. Source the /etc/voyence.conf file:

    source /etc/voyence.conf

     
  3. Output the infrastructure database to a file with the following command:

    ./cflist.cgi > output.txt

     
  4. Open the output.txt file for editing.

     
  5. Every Device Server has a POP line entry in the infrastructure database.  This line contains the IP Address that will need to be updated. Locate the POP entry line for your Device Server, below is an example:

    POP 1000 "voyence-ds" NetList= RsrcList= DevList=1001,1002,1003 EmsList= : ADDR="192.168.1.12" 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"

     
  6. The value that you need to update is the value for the ADDR attribute. Set it to your new IP Address.

     
  7. Save your changes and exit.

     
  8. Write your changes to the infrastructure database with the following command:

    ./cfwrite.cgi < output.txt

     
  9. Delete the $VOYENCE_HOME/data/.rhttps file on both the Application Server and the Device Server.

     
  10. Restart the apache service on both the Application Server and the Device Server with the following command:

    /etc/init.d/httpd restart

     
  11. Restart the voyence service on the Application Server and the Device Server with the following command:

    /etc/init.d/voyence restart


Your Application Server and Device Server should be communicating with each other successfully now.


Additional Information

These steps assume you have correctly and appropriately modified the IP Address of the Device Server ahead of time with respect to the operation system's expectations.  This includes modification of the /etc/hosts file or any other.
The $VOYENCE_HOME variable is a reference to the install directory of VoyenceControl.  By default this is /opt/voyence.