> 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.8-eol/cortex-xdr-agent-7.8-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 agent 7.6 release for Windows, 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ----------------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **`enum`**              | ![check-mark.png](/files/ft1QvrqVknRSFOAa73CP) | <p>Enumerate protected processes.</p><p>Usage: <strong><code>cytool enum</code></strong></p><p>For example:</p><p><code>C:\Program Files\Palo Alto Networks\Traps></code><strong><code>cytool enum</code></strong><code> Process ID Agent Version 4448 7.0.0.27797 1188 7.0.0.27797 10980 7.0.0.27797 1160 7.0.0.27797 11756 7.0.0.27797 11080 7.0.0.27797 11432 7.0.0.27797 9432 7.0.0.27797 9424 7.0.0.27797 9752 7.0.0.27797 9404 7.0.0.27797 11872 7.0.0.27797 12272 7.0.0.27797 6864 7.0.0.27797 12532 7.0.0.27797</code></p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note</strong></p><p>If you change the action mode for protected processes in the Exploit Security Profile in Cortex XDR, you must restart the protected processes for the security policy to be enforced on the processes and its forked processes, and only then you will see them on this list.</p></div>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| **`protect`**           | ![check-mark.png](/files/ft1QvrqVknRSFOAa73CP) | <p>Enable or disable a protection feature.</p><p>Usage: <strong><code>cytool protect </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><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, and <strong><code>service</code></strong> for agent services.</li></ul><p>For example:</p><p><code>C:\Program Files\Palo Alto Networks\Traps></code><strong><code>cytool protect disable process</code></strong><code> Enter supervisor password: Protection Mode State Process Disabled Disabled Registry Policy Enabled File Policy Enabled Service Policy Enabled</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| **`startup`**           | ![check-mark.png](/files/ft1QvrqVknRSFOAa73CP) | <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/ft1QvrqVknRSFOAa73CP) | <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></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></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>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| **`policy`**            | ![check-mark.png](/files/ft1QvrqVknRSFOAa73CP) | <p>Query or compare the applied policy for a process.</p><p>Usage: <strong><code>cytool policy </code></strong><em><strong><code>\<action></code></strong></em> <em><strong><code>\<process></code></strong></em></p><p>where:</p><ul><li><em><strong><code>\<action></code></strong></em>—Options are: <strong><code>query</code></strong> and <strong><code>compare</code></strong>. The <strong><code>query</code></strong> option displays the current applied policy for the process; the <strong><code>compare</code></strong> option enables you to compare the policy against the policy for another process or against the default policy.</li><li><em><strong><code>\<process></code></strong></em>—Either the process name or process ID (PID).</li></ul><p>For example, to query the policy for future executions of notepad.exe:</p><p><code>C:\Program Files\Palo Alto Networks\Traps></code><strong><code>cytool policy query notepad.exe</code></strong><code> Enter supervisor password: Generic Enable 0x00000001 LongHooks 0x00000000 StaticHooks 0x00000000 NoCallSplitting 0x00000000 InitSecurityCookie 0x00000000 DontInjectThinApp 0x00000001 LeanInjection 0x00000000 B01 Enable 0x00000000 BlockAPI 0x00000000 \[...]</code></p><p>For example, to compare the policy for future executions of notepad.exe to the default policy:</p><p><code>C:\Program Files\Palo Alto Networks\Traps></code><strong><code>cytool policy compare notepad.exe default</code></strong><code> Enter supervisor password: Generic Enable 0x00000001 0x00000001 LongHooks 0x00000000 0x00000000 StaticHooks 0x00000000 0x00000000 NoCallSplitting 0x00000000 0x00000000 InitSecurityCookie 0x00000000 0x00000000 DontInjectThinApp 0x00000001 0x00000001 LeanInjection 0x00000000 0x00000000 B01 Enable 0x00000000 0x00000000 BlockAPI 0x00000000 0x00000000 \[...]</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| **`adaptive_policy`**   | ![check-mark.png](/files/ft1QvrqVknRSFOAa73CP) | <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>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| **`trace`**             | ![check-mark.png](/files/ft1QvrqVknRSFOAa73CP) | <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/ft1QvrqVknRSFOAa73CP) | <p>View and restore quarantined files.</p><p>Usage:</p><ul><li><strong><code>cytool quarantine list</code></strong>—List all quarantined files.</li><li><strong><code>cytool restore \<ID> \[\<path>]</code></strong>—Restore files to their original location or to a path, if specified, by specifying the file 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>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| **`tla`**               | ![check-mark.png](/files/ft1QvrqVknRSFOAa73CP) | <p>View the history of the agent local analysis module.</p><p>Usage: <strong><code>cytool tla query</code></strong></p><p>For example:</p><p><code>C:\Program Files\Palo Alto Networks\Traps></code><strong><code>cytool tla query</code></strong><code> Model: PE Build: 1800 Timestamp: Tuesday, November 26, 2019, 15:23:20 Model: Visual Basic Application Macro Build: 1801 Timestamp: Tuesday, November 26, 2019, 12:40:07</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>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| **`wf`**                | —                                              | <p>Local verdicts cache operations.</p><p>Usage: <strong><code>cytool wf query \[\<hash>]</code></strong></p><p><code>C:\Program Files\Palo Alto Networks\Traps></code><strong><code>cytool wf query 6D712E38945275FC534042191B02A8B34AA1CCED82486C98C1CE8935DDCF</code></strong><code> Enter supervisor password: Hash,Verdict,Override,Local Verdict,Model Version,Size,Type,Path,Time Stamp,Publishers 6d712e38945275fc534042191b02a8b34aa1cced82486c98c1ce8935ddcf, Unknown(2),No Override,Malware(1),593,55296,Executable(1), "\\?\C:\Users\admin\AppData\Local\Packages\Microsoft. MicrosoftEdge\_8wekyb3d8bbwe\TempState\Downloads\test-pe.exe", "Monday, July 12, 2019, 20:14:07","",Root,</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **`image`**             | —                                              | <p>Display information about a PE file (executable or DLL).</p><p>Usage: <strong><code>cytool image </code></strong><em><strong><code>\<filename></code></strong></em></p><p>For example:</p><p><code>C:\Program Files\Palo Alto Networks\Traps></code><strong><code>cytool image json.dll</code></strong><code> Image Information Location: json.dll Size: 176.98 KB (181224 bytes) File SHA256: a46b8e1ad9a808fb09e7b79bd03b66a611d0c7aa71291c216be555af14d16421 Architecture: x86-64 Subsystem: Windows GUI PE Size: 156.00 KB (159744 bytes) PE SHA256: 8cbca46419bf7260c99aaa3c73a6944e97f5c5b053a8b88e9a17367439b08d7d</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| **`imageprep`**         | ![check-mark.png](/files/ft1QvrqVknRSFOAa73CP) | <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/ft1QvrqVknRSFOAa73CP) | <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>cytoolpersist </code></strong><em><strong><code>\<action></code></strong></em></p><p>where <em><strong><code>\<action></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>EDR operations.</p><p>Usage:</p><ul><li><strong><code>cytool edr stats</code></strong>—Display EDR stats collected on the endpoint.</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| **`payload_execution`** | ![check-mark.png](/files/ft1QvrqVknRSFOAa73CP) | <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 quey</code></strong>—Display current payload execution status.</p><p>For example:</p></li><li><strong><code>cytool payload\_execution quey</code></strong>—Stop 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/ft1QvrqVknRSFOAa73CP) | <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/ft1QvrqVknRSFOAa73CP) | <p>Perform VDI operations.</p><p>Usage: <strong><code>cytool vdi </code></strong><em><strong><code>\<operation></code></strong></em></p><p>where <em><strong><code>\<operation></code></strong></em> is currently only:</p><ul><li><strong><code>update</code></strong>—Update the golden image name and ID in the persistent database.</li></ul><p>For example:</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| **`proxy`**             | ![check-mark.png](/files/ft1QvrqVknRSFOAa73CP) | <p>Set or query cloud-defined proxies for the agent.</p><p>Usage:</p><ul><li><strong><code>cytool proxy query</code></strong>—Display 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/ft1QvrqVknRSFOAa73CP) | <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/ft1QvrqVknRSFOAa73CP) | <p>Release endpoint from network isolation.</p><p>Usage: <strong><code>cytool isolate stop</code></strong></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| **`endpoint_tags`**     | ![check-mark.png](/files/ft1QvrqVknRSFOAa73CP) | <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><li><strong><code>cytool endpoint\_tags add “tag1\[,tage2,...,tagN]”</code></strong></li><li><strong><code>cytool endpoint\_tags add “tag1\[,tage2,...,tagN]”</code></strong></li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| **`token`**             | —                                              | <p>Displays the current token hash of the endpoint.</p><p>Usage: <strong><code>cytool token query</code></strong></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.8-eol/cortex-xdr-agent-7.8-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.
