# Agent CLI

You can view and control the agent locally via SSH.

## Reference Guide

### cpnano command

The following options are available for usage of the open-appsec-ctl command:

<table><thead><tr><th width="150">Options</th><th>Action</th><th>Comments</th></tr></thead><tbody><tr><td>-s, --status [--extended]</td><td>Print agent status and versions</td><td></td></tr><tr><td>-u, --uninstall</td><td>Uninstall agent</td><td>Less relevant to a open-appsec deployment</td></tr><tr><td>-q, --stop-agent</td><td>Stop the agent functions</td><td></td></tr><tr><td>-r, --start-agent</td><td>Start the agent functions</td><td></td></tr><tr><td>-sp, --set-proxy</td><td>Set proxy</td><td>Relevant when the agent is located behind a proxy and a manual override of the proxy settings is required for troubleshooting purposes.<br>Proxy settings are usually automatically set from the OS configuration</td></tr><tr><td>-lc &#x3C;serivce name></td><td>reload policy</td><td>orders a serivce (orchestrator, http-transaction-handler, etc) to reload it's policy</td></tr><tr><td>--info</td><td>generate logs for support</td><td>this command will generate a tar file including all relevant logs needed for support cases. <br>The locaction of the file is found at the end of the script's output. You also have an option to upload it directly to open-appsec's cloud. For Docker And K8S please run the conmmand from the agent Pod / Container (exec) </td></tr></tbody></table>
