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

# sk98615 - How to decrease the size of CPInfo output file?

| Property | Value |
|----------|-------|
| Solution ID | sk98615 |
| Date Created | 2014-02-18 |
| Last Modified | 2023-02-02 |
| Technical Level | General |
| Products | Tools |
| Versions | Not Version-Specific |

## Symptoms

- In some cases, CPInfo output file can be too large (e.g. greater than 1 GB) to be able to open with text editors and InfoView.

## Cause

CPInfo tool copies many files, including:

* Firewall traffic log (fw.log)
* Management (Audit) log (fw.adtlog)
* Policy files (\*.pf)
* Firewall kernel tables
* etc.

## Solution

To decrease the size of CPInfo output file:

* **Perform the following steps *before* collecting the CPInfo output file:** 1). Rotate the active Security log - applies to a Security Management Server or Security Gateway:  
  `[Expert@Hostname:0]# fw logswitch`  

  2). Rotate the active Audit log - applies to a Security Management Server:  
  `[Expert@Hostname:0]# fw logswitch -audit`  
* **Perform the following steps *after* collecting the CPInfo output file:**Remove information from various SQL tables:

  * The original CPInfo output file should not be compressed.   

  * The original CPInfo output file should be located on a Linux machine (Gaia and SecurePlatform can be used).
  * Use SED to delete the SQL information:

    **`# sed '/begin .*\.sqlite/,/end/{//!{//!d}}' `*Name_of_Original_File* `.cpinfo > `*Name_of_New_File*`.cpinfo_new`**

    <br />

---

# 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
