Configure Data Collector When the Data Aggregator IP Address Changes

If the IP address of the Data Aggregator host changes, update the Data Collectors to point to the new IP.
If the IP address of the data aggregator host changes, complete
one
of the following:
  • If the data collector uses the hostname to communicate with the data aggregator, restart the data collector.
  • If the data collector uses the IP address to communicate with the data aggregator, update the data collectors to point to the new IP by completing the following procedure.
Follow these steps:
  1. Log in to the data collector host.
  2. Stop the Data Collector service by issuing the following command:
    service dcmd stop
  3. Open in the
    /opt/IMDataCollector/apache-karaf-<
    vers
    >/etc/com.ca.im.dm.core.collector.cfg
    file.
    /opt/IMDataCollector
    is the default installation directory.
  4. Locate and edit the IP address in the following line, and then save the file:
    ... collector-manager-da-hostname=
    DA_host_IP
    ...
  5. Locate and edit the
    /opt/IMDataCollector/broker/apache-activemq-<
    vers
    >/conf/activemq.xml
    file.
  6. Edit the IP address in the following lines:
    ...
    <networkConnector name="da_manager" uri="static:(tcp://
    DA_host_IP
    :61616)" duplex="true" suppressDuplicateTopicSubscriptions="false"/>
    <networkConnector name="da_manager-PRQ" uri="static:(tcp://
    DA_host_IP
    :61618)" duplex="true" suppressDuplicateTopicSubscriptions="false"/>
    <networkConnector name="da_manager-IREP" uri="static:(tcp://
    DA_host_IP
    :61620)" duplex="true" suppressDuplicateTopicSubscriptions="false"/>
    <networkConnector name="da_manager-blob" uri="static:(tcp://
    DA_host_IP
    :61622)" duplex="true" suppressDuplicateTopicSubscriptions="false"/>
    ...
    In a fault-tolerant tolerant environment, the content of the
    activemq.xml
    file has the following format:
    ...
    <networkConnector name="da_manager" uri="static:(failover:(tcp://
    DA1_host_IP
    :61616,tcp://
    DA2_host_IP
    :61616)?maxReconnectAttempts=3)" duplex="true" suppressDuplicateTopicSubscriptions="false"/>
    <networkConnector name="da_manager-PRQ" uri="static:(failover:(tcp://
    DA1_host_IP
    :61618,tcp://
    DA2_host_IP
    :61618)?maxReconnectAttempts=3)" duplex="true" suppressDuplicateTopicSubscriptions="false"/>
    <networkConnector name="da_manager-IREP" uri="static:(failover:(tcp://
    DA1_host_IP
    :61620,tcp://
    DA2_host_IP
    :61620)?maxReconnectAttempts=3)" duplex="true" suppressDuplicateTopicSubscriptions="false"/>
    <networkConnector name="da_manager-blob" uri="static:(failover:(tcp://
    DA1_host_IP
    :61622,tcp://
    DA2_host_IP
    :61622)?maxReconnectAttempts=3)" duplex="true" suppressDuplicateTopicSubscriptions="false"/>
    ...
  7. Start the Data Collector service by issuing the following command:
    service dcmd start
  8. Verify that the correct address appears in the data collector list by completing the following steps:
    1. Log in to
      NetOps Portal
      as an Administrator.
    2. Hover over
      Administration
      ,
      Data Sources
      , and then click a data aggregator data source.
      The
      Monitored Devices
      page appears.
    3. Click
      Data Collectors
      from the
      System Status
      menu.
      The
      Data Collectors
      page appears.
    The IP address of each data collector appears in the
    Address
    column. The
    Polling Status
    of each data collector is "Collecting Data".