How to reconnect ActiveGate via command prompt/powershell in windows

I installed OneAgent along with activegate, after sometime ActiveGate has been disabled automatically and showing as direct connection, I’ve tried reconnecting ActiveGate but no luck, Need support regarding this.

Is the ActiveGate actually running ? Can you please try restarting and see if that helps

Hi @p_devulapalli,

Earlier OneAgent is connected with ActiveGate and is working fine, later Activegate got disconnected due to server shutdown. After that I started the server and ActiveGate got enabled but OneAgent is not connecting with the ActiveGate. I’ve restarted OneAgent service and server but no luck

Well there could be different reasons for that and needs some troubleshooting, you can try some of the below options

Try telnet to the AG from oneagent and see if you are able to connect on 9999

Check your network zones if any

1. check if the activegate is running from both deployment status & from the AG server itself by running `net start “Dynatrace gateway”

2. check if both OneAgent and Activegate has the same network zone or not

3. check the port 9999 on activegate from the OneAgent server you can use telnet or curl for this, if not able to connect check these files `conf.properties` and `custom.properties` located in this directory `C:\ProgramData\dynatrace\gateway\config`

Hello @Manohar_expert 
The steps that @MostafaHussein  indicates are very good !.
Especially the 2nd one, since the best way to “direct and ensure” that a oneAgent takes a specific ActiveGate is through the network Zone.

However, answering your main question, the commands that you can use to restart an ActiveGate are:

in Prompt (administrator permissions)

Start ActiveGate

  • Prompt:
net start "Dynatrace Gateway"
  • PowerShell :
Start-Service -Name "Dynatrace Gateway"

Stop ActiveGate

  • Prompt:
net stop "Dynatrace Gateway"
  • PowerShell :
Stop-Service -Name "Dynatrace Gateway"

I hope it is useful for you :flexed_biceps: