Accordng to this documentation:
You can Check AG status on Linux by this command:
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.