> 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/5.0/traps-agent-5.0-for-windows/troubleshooting-resources-for-traps-agent-for-windows/cytool-for-windows.md).

# Cytool for Windows

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

On Windows endpoints, you can access Cytool using a Microsoft MS-DOS 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.

| Command Option   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **`enum`**       | <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 6396 5.0.0.33808 6316 N/A 5788 5.0.0.33808 8576 5.0.0.33808 5532 5.0.0.33808 7244 5.0.0.33808 7160 5.0.0.33808 8596 5.0.0.33808 1064 5.0.0.33808 7820 5.0.0.33808 5156 5.0.0.33808 6904 5.0.0.33808</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **`protect`**    | <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 a Traps 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 Traps core processes, <strong><code>registry</code></strong> for Traps registry keys, <strong><code>file</code></strong> for Traps files, and <strong><code>service</code></strong> for Traps 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`**    | <p>Enable, disable, or query the startup state of Traps 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 a Traps 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>, <strong><code>tlaservice</code></strong>, <strong><code>CyveraService</code></strong>, and <strong><code>twdservice</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 CyveraService Automatic tlaservice Automatic twdservice Automatic</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| **`runtime`**    | <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 a Traps 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>, <strong><code>cyserver</code></strong>, <strong><code>tlaservice</code></strong>, <strong><code>CyveraService</code></strong>, and <strong><code>twdservice</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 CyveraService Stopped tlaservice Stopped twdservice Stopped</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| **`policy`**     | <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>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| **`trace`**      | <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>\<log size></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>tlaservice</code></strong>, <strong><code>tlaworker</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 Traps 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, Traps) and determines which events Traps generates. You can use the trace flag to filter events that Traps 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`** | <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 Traps statistics from a running process.</p><p>Usage: <strong><code>cytool stat </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 J01 Checks: 25 J01 Stack Walk Checks: 0</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| **`tla`**        | <p>View the history of the Traps 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> FileType: Executable Build: 589 Timestamp: Sunday, February 11, 2018, 12:32:36 FileType: Dynamically Linked Library Build: 585 Timestamp: Wednesday, January 10, 2018, 12:37:20 FileType: Visual Basic Application Macro Build: 591 Timestamp: Monday, February 12, 2018, 11:11:04</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| **`info`**       | <p>Display general Traps information.</p><p>Usage: <strong><code>cytool info \[query]</code></strong></p><p>To display the Traps version, run the <strong><code>cytool info</code></strong> command without any additional arguments. To display additional details about Traps, 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> Traps (R) supervisor tool 5.0.0.33808 (c) Palo Alto Networks, Inc. All rights reserved General Traps information. USAGE: cytool info query C:\Program Files\Palo Alto Networks\Traps></code><strong><code>cytool info query</code></strong><code> Content Type: 15 Content Build: 1997 Content Version: 15-1997 Event Log: 1 Quarantine Quota: 1048576 KB</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **`wf`**         | <p>WildFire 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, March 12, 2018, 20:14:07","",Root,</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| **`imageprep`**  | <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 Traps can take to upload unknown files to the Traps management service 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\_2018-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\_4.2.2.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`**    | <p>Traps stores policy and security event information, such as the list of trusted signers, local verdicts, and one-time actions in local databases on the endpoint. To troubleshoot policy issues and security events, you can use cytool persist operations to import, export, and view information stored in the local database.</p><p>Usage: <strong><code>cytool persist </code></strong><em><strong><code>\<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 \<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 Traps components: <strong><code>trapsd</code></strong>, <strong><code>authorized</code></strong>, <strong><code>pmd</code></strong>, or <strong><code>traps\_agent</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 Traps console.</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/5.0/traps-agent-5.0-for-windows/troubleshooting-resources-for-traps-agent-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.
