20.0 Running Agent on Multiple TCP Ports

 


20.1 Running Agent on Multiple TCP Ports - An Overview

20.2 Configuring the Agent to Run on Multiple Ports


 

20.1 Running Agent on Multiple TCP Ports - An Overview

 

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

 

20.2 Configuring the Agent to Run on Multiple Ports

 

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

  1. Generated Code for any TCS.

  2. Edit WebNMSTL1Agent.java

  3. Copy the following piece of code in the file.
    tl1Agent.setPorts(new int [ ] {9080, 9081, 9082, 9083})
    ;
    This code should be added in initialize() method in WebNMSTL1Agent.java

  4. Compile the Agent and start the Agent.
    Youwill find the TL1 Agent started on all the above specified ports and also on port 9099.

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

 



Copyright © 2009, ZOHO Corp. All Rights Reserved.