VMware Cloud Community
spkvijay
Contributor
Contributor

Regarding HQ Agent for Windows Server 2008 R2

Hi,

How to change Agent port from 2144 to 2145 in Windows Server 2008 R2 it installed successfull.

Please provide with steps.
0 Kudos
1 Reply
jtataGP
Contributor
Contributor

If you are installing from an MSI you can select the port during installation. You can also use a script to install in quiet mode:

%Comspec% /c msiexec /i "<path to agent>hq-agent.msi" /qn INSTALLDIR="C:\Hyperic" ADDLOCAL=Agent AGENT_IS_SECURE=0 AGENT_SERVER_ADDRESS=<server ip> AGENT_PORT=2145 AGENT_SERVER_USER=<user> AGENT_SERVER_PASSWORD=<password>

Also note that on x64 installations you have to use a path other than the default C:\Program Files (x86)\ as the JRE included with the agent does not seem to like the ( ) in its path.

If you are trying to change the port after the agent is installed you cna do this by modyfing the agent.properties file in the conf directory of the agent install. Just change the line:

agent.setup.agentPort=2144

To

agent.setup.agentPort=2145

Then restart the agent.
0 Kudos