Algorithm for allocating port numbers

Tivoli Management Services uses an algorithm to allocate port numbers for monitoring agents and other components to use in communications with the local monitoring server, under any of the TCP protocols.

The algorithm is

allocated port = well-known port + (N*4096)
where:
  • well-known port is the port number assigned to the monitoring server (for example, the default, 1918).
  • N indicates the position of the monitoring agent or other component in the startup sequence.

For example, if there are a monitoring server and two monitoring agents on a system, and the monitoring server uses port 1918, the first monitoring agent in the startup sequence is assigned port 6014 (1918 + 1*4096), and the second monitoring agent to start is assigned port 10110 (1918 + 2*4096).