# What's the command used to check the zremote agent and ActiveGate agent status?

**URL:** <https://community.dynatrace.com/t/whats-the-command-used-to-check-the-zremote-agent-and-activegate-agent-status/21689>\
**Category:** Open Q&A\
**Tags:** activegate\
**Created:** [August 27, 2019, 3:09pm UTC](https://community.dynatrace.com/t/whats-the-command-used-to-check-the-zremote-agent-and-activegate-agent-status/21689 "2019-08-27T15:09:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![heloisa\_rosada](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/heloisa_rosada/32/33402_2.png) [@heloisa\_rosada](https://community.dynatrace.com/u/heloisa_rosada)\
**Post date:** [August 27, 2019, 3:09pm UTC](https://community.dynatrace.com/t/whats-the-command-used-to-check-the-zremote-agent-and-activegate-agent-status/21689/1 "2019-08-27T15:09:12Z")

</div>

Hello.

I need to check the status of zremote agent and activegate agente.

Are someone provide the commands to check this information?

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [August 27, 2019, 3:21pm UTC](https://community.dynatrace.com/t/whats-the-command-used-to-check-the-zremote-agent-and-activegate-agent-status/21689/2 "2019-08-27T15:21:01Z")

</div>

Accordng to this documentation:

> **[Start/stop/restart ActiveGate](https://docs.dynatrace.com/docs/ingest-from/dynatrace-activegate/operation/stop-restart-activegate)**
>
> Learn how you can start, stop and restart ActiveGate on Windows or Linux.

You can Check AG status on Linux by this command:

```auto
service dynatracegateway status

```

On Windows there no such command. But you will see only information about if AG is running or not. About monitoring Mainframe you will not have any information. You can use Dynatrace Environment API for checking metrics related to zRemote for looking issues there. I don’t know any specific command for such case.

Sebastian

---

<div class="post-metadata">

**Author:** ![MichaelKohn](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@MichaelKohn](https://community.dynatrace.com/u/MichaelKohn)\
**Post date:** [February 15, 2024, 3:51pm UTC](https://community.dynatrace.com/t/whats-the-command-used-to-check-the-zremote-agent-and-activegate-agent-status/21689/3 "2024-02-15T15:51:47Z")

</div>

By now there is also a CLI command to check the status of zRemote and restart it, see [https://docs.dynatrace.com/docs/setup-and-configuration/dynatrace-oneagent/installation-and-operation/zos/installation/install-zremote](https://docs.dynatrace.com/docs/setup-and-configuration/dynatrace-oneagent/installation-and-operation/zos/installation/install-zremote)

"You need root privileges to execute these commands.

To query the current status of the zRemote module:

```auto
service zremote status

```

To stop, start, or restart the zRemote module:

```auto
service zremote stop|start|restart|forcestop

```

The difference between stop and forcestop is that the stop command instructs the process to execute its controlled shutdown routine, while forcestop forces the process shutdown."
