9.3.3.8  Running Agent on Multiple TCP Ports

 

9.3.3.8.1 Running Agent on Multiple TCP Ports - An Overview
9.3.3.8.2 Configuring the Agent to Run on Multiple Ports


 

9.3.3.8.1 Running Agent on Multiple TCP Ports - An Overview

 

By default, the TL1 Adaptor gets started in a single port, 9099.  However, you can start the Agent on multiple ports simultaneously. The JMX-TL1 Agent can be configured to be run on multiple ports very easily.

 

9.3.3.8.2 Configuring the Agent to Run on Multiple Ports

 

For configuring the JMX-TL1 Agent to run on multiple ports, follow the steps given below.
 

 

1. Generate code for any TCS.
2. Edit  AdventNetJMXAgent.java 
3. Copy the following piece of code in the file.

 

tl1adaptor.setPorts(new int [ ] { 9080, 9081, 9082, 9083 }); 

 

This should be added in registerAdventNetAdaptors() method in 

4. Compile the Agent and start the Agent.
You will find the JMX-TL1 Agent started on all the above specified ports and the default port 9099. 

 

Multiple managers can connect to the same agent at different ports. The above feature is available in both standalone and Multi-Protocol TL1 Agents.