> Source: [sk138892](https://support.checkpoint.com/results/sk/sk138892)

# sk138892 - How to generate a CPInfo file on Spark Firewall

| Property | Value |
|----------|-------|
| Solution ID | sk138892 |
| Date Created | 2018-10-25 |
| Last Modified | 2025-08-28 |
| Technical Level | General |
| Products | Spark Firewall (Locally Managed) |
| Versions | R81.10.X |

## Solution

On Quantum Spark Gateways, you can generate a CPInfo file in two ways:

* In the WebUI

* In the CLI

### To generate a CPInfo file in the WebUI on a Quantum Spark Gateway

1. Connect to the WebUI the Quantum Spark Gateway.

2. Log in.
3. From the left panel, click the **Device** view \> in the **System** section, click the **Tools** page.

4. Click the **Generate CPInfo File** button.

5. When the CPInfo file creation completes, click **Download CPInfo File**.

6. Save the file in the desired location.

### To generate a CPInfo file in the CLI on a Quantum Spark Gateway

1. Connect to the command line on the Quantum Spark Gateway.

2. Log in.

3. If the default shell is Gaia Clish, then go to the Expert mode:

   `expert`
4. Run the "`cpinfo`" command with the applicable parameters:

   Syntax:

   |---------------------------------------------------|
   | `cpinfo -h`                                       |
   | `cpinfo -v`                                       |
   | `cpinfo [-p] [-S] [-o /path/name.extension [-z]]` |

   Parameters:

   |---------------------------|----------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
   | Parameter                 | Description                                                    | Important Notes                                                                                                                                                                                                                                                                                                                                                                                                                                 |
   | `-h`                      | Shows the built-in help and exits.                             |                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
   | `-v`                      | Shows the CPInfo version and exits.                            |                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
   | `-o /path/name.extension` | Writes the collected information to the specified output file. | * If "`-o`" is not specified, then the CPinfo information is printed on the screen. * If "`-o`" is specified, then the CPinfo creates an output file in the specified directory with the specified name and the specified extension (which is optional). Best practice - Save the file in the `/logs/` partition. * Can be used in combination with "`-z`". * Can be used in combination with "`-p`". * Can be used in combination with "`-S`". |
   | `-p`                      | Includes the policy files in the output file.                  | * Best practice - use in combination with "`-o`".                                                                                                                                                                                                                                                                                                                                                                                               |
   | `-S`                      | Obfuscates passwords in the collected configuration.           | * Best practice - use in combination with "`-o`".                                                                                                                                                                                                                                                                                                                                                                                               |
   | `-z`                      | Compresses the CPInfo output file.                             | * Must be used in combination with "`-o`".                                                                                                                                                                                                                                                                                                                                                                                                      |

   Example output:  
   Show / Hide this section  
   `[Expert@MyGW]# cpinfo -p -S -z -o /logs/MyGW.cpinfo`  
   `
   `  
   `
   cpinfo (I:0110): Beginning ...`  
   `
   `  
   `
   cpinfo (I:0116): Latest cpinfo version: http://www.checkpoint.com/downloads/`  
   `
   `  
   `
   cpinfo (I:0123): Getting components list...`  
   `
   `  
   `
   cpinfo (I:0124): Getting CP status...`  
   `
   `  
   `
   cpinfo (I:0125): Getting CP products keys...`  
   `
   `  
   `
   cpinfo (I:0126): Getting CP products version information...`  
   `
   `  
   `
   cpinfo (I:0127): Getting system information...`  
   `
   `  
   `
   cpinfo (I:0128): Getting IP Interfaces information...`  
   `
   `  
   `
   cpinfo (I:0129): Running netstat...`  
   `
   `  
   `
   cpinfo (I:0133): Getting FW-1 data...`  
   `
   `  
   `
   cpinfo (I:0136): Getting license information...`  
   `
   `  
   `
   cpinfo (I:0138): Getting other CP products information...`  
   `
   `  
   `
   cpinfo (I:0139): Getting CPWD (Watch Dog) informaton...`  
   `
   `  
   `
   cpinfo (I:0140): Getting directory listing...`  
   `
   `  
   `
   cpinfo (I:0142): Getting kernel information...`  
   `
   `  
   `
   cpinfo (I:0112): Embedding files ...`  
   `
   `  
   `
   cpinfo (I:0143): Embedding appliance-specific information...`  
   `
   `  
   `
   cpinfo (I:0117): Zipping output file ...`  
   `
   `  
   `
   cpinfo (E:0119): Zipping output file - done (/logs/MyGW.cpinfo.gz)`  
   `
   `  
   `
   cpinfo (I:0111): Done`  
   `
   [Expert@MyGW]#`
5. Get the CPinfo output file from the Quantum Spark Gateway (for example, with WinSCP - follow [sk42178](https://support.checkpoint.com/results/sk/sk42178)).

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
