Post-Installation Configuration Options › How to Complete the Installation › Change the Opened Port Number on the Data Aggregator Host (Optional)
Change the Opened Port Number on the Data Aggregator Host (Optional)
After you install Data Aggregator, you can change the port that is opened on the Data Aggregator host.
Note: You opened port 61616 before you installed Data Aggregator and Data Collector.
Follow these steps:
- Log in to the computer where Data Aggregator is installed. Log in as the root user or a sudo user with access to a limited set of commands.
- Open a command prompt and type the following command to stop Data Aggregator:
service dadaemon stop
- Type the following commands to remove the data directory and the local‑jms‑broker.xml file from the deploy directory:
rm -rf Data Aggregator installation directory/apache-karaf-2.3.0/data
rm -rf Data Aggregator installation directory/apache-karaf-2.3.0/deploy/local-jms-broker.xml
- Edit the local-jms-broker.xml file in the Data Aggregator installation directory/apache-karaf-2.3.0/jms directory:
- Locate the following lines:
<!-- The transport connectors ActiveMQ will listen to -->
<transportConnectors>
<transportConnector name="openwire" uri="tcp://dahostname:61616"/>
- Replace 61616 with the port that you want to use for incoming connections on Data Aggregator.
- Open a command prompt and type the following command to start Data Aggregator:
service dadaemon start
- Wait a few minutes, then type the following command to verify that the port change is successful:
netstat -a | grep port
- port
-
Is the port number that you specified previously for incoming connections on Data Aggregator.
- If the port change is successful, Data Aggregator waits for incoming connections on that port. If Data Aggregator is not waiting for incoming connections, type the following command to review the karaf.log file for errors:
grep ERROR karaf.log
- Resolve the errors.
- Log in to the computer where Data Collector is installed. Log in as the root user or a sudo user with access to a limited set of commands.
Note: For more information about the sudo user, see the Data Aggregator Installation Guide.
- Open a command prompt and type the following command:
service dcmd stop
- Type the following commands to remove the data directory and the local‑jms‑broker.xml file from the deploy directory:
rm -rf Data Aggregator installation directory/apache-karaf-2.3.0/data
rm -rf Data Aggregator installation directory/apache-karaf-2.3.0/deploy/local-jms-broker.xml
- Edit the local-jms-broker.xml file in the Data Collector installation directory/apache-karaf-2.3.0/jms directory:
- Locate the following lines:
<networkConnector name="manager"
uri="static:(tcp://dahostname:61616)"
duplex="true"
suppressDuplicateTopicSubscriptions="false"/>
- Replace 61616 with the port that you specified previously in the local-jms-broker.xml file on the Data Aggregator host.
- Open a command prompt and type the following command to start Data Collector:
service dcmd start
- Wait a few minutes, then type the following command to verify that the port change is successful:
netstat -a | grep port
- port
-
Is the port number that you specified in a previous step for incoming connections on Data Aggregator.
If the port change is successful, you should see a connection between Data Aggregator and Data Collector. If you do not see a connection, type the following command to review the karaf.log file for errors:
grep ERROR karaf.log
- Resolve the errors.
The opened port number on the Data Aggregator host is changed.
More information:
How to Complete the Installation
Copyright © 2015 CA Technologies.
All rights reserved.
|
|