> For the complete documentation index, see [llms.txt](https://kb.mago.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.mago.io/mago-stage/admin-portal/mago-remote-agent/manage-agent-software-and-commands.md). Agents can also search and read this documentation through its [MCP server](https://kb.mago.io/~gitbook/mcp).

# Manage Agent software and commands

Use the Agent’s Software page to review its installed version, send updates, control the Agent application, and begin authorized remote sessions.

The Agent must be online to receive commands.

### Open the Software page

1. In the Administration Portal, select **Agents**.
2. Open the required Agent.
3. Select **Software**.

### Review Agent software

The page can show:

* Installed Agent version
* Application status
* Available update
* Update history
* Command history

If the Agent is running the current published version, the portal reports that it is up to date.

<figure><img src="https://2978719120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2FbpP2hYI1Myy7hMs_%2Fuploads%2FBOEFVPBkV1le7NDMxQlH%2Fimage.png?alt=media&amp;token=4b52e1f3-967a-4c93-b107-58874305c171" alt=""><figcaption></figcaption></figure>

### Update the Agent

When an update is available:

1. Open the Agent’s **Software** page.
2. Review the installed and available versions.
3. Select **Push Update**.
4. Confirm the action if prompted.
5. Monitor **Update History**.
6. Confirm the installed version after the Agent reconnects.

Test updates on a limited number of Agents before deploying them more widely.

### Send Agent commands

The available commands can include:

| Command            | Result                                                 |
| ------------------ | ------------------------------------------------------ |
| **Start App**      | Starts the Mago Remote Agent application.              |
| **Stop App**       | Stops the Agent application.                           |
| **Restart App**    | Stops and restarts the Agent application.              |
| **Remote Control** | Starts an authorized remote session with the computer. |

{% hint style="warning" %}
Stopping the Agent application prevents new remote sessions and management commands until the application is started again.
{% endhint %}

### Start a remote-control session

Before selecting **Remote Control**, confirm that:

* The Agent is online.
* The Agent application is running.
* Remote control is enabled for the deployment.
* Your account is permitted to access the Agent.
* The session is authorized under your organization’s security policy.

Select **Remote Control**, then follow the on-screen connection process.

### Verify a command

A successful portal notification confirms that the command was sent. Review **Command History** and the Agent’s subsequent status to confirm that it completed.

If a command fails:

1. Confirm that the Agent remains online.
2. Refresh its status.
3. Check the Agent application on the computer.
4. Confirm that endpoint security is not blocking the Agent or update process.
5. Review available Agent logs or contact the appropriate administrator.

Remote sessions and administrative commands may also appear under **Sessions** or in the portal’s audit history.
