cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to reconnect ActiveGate via command prompt/powershell in windows

Manohar_expert
Visitor

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.

5 REPLIES 5

p_devulapalli
Mentor

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

https://docs.dynatrace.com/docs/setup-and-configuration/dynatrace-activegate/operation/stop-restart-...

Phani Devulapalli

Manohar_expert
Visitor

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  

https://docs.dynatrace.com/docs/shortlink/oneagentctl#show-current-communication-endpoints

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

Check your network zones if any

 

 

 

Phani Devulapalli

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`

Certified Dynatrace Professional | Certified Dynatrace Services - Observability | Dynatrace Partner yourcompass.ca

PierreGutierrez
Dynatrace Pro
Dynatrace Pro

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 💪

Pierre Gutierrez - LATAM ACE Consultant - Loving Cats! Loving Technology !

Featured Posts