> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/cortex-xdr-agent/7.7-eol/cortex-xdr-agent-7.7-for-windows/troubleshooting-resources-for-windows/cytool-for-windows.md).

# Cytool for Windows

Cytool is a command-line interface (CLI) that is integrated into the Cortex XDR agent and enables you to query and manage both basic and advanced functions of the agent. Any changes you make using Cytool are active until the agent receives the next heartbeat communication from Cortex XDR.

On Windows endpoints, you can access Cytool using a Microsoft command prompt that you run as an administrator. Cytool is located in the `C:\Program Files\Palo Alto Networks\Traps` folder on the endpoint.

The following table displays the Cytool options available on Windows endpoints.

{% hint style="info" %}

### Note

Starting with the Cortex XDR 7.6, the new `cyserver.exe` process includes and replaces the previous `CyveraService.exe`, `tlaservice.exe`, and `twdservice.exe` high-privileged processes.
{% endhint %}

| Command Option          | Password Required                              | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ----------------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **`protect`**           | ![check-mark.png](/files/zHw34UCi0O4gam9NTC0t) | <p>Enable or disable a protection feature.</p><p>Usage: <strong><code>cytoolprotect </code></strong><em><strong><code>\<action></code></strong></em> <em><strong><code>\<feature></code></strong></em></p><p>where:</p><ul><li><em><strong><code>\<action></code></strong></em>—Changes protection for an agent feature. Options are: <strong><code>enable</code></strong>, <strong><code>disable</code></strong>, <strong><code>policy</code></strong>, and <strong><code>query</code></strong>. The query option displays the protection status for each feature.</li><li><p><em><strong><code>\<feature></code></strong></em>—Specifies the feature for which you want to change the protection status. Options are <strong><code>process</code></strong> for agent core processes, <strong><code>registry</code></strong> for agent registry keys, <strong><code>file</code></strong> for agent files, <strong><code>service</code></strong> for agent services.</p><p>and <strong><code>pipe</code></strong> for protection of agent pipes</p></li></ul><p>For example:</p><p><code>C:\Program Files\Palo Alto Networks\Traps></code><strong><code>cytoolprotect disable process</code></strong><code>Protection Mode StateProcess Disabled DisabledRegistry Policy EnabledFile Policy EnabledService Policy EnabledPipe Policy Enabled</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| **`startup`**           | ![check-mark.png](/files/zHw34UCi0O4gam9NTC0t) | <p>Enable, disable, or query the startup state of the Cortex XDR agent components.</p><p>Usage: <strong><code>cytool startup </code></strong><em><strong><code>\<action></code></strong></em> <em><strong><code>\<component></code></strong></em></p><p>where:</p><ul><li><em><strong><code>\<action></code></strong></em>—Changes startup action for an agent component. Options are: <strong><code>enable</code></strong>, <strong><code>disable</code></strong>, and <strong><code>query</code></strong>. The query option displays the startup status for each component.</li><li><em><strong><code>\<component></code></strong></em>—Specifies the component for which you want to change the startup action. To change the startup action for multiple components, list them with spaces separating each component. Options are: <strong><code>cyverak</code></strong>, <strong><code>cyvrmtgn</code></strong>, <strong><code>cyvrfsfd</code></strong>, <strong><code>cyserver</code></strong> , and <strong><code>telam</code></strong>.</li></ul><p>For example:</p><p><code>C:\Program Files\Palo Alto Networks\Traps></code><strong><code>cytool startup disable cyverak cyvrfsfd</code></strong><code> Enter supervisor password: Service Startup cyverak Disabled cyvrmtgn System cyvrfsfd Disabled cyserver Automatic telam Automatic</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **`runtime`**           | ![check-mark.png](/files/zHw34UCi0O4gam9NTC0t) | <p>Stop or start product components.</p><p>Usage: <strong><code>cytool runtime </code></strong><em><strong><code>\<action></code></strong></em> <em><strong><code>\<component></code></strong></em> <em><strong><code>\<timeout></code></strong></em></p><p>where:</p><ul><li><em><strong><code>\<action></code></strong></em>—Changes startup runtime action for an agent component. Options are: <strong><code>start</code></strong>, <strong><code>stop</code></strong>, and <strong><code>query</code></strong>. The query option displays the startup status for each component.</li><li><em><strong><code>\<component></code></strong></em>—Specifies the component for which you want to change the runtime action, or you can specify all components by not including any in this command. To change the runtime action for a subset of components, list them with spaces separating each component. Options are: <strong><code>cyverak</code></strong>, <strong><code>cyvrmtgn</code></strong>, <strong><code>cyvrfsfd</code></strong>, and <strong><code>cyserver</code></strong>. .</li><li><em><strong><code>\<timeout></code></strong></em>—Specifies the seconds to wait for each component to start/stop. The default is forever. <strong><code>time</code></strong>.</li></ul><p>For example:</p><p><code>C:\Program Files\Palo Alto Networks\Traps> </code><strong><code>cytool runtime stop cyserver cyverak</code></strong><code>Enter supervisor password: Service State cyverak Stopped cyvrmtgn Running cyvrfsfd Running cyserver Stopped</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| **`trace`**             | ![check-mark.png](/files/zHw34UCi0O4gam9NTC0t) | <p>Operate product trace sessions.</p><p>Usage:</p><ul><li><strong><code>cytool trace start </code></strong><em><strong><code>\<log size></code></strong></em>—Starts the trace session and logs the results to a file with a maximum <code>\<logsize></code> in MB (up to 25MB).</li><li><strong><code>cytool trace stop</code></strong>—Stops the trace session.</li><li><strong><code>cytool trace reset</code></strong>—Resets all tracing configurations to their default values. If an active logging session exists, Cytool will restart the session.</li><li><p><strong><code>cytool trace set </code></strong><em><strong><code>\<component></code></strong></em> <em><strong><code>\<level></code></strong></em> <em><strong><code>\<flag></code></strong></em>, where:</p><ul><li><em><strong><code>\<component></code></strong></em> can be either <strong><code>all</code></strong> (set the log level for all components) or one of the following individual components: <strong><code>cyvrlpc</code></strong>, <strong><code>cyvrfsfd</code></strong>, <strong><code>cyverak</code></strong>, <strong><code>cyvrmtgn</code></strong>, <strong><code>cyreport</code></strong>, <strong><code>cyserver</code></strong>, <strong><code>cyapi</code></strong>, <strong><code>cylnk</code></strong>, <strong><code>cyrprtui</code></strong>, <strong><code>cytray</code></strong>, <strong><code>tlacore</code></strong>, <strong><code>cytool</code></strong>, <strong><code>cyverau</code></strong>, <strong><code>cyinjct</code></strong>, <strong><code>cyvrtrap</code></strong>, <strong><code>cyvera</code></strong>, <strong><code>ntnativeapi</code></strong>, <strong><code>winutils</code></strong>, or <strong><code>panwd</code></strong>.</li><li><em><strong><code>\<level></code></strong></em> can be one of the following log levels: <strong><code>NONE</code></strong>, <strong><code>CRITICAL</code></strong>, <strong><code>ERROR</code></strong>, <strong><code>WARNING</code></strong>, <strong><code>INFO</code></strong>, <strong><code>VERBOSE</code></strong>, <strong><code>DEBUG</code></strong>, or <strong><code>ALL</code></strong>.</li><li><em><strong><code>\<flag></code></strong></em> is the mask (hex) of one or more <a href="https://docs.microsoft.com/en-us/windows-hardware/drivers/devtest/trace-flags">trace flags</a> (a maximum of 31) separated by spaces that the agent assigns to each trace when a program runs on the endpoint (for example <strong><code>0x7FFFFFFF</code></strong>, or <strong><code>0x5</code></strong>). The trace flag is a property of a trace provider (in this case, Cortex XDR) and determines which events the agent generates. You can use the trace flag to filter events that the agent traces.</li></ul></li><li><p><strong><code>cytool trace convert \<etl\_file> \[\<tmf\_file>]</code></strong>—Extract the encoded event trace log (ETL) file using a trace message format (TMF) file as a key to a file with the same name and store the result in <code>%ProgramData%\Cyvera\Logs\Log.txt</code>. When a TMF file is not supplied, Cytool uses the default TMF file stored in the <code>%ProgramData\Cyvera\Logs\</code> folder to convert the ETL file.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note</strong></p><p>This command is not supported on Windows XP SP3.</p></div></li></ul> |
| **`quarantine`**        | ![check-mark.png](/files/zHw34UCi0O4gam9NTC0t) | <p>View, restore and delete quarantined files.</p><p>Usage:</p><ul><li><strong><code>cytool quarantine list</code></strong>—List all quarantined files.</li><li><strong><code>cytool quarantine restore \<ID> \[\<path>]</code></strong>—Restore files to their original location or to a path, if specified, by specifying the file ID.</li><li><strong><code>cytool quarantine delete \<ID></code></strong>—Delete the quarantined file specified by the quarantine ID.</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| **`stat`**              | —                                              | <p>Query Cortex XDR agent statistics from a running process.</p><p>Usage: <strong><code>cytoolstat </code></strong><em><strong><code>\<pid></code></strong></em></p><p>where <em><strong><code>\<pid></code></strong></em> is the process ID (PID).</p><p>For example, to display statistics about the Chrome process identified by PID 4080:</p><p><code>c:\Program Files\Palo Alto Networks\Traps> </code><strong><code>cytool stat 4080</code></strong><code> DllSec Invocations: 0 DllSec Time: 00:00:00.0 G01 Invocations: 0 G01 Time: 00:00:00.0 G01 Thunk 00 Resolution: 0 G01 Thunk 01 Resolution: 0 G01 Thunk 02 Resolution: 0 G01 Thunk 03 Resolution: 0 G01 Thunk 04 Resolution: 0 G01 Thunk 05 Resolution: 0 G01 Thunk 06 Resolution: 0 G01 Thunk 07 Resolution: 0 G01 Thunk 08 Resolution: 0 G01 Thunk 09 Resolution: 0 G01 Thunk 10 Resolution: 0 G01 Thunk 11 Resolution: 0 G01 Thunk 12 Resolution: 0 G01 Thunk 13 Resolution: 0 G01 Thunk 14 Resolution: 0 G01 Thunk 15 Resolution: 0 G01 Stack Walk Resolution: 0 J01 Minimum Stack Depth: 166 J01Checks: 25 J01 Stack Walk Checks: 0</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| **`info`**              | —                                              | <p>Display general Cortex XDR agent information.</p><p>Usage: <strong><code>cytool info \[query]</code></strong></p><p>To display the agent version, run the <strong><code>cytool info</code></strong> command without any additional arguments. To display additional details about the agent, such as the version of the default policy and the specific build number, add the query argument. For example:</p><p><code>C:\Program Files\Palo Alto Networks\Traps></code><strong><code>cytool info</code></strong><code> Cortex XDR (R) supervisor tool 7.0.0.27797 (c) Palo Alto Networks, Inc. All rights reserved General Cortex XDR information. USAGE: cytool info query C:\Program Files\Palo Alto Networks\Traps></code><strong><code>cytool info query</code></strong><code> Content Type: 113 Content Build: 18279 Content Version: 113-18297 Event Log: 1</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| **`imageprep`**         | ![check-mark.png](/files/zHw34UCi0O4gam9NTC0t) | <p>Prepare a golden image by submitting files for cloud analysis and generate a threats report.</p><p>Usage: <strong><code>cytool imageprep \[scan] \[timeout </code></strong><em><strong><code>\<scan timeout></code></strong></em><strong><code>]\[upload </code></strong><em><strong><code>\<upload timeout></code></strong></em><strong><code>] \[path </code></strong><em><strong><code>\<full path></code></strong></em><strong><code>]</code></strong></p><p>where:</p><ul><li><em><strong><code>\<scan timeout></code></strong></em>—The number of hours the scan is permitted to run before reporting an error.</li><li><em><strong><code>\<upload timeout></code></strong></em>—The number of minutes the agent can take to upload unknown files to Cortex XDR before reporting an error.</li><li><em><strong><code>\<full path></code></strong></em>—Path to store the scan report. If no path is specified, Cytool saves the scan report to the local Cytool directory. To save files to this folder, you must disable service protection using the <strong><code>cytool protect disable</code></strong> command.</li></ul><p>For example:</p><p><code>C:\Program Files\Palo Alto Networks\Traps></code><strong><code>cytool imageprep scan timeout 4 upload 60 path c:\report</code></strong><code> Start Time : 17:56:46 Elapsed Time : 00:04:17 State : Running Scanned Files : 5427 Suspicious Files : 0 Failed Files : 9 Volume Root Path : \\?\C:\ Window Usage : 0 236 20000 Path : ...t\cache2\entries\9B982CE198BF046E6CCF25478920DDFD9E5842E5 Scan completed successfully Complete report can be found at: C:\report\imageprep\_2019-03-06\_08-59-30.xml</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| **`scan`**              | —                                              | <p>Scan operations.</p><p>Usage: <strong><code>cytool scan </code></strong><em><strong><code>\<action></code></strong></em></p><p>where <em><strong><code>\<action></code></strong></em>:</p><ul><li><strong><code>start</code></strong>—Scans the endpoint for malware.</li><li><strong><code>stop</code></strong>—Stops a scan.</li><li><strong><code>query</code></strong>—Displays the progress if a system scan is active.</li></ul><p>For example:</p><p><code>C:\Program Files\Palo Alto Networks\Traps></code><strong><code>cytool scan start</code></strong><code> Enter supervisor password: The operation completed successfully. C:\Program Files\Palo Alto Networks\Traps></code><strong><code>cytool scan query</code></strong><code> Enter supervisor password: Start Time : 9:09:0648 Elapsed Time : 00:00:51 State : Running Scanned Files : 3944 Suspicious Files : 0 Failed Files : 1?\C:\ Volume Root Path : \\?\C:\ 8 20000 Window Usage : 0 14 20000 Path : ...m.BubbleWitch3Saga\_6.1.0\_x86\_\_kgqvnymyfvs32\res\_output\particles\collected\_counter\_feathers.xml The operation completed successfully. C:\Program Files\Palo Alto Networks\Traps></code><strong><code>cytool scan stop</code></strong><code>Enter supervisor password: The operation completed successfully.</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| **`persist`**           | ![check-mark.png](/files/zHw34UCi0O4gam9NTC0t) | <p>The Cortex XDR agent stores policy and security event information, such as the list of trusted signers, local verdicts, and one-time actions in local databases on the endpoint. To troubleshoot policy issues and security events, you can use cytool persist operations to import, export, and view information stored in the local database.</p><p>Usage: <strong><code>cytool persist </code></strong><em><strong><code>\<operation></code></strong></em></p><p>where <em><strong><code>\<operation></code></strong></em>:</p><ul><li><strong><code>list</code></strong>—Lists the local databases on the endpoint.</li><li>\*\*<code>export </code><em><code>\[\<database name></code></em>\`</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| **`log`**               | —                                              | <p>Set log level for the desired process.</p><p>Usage: <strong><code>cytool log set\_level \<log\_level> \<components></code></strong></p><p>where:</p><ul><li><p><code>\<log\_level></code>—An integer value corresponding to the log level:</p><ul><li><strong>0</strong>—Disable logging</li><li><strong>1</strong>—Fatal</li><li><strong>2</strong>—Critical</li><li><strong>3</strong>—Error</li><li><strong>4</strong>—Warning</li><li><strong>5</strong>—Notice</li><li><strong>6</strong>—Information</li><li><strong>7</strong>—Debug</li><li><strong>8</strong>—Trace</li></ul></li><li><code>\<components></code> can be <strong><code>all</code></strong> or it can be one or more of the following agent components: <strong><code>trapsd</code></strong>, <strong><code>authorized</code></strong>, <strong><code>pmd</code></strong>, or <strong><code>cortex xdr</code></strong>.</li></ul><p>Then use the <strong><code>cytool log collect</code></strong> command to generate a support file archive of all logs in a TGZ file.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| **`checkin`**           | —                                              | <p>Initiate check-in to the server.</p><p>Usage: <strong><code>cytool checkin</code></strong></p><p>To verify the checkin, view the check-in time on the agent console.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| **`last_checkin`**      | —                                              | <p>Display the time of the last successful check-in.</p><p>Usage: <strong><code>cytool last\_checkin</code></strong></p><p>For example:</p><p><code>C:\Program Files\Palo Alto Networks\Traps>cytool last\_checkin Persistent Last Check-In time Database agent\_settings: persistence::DB: C:\ProgramData\Cyvera\LocalSystem\Persistence\agent\_settings.db: Open persistence::DB: C:\ProgramData\Cyvera\LocalSystem\Persistence\agent\_settings.db: Open: IO error: C:\ProgramData\Cyvera\LocalSystem\Persistence\agent\_settings.db\LOCK: Could not lock file. Last Check-In time (UTC): 2020-01-27T09:53:50Z Last Check-In time (local): 2020-01-27T11:53:50Z Total: 1 records persistence::DB: C:\ProgramData\Cyvera\LocalSystem\Persistence\agent\_settings.db: Close</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| **`edr`**               | —                                              | <p>Run EDR operations.</p><p>Usage:</p><p><strong><code>cytool edr </code></strong><em><strong><code>\<operation></code></strong></em></p><p>where <em><strong><code>\<operation></code></strong></em> can be:</p><ul><li><strong><code>dump</code></strong>—Dumps EDR events.</li><li><strong><code>stats</code></strong>—Displays EDR stats collected on the endpoint.</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| **`payload_execution`** | ![check-mark.png](/files/zHw34UCi0O4gam9NTC0t) | <p>Stop or query payload execution status. Relates to Live Terminal and script execution.</p><p>Usage:</p><ul><li><p><strong><code>cytool payload\_execution query</code></strong>—Display current payload execution status.</p><p>For example:</p></li><li><strong><code>cytool payload\_execution stop</code></strong>—Stops payload execution.</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| **`websocket`**         | —                                              | <p>Display current websocket connection status.</p><p>Usage: <strong><code>cytool websocket query</code></strong></p><p>For example:</p><p><code>C:\Program Files\Palo Alto Networks\Traps></code><strong><code>cytool websocket query</code></strong><code>Current status of websocket connection is: server: wss\://ch-panw-61-beta.traps.paloaltonetworks.com/operations/socket connected: true enabled: true uptime: 00:39:46.444</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| **`reconnect`**         | ![check-mark.png](/files/zHw34UCi0O4gam9NTC0t) | <p>Try reconnecting to the server if communication has been disabled, or force registration with a new <strong><code>distribution\_id</code></strong>.</p><p>Usage:</p><ul><li><strong><code>cytool reconnect</code></strong>—Reconnects the Cortex XDR agent to the management application on the server, either Traps management service or Cortex XDR.</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| **`vdi`**               | ![check-mark.png](/files/zHw34UCi0O4gam9NTC0t) | <p>Update hostname of Golden image and ID in the peristent database.</p><p>Usage: <strong><code>cytool vdi update</code></strong></p><p>Update is the only operation available at this point.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| **`proxy`**             | ![check-mark.png](/files/zHw34UCi0O4gam9NTC0t) | <p>Set or query cloud-defined proxies for the agent.</p><p>Usage:</p><ul><li><strong><code>cytool proxy query</code></strong>—Displays the current status of cloud-defined proxy settings.</li><li><strong><code>cytool proxy set </code></strong><em><strong><code>\<list></code></strong></em>—Set cloud-defined proxy settings to the proxies defined in <code>\<list></code>. For example: <strong><code>cytool proxy set "192.168.50.1:8080,192.168.60.2:808"</code></strong></li><li><strong><code>cytool proxy set “”</code></strong>—Disable cloud-defined proxy.</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| **`event_collection`**  | ![check-mark.png](/files/zHw34UCi0O4gam9NTC0t) | <p>Start or stop event collection (EDR/DSE).</p><p>Usage: <strong><code>cytool event\_collection </code></strong><em><strong><code>\<operation></code></strong></em></p><ul><li><strong><code>cytool event\_collection query</code></strong>—Display current event collection status.</li><li><strong><code>cytool event\_collection enable</code></strong>—Start or stop event collection as set by policy.</li><li><strong><code>cytool event\_collection disable</code></strong>—Forcibly stop event collection.</li><li><strong><code>cytool event\_collection logstat</code></strong>—Write internal statistics to the log file.</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| **`isolate`**           | ![check-mark.png](/files/zHw34UCi0O4gam9NTC0t) | <p>Release endpoint from network isolation.</p><p>Usage: <strong><code>cytool isolate stop</code></strong></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| **`token`**             | —                                              | <p>Displays the current token hash of the endpoint.</p><p>Usage: <strong><code>cytool token query</code></strong></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| **`endpoint_tags`**     | ![check-mark.png](/files/zHw34UCi0O4gam9NTC0t) | <p>Usage: <strong><code>cytool endpoint\_tags \<action></code></strong>, where <strong><code>\<action></code></strong> can be:</p><ul><li><strong><code>add</code></strong>—Add tags to the endpoint tag list.</li><li><strong><code>remove</code></strong>—Remove the given tags from the list of endpoint tags.</li><li><strong><code>list</code></strong>—Display the available list of endpoint tags.</li></ul><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note</strong></p><p>Tags should be passed as one string, separated by commas, and with no spaces.</p></div><p>For example:</p><ul><li><strong><code>cytool endpoint\_tags add “tag1\[,tage2,...,tagN]”</code></strong></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| **`firewall`**          | ![check-mark.png](/files/zHw34UCi0O4gam9NTC0t) | <p>Host firewall operations.</p><p>Usage: <strong><code>cytool firewall </code></strong><em><strong><code>\<action></code></strong></em></p><p>where <em><strong><code>\<action></code></strong></em> can be:</p><ul><li><strong><code>enable</code></strong>—Activates host firewall component</li><li><strong><code>disable</code></strong>—Stops a scan.</li><li><strong><code>query</code></strong>—Displays the progress if a system scan is active.</li><li><strong><code>show</code></strong>—Displays the progress if a system scan is active.</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| **`import`**            | ![check-mark.png](/files/zHw34UCi0O4gam9NTC0t) | <p>Imports pre-downloaded content package.</p><p>Usage: <strong><code>cytool import content</code></strong><em><strong><code>\<action></code></strong></em></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| **`btp`**               | ![check-mark.png](/files/zHw34UCi0O4gam9NTC0t) | <p>(Behavioral threat protection) BTP operations.</p><p>Usage: <strong><code>cytool btp </code></strong><em><strong><code>\<operation></code></strong></em></p><p>where <em><strong><code>\<operation></code></strong></em> can be:</p><ul><li><strong><code>verbose\_log enable</code></strong>—enables BTP verbose logging.</li><li><strong><code>verbose\_log disable</code></strong>—disables BTP verbose logging.</li><li><strong><code>watch enable </code></strong><em><strong><code>\<item\_name></code></strong></em>—Enables the watch command for the specified item.</li><li><strong><code>watch disable </code></strong><em><strong><code>\<item\_name></code></strong></em>—disables the watch command for the specified item.</li><li>where <code>item name</code> can be:</li><li>facts</li><li>rules</li><li>activations</li><li>focus</li><li>compilations</li><li>statistics</li><li>globals</li><li>deffunctions</li><li>instances</li><li>slots</li><li>messages</li><li>messages-handlers</li><li>generic-functions</li><li>methods</li><li>all</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| **`file_search`**       | ![check-mark.png](/files/zHw34UCi0O4gam9NTC0t) | <p>Displays file properties for a given hash/path.</p><p>Usage: <strong><code>cytool file\_search </code></strong><em><strong><code>\<operation></code></strong></em></p><p>where <em><strong><code>\<operation></code></strong></em> can be:</p><ul><li><p><strong><code>hash</code></strong></p><p>—Displays file properties for a given hash.</p></li><li><p><strong><code>path</code></strong></p><p>—Displays file properties for a given path.</p></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| **`file_system_scan`**  | ![check-mark.png](/files/zHw34UCi0O4gam9NTC0t) | <p>File system scan properties.</p><p>Usage:<strong><code>cytool file\_system\_scan \[start] \[stop] or \[query]</code></strong></p><p>where <strong><code>start</code></strong>—Starts the full system scan.</p><p><strong><code>stop</code></strong>—Stops the file system scan. <strong><code>query</code></strong>—Displays file progress of the file system scan, if it’s still active.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| **`import`**            | ![check-mark.png](/files/zHw34UCi0O4gam9NTC0t) | <p>Import file system.</p><p>Usage:<strong><code>cytool import </code></strong><em><strong><code>\<operation></code></strong></em> where: <em><strong><code>content \<package file path></code></strong></em>—Imports and applies content from the given file.</p><p><em><strong><code>suex \<suex file path></code></strong></em></p><p>—Imports and applies local support exception. Options are:</p><ul><li><em><strong><code>\<suex local clear></code></strong></em></li><li><em><strong><code>\<suex remote freeze></code></strong></em></li><li><em><strong><code>\<suex remote cleer></code></strong></em></li><li></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| **`misc`**              | —                                              | <p>Displays the start time of the last successful system scan.</p><p>Usage:<strong><code>cytool misc last\_scan\_time</code></strong></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| **`p2p`**               | ![check-mark.png](/files/zHw34UCi0O4gam9NTC0t) | <p>Peer to peer settings</p><p>Usage:<strong><code>cytool p2p </code></strong><em><strong><code>\<action></code></strong></em></p><p>where <em><strong><code>\<action></code></strong></em>:</p><ul><li><strong><code>status</code></strong>—Displays status and configuration of peer to peer.</li><li><strong><code>enable</code></strong>—Enables peer to peer.</li><li><strong><code>disable</code></strong>—Disables peer to peer.</li><li><strong><code>port</code></strong>—Changes peer to peer port to 1234.</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| **`unblock_remote_ip`** | ![check-mark.png](/files/zHw34UCi0O4gam9NTC0t) | <p>Displays blocked IPs and whilelisted IPs and option to unblock one or more IPs.</p><p>Usage: <strong><code>cytool unblock\_remote\_ip </code></strong><em><strong><code>\<operation></code></strong></em></p><p>where <em><strong><code>\<operation></code></strong></em> can be:</p><ul><li><p><strong><code>list</code></strong></p><p>—Displays list of blocked IPs.</p></li><li><p><strong><code>wlist</code></strong></p><p>—Displays list of white listed IPs.</p></li><li><p><strong><code>unblock</code></strong></p><p>—Unblock an IP address or all. Options are: <em><strong><code>all</code></strong></em> <em><strong><code>IP address</code></strong></em></p></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| **`adaptive_policy`**   | ![check-mark.png](/files/zHw34UCi0O4gam9NTC0t) | <p>Adaptive policy agent commands.</p><p>Usage: <strong><code>cytool adaptive\_policy </code></strong><em><strong><code>\<interval></code></strong></em> <em><strong><code>\<collect\_stats></code></strong></em> <em><strong><code>\<recalc></code></strong></em> <em><strong><code>\<query></code></strong></em></p><p>where:</p><ul><li><em><strong><code>interval</code></strong></em> —Sets a recalculation interval override (in seconds), or reset an override. Options are: <strong><code>seconds</code></strong> <strong><code>policy</code></strong></li><li><em><strong><code>collect\_stats</code></strong></em> —Initiates a collection of internal statistics.</li><li><em><strong><code>recalc</code></strong></em> —Triggers a recalculation of the adaptive policy.</li><li><em><strong><code>query</code></strong></em> —Query the current interval and APEX.</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| **`security`**          | —                                              | <p>Set security profiles.</p><p>Usage: <strong><code>cytool security </code></strong><em><strong><code>\<action></code></strong></em></p><p>where: <em><strong><code>\<action></code></strong></em>—Options are: <strong><code>enable</code></strong>, <strong><code>disable</code></strong>, or <strong><code>query</code></strong>.The query option displays the startup status for each component.</p><p><code>C:\Program Files\Palo Alto Networks\Traps></code><strong><code>cytool security disable</code></strong><code>Enter supervisor password: Security profiles are now disabled.</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| **`security_events`**   | —                                              | <p>Prints all the cytool security events</p><p>Usage: <strong><code>cytool security\_events print</code></strong></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| **`connectivity_test`** | ![check-mark.png](/files/zHw34UCi0O4gam9NTC0t) | <p>Set the number of HTTP requests for each of the known URLs.</p><p>Usage: <strong><code>cytool connectivity\_test </code></strong><em><strong><code>\<request\_count></code></strong></em></p><p>where: <code>\<request\_count></code>—is the number of HTTP requests for each of the known URLs.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-xdr-agent/7.7-eol/cortex-xdr-agent-7.7-for-windows/troubleshooting-resources-for-windows/cytool-for-windows.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
