> This page is for Tools.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.moveworks.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.moveworks.com/_mcp/server.

# On-Prem Agent Operations and Health

> Reference for managing a running Moveworks On-Prem Agent: common commands, health monitoring, and where to rotate credentials.

# Common Commands

> **Info**
>
> Commands shown with `sudo` apply to Docker deployments. Omit `sudo` when using Podman — see the [Installation Guide](/tool-studio/moveworks-agent/moveworks-agent-installation-guide) for details.

| Task                                            | Command                                 |
| ----------------------------------------------- | --------------------------------------- |
| Start agent containers                          | `sudo ./setup_agent.sh --start`         |
| Stop agent containers                           | `sudo ./setup_agent.sh --stop`          |
| Reconfigure (credentials, URLs, connectors)     | `sudo ./setup_agent.sh --reconfigure`   |
| Upgrade to the latest version                   | `sudo ./setup_agent.sh --upgrade`       |
| Validate OS, folder ownership, and connectivity | `sudo ./setup_agent.sh --validate`      |
| Fix agent folder permissions                    | `sudo ./setup_agent.sh --permissions`   |
| Check running containers                        | `sudo docker ps`                        |
| Follow live container logs                      | `docker logs -f <container_name>`       |
| Tail agent log files                            | `tail -f /var/log/moveworks/*.INFO.log` |

---

# Monitoring and Health

Navigate to **Moveworks Setup > Core Platform > On-Premise Agents** to see all deployed and reachable agents.

![](https://files.readme.io/1764c11118571e096ed99ba316bb2c6e4649ff16814b329b0f21e22cd3f22728-image.png)

## Agent Health

Agent health reflects the agent's ability to serve requests from the Moveworks platform.

| Status        | Meaning                                                                 |
| ------------- | ----------------------------------------------------------------------- |
| **Healthy**   | Agent successfully serves requests more than 90% of the time            |
| **Unhealthy** | 10 or more out of 100 connection attempts from Moveworks failed         |
| **Unknown**   | No calls have been made to this agent yet — health cannot be determined |

> **Info**
>
> Agent health reflects the ability to serve requests, not the health of the Docker container itself. A running container can show as Unknown if it has not yet received any requests.

## Agent Status

| Status       | Meaning                                                                                                     |
| ------------ | ----------------------------------------------------------------------------------------------------------- |
| **Active**   | Container is running and connected to the Moveworks platform                                                |
| **Inactive** | Agent has stopped or failed to connect. Remains visible for \~30 minutes before being removed from the list |

---

# Credential Rotation

To rotate the Moveworks org access secret, an LDAP or REST service account password, a secret in AWS Secrets Manager or Azure Key Vault, or a TLS certificate, see [Rotate On-Prem Agent credentials and certificates](/tool-studio/moveworks-agent/moveworks-agent-configuration-guides/rotating-credentials-and-certificates). It also covers restarting the agent and running `./setup_agent.sh --validate` to confirm the agent can write its files.

For LDAP over SSL or StartTLS, see [Configure an LDAP SSL certificate for the On-Prem Agent](/tool-studio/moveworks-agent/moveworks-agent-configuration-guides/configuring-an-ldap-ssl-certificate).

---

## See Also

* [Rotate On-Prem Agent credentials and certificates](/tool-studio/moveworks-agent/moveworks-agent-configuration-guides/rotating-credentials-and-certificates) — org access secret, service account passwords, and certificates
* [Troubleshooting](/tool-studio/moveworks-agent/moveworks-agent-troubleshooting) — known errors, LDAP and TLS issues, connectivity diagnostics