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

# sk101878 - CPView Utility

| Property | Value |
|----------|-------|
| Solution ID | sk101878 |
| Date Created | 2014-07-31 |
| Last Modified | 2026-05-26 |
| Technical Level | General |
| Products | Security Gateway, Security Management Server, Multi-Domain Security Management Server |
| Versions | R82.10, R82, R81.20, R81.10 (EOS), R82.10, R82, R81.20, R82.10, R81 (EOS), R81.10 (EOS), R81 (EOS), R81 (EOS), R81.10 (EOS), R81.20, R82 |
| OS | Gaia |

## Solution

**Table of Contents**

1. Introduction
2. Supported Deployments
3. Syntax
4. Usage
5. Limitations
6. Notes
7. What's New
8. Logging Metrics
9. Troubleshooting
10. Related Solutions

Click Here to Show the Entire Article

(1) Introduction {#Introduction}
--------------------------------

CPView Utility is a text based *built-in* utility that can be run ("`cpview`" command) on Security Gateway / Security Management Server / Multi-Domain Security Management Server.

CPView Utility shows statistical data that contain both general system information (CPU, Memory, Disk space) and information for different Software Blades (only on Security Gateway).

The data is continuously updated in easy to access views.

On Security Gateway, this statistical data can be used to monitor machine's performance.

(2) Supported Deployments {#Supported_Deployments}
--------------------------------------------------

Show / Hide this section  
> CPView Utility is *built-in* and supported *only* on:
>
> |-------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
> | Versions          | * R77 GA and higher * R76SP.50                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
> | Operating Systems | * Gaia OS R77 and higher * SecurePlatform OS R77, R77.10, R77.20, R77.30                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
> | Products          | * Security Gateway: * R76SP.50, R77, and higher - full monitoring of system resources, software blades, etc. * R77.10 and higher - history mode was added * R76SP.50 - history mode is **not** supported * Security Management Server: * R77 and higher - only monitoring of CPU, Memory and Disk Space * R77 and higher - history mode is **not** supported * Multi-Domain Security Management Server: * R80.20 - supported from [R80.20 Jumbo HFA](https://support.checkpoint.com/results/sk/sk137592) Take_43 * R80.10 - supported from [R80.10 Jumbo HFA](https://support.checkpoint.com/results/sk/sk116380) Take_203 * R77.30 - CPView is **not** supported * R77, R77.10, and R77.20 - only monitoring of CPU, Memory, and Disk Space * R77, R77.10, and R77.20 - history mode is **not** supported * StandAlone: * R77.10 and higher - history mode was added * R77 and higher - full monitoring of system resources, software blades, etc. |

(3) Syntax {#Syntax}
--------------------

Show / Hide the syntax for Security Gateway R82 and higher  
>
> |--------------------------------------------------------------------------------------------------------------------------|
> | `cpview`                                                                                                                 |
> | `cpview --help`                                                                                                          |
> | `cpview --api_service {on | off | stat}`                                                                                 |
> | `cpview --metric [--request_source <Source>] [--request_name <Name>] [--filter <Filter>]`                                |
> | `cpview --print [--ignoreWarnings] [--showDesc] [--request_source <Source>] [--request_name <Name>] [--filter <Filter>]` |
> | `cpview --services {on | off | stat | export}`                                                                           |
> | `cpview --history [<Timestamp>]`                                                                                         |
>
> Where:
>
> Enter the string to filter this table:
>
> |-----------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
> | Command                                                                                                                                       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
> | `cpview`                                                                                                                                      | Opens the interactive tool interface.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
> | `cpview -h` `cpview --help`                                                                                                                   | Shows the built-in help and exits.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
> | `cpview -a {on | off | stat}` `cpview --api_service {on | off | stat}`                                                                        | Administration of the CPView API service (to query the data with API): * `on` - Enables the CPView API service (this is the default) * `off` - Disables the CPView API service * `stat` - Shows the status of the CPView API service Example Output: `[Expert@R82:0]# cpview --api_service stat` ` CPView api service running` ` [Expert@R82:0]#` For information about the CPView API commands, see [Gaia API Reference v1.8 (or higher)](https://sc1.checkpoint.com/documents/latest/GaiaAPIs/index.html#introduction~v1.8%20) \> Chapter "Diagnostics" \> Section "CPView".                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
> | `cpview -m [-e <Source>] [-r <Name>] [-f <Filter>]` `cpview --metric [--request_source <Source>] [--request_name <Name>] [--filter <Filter>]` | Raw print mode (JSON). Shows all CPView metrics one time, in the Metric format for Skyline Telemetry ([sk178566](https://support.checkpoint.com/results/sk/sk178566)). * `cpview -m` `cpview --metric` Shows all CPView metrics, in the Metric format for Skyline Telemetry. * `cpview -m -e <Source>` `cpview --metric --request_source <Source>` Shows CPView metrics only the specified sources, in the Metric format for Skyline Telemetry. * `cpview -m -r <Name>` `cpview --metric --request_name <Name>` For internal Check Point use only. Shows CPView metrics only from the specified data producer, in the Metric format for Skyline Telemetry. In the `$CPDIR/conf/cpview_api_service_conf.xml` file, refer to the values in the parameter "`requests_name`". Example values: `TP_ONLY`, `SDWAN_ONLY`, `SDWAN_AND_TP`. * `cpview -m -f <Filter>` `cpview --metric --filter <Filter>` Shows only the specified CPView metrics, in the Metric format for Skyline Telemetry. You must specify the filter string that matches one of these - **Metric ID** , **Statistics ID** , or **Internal Metric Label**. To specify several filter strings, separate them with commas without spaces (a maximum of 512 characters). You must enclose the filter strings in quotes - each filter string (**"String1","String2",...,"StringN"** ) or all filter strings together (**"String1,String2,...,StringN"** ). Example: `-f "UM_STAT.UM_CPU.num_of_cores","UM_STAT.UM_CPU.ds_status"` * **Metric ID** Refer to one of these: * The "`metric-id`" value in the output of the "`cpview -m`" / "`cpview --metric`" command. * The [Skyline Administration Guide](https://sc1.checkpoint.com/documents/Appliances/Skyline/Default.htm) \> Chapter "**Skyline Metrics Repository** " \> column "**Metric ID**". **Important** - In front of the filter string that matches a Metric ID, you must add the prefix "**M:**". Example Output - Formatted as pretty JSON: ``` [Expert@R82:0]# cpview -m -f M:"system.cpu.count" | jq '.' { "metrics": [ { "data": [ { "value": 4 } ], "description": "The number of CPU cores on this machine.", "metric-id": "system.cpu.count", "metric-type": "Gauge", "metric-unit": "{cpu}", "metric-value-type": "double" } ], "timestamp": 1730744843 } ``` * **Statistics ID** Refer to the "`stat-id`" value in the output of the "`cpview -p`" / "`cpview --print`" command. Example Output - Formatted as pretty JSON: ``` [Expert@R82:0]# cpview -m -f "UM_STAT.UM_CPU.num_of_cores" | jq '.' { "metrics": [ { "data": [ { "value": 4 } ], "description": "The number of CPU cores on this machine.", "metric-id": "system.cpu.count", "metric-type": "Gauge", "metric-unit": "{cpu}", "metric-value-type": "double" } ], "timestamp": 1730737683 } ``` * **Internal Metric Label** In the `$CPDIR/conf/cpview_api_service_conf.xml` file, refer to the values of the "`labels=`" parameters. Examples of Internal Metric Labels: * `labels="CPU,Dynamic_Split,OS,Configuration"` * `labels="Hardware,Interfaces,Drops,Errors"` In the CLI syntax, you can use any of these labels - one or several: * `-f "CPU"` * `-f "Dynamic_Split"` * `-f "CPU,Dynamic_Split"` * `-f "Drops,Errors"` * and so on Example Output - Formatted as pretty JSON: ``` [Expert@R82:0]# cpview -m -f "Dynamic_Split" | jq '.' { "metrics": [ { "data": [ { "value": 0 } ], "description": "The state of the CoreXL Dynamic Balancing (On/Off).", "metric-id": "system.cpu.dynamic_balancing.state", "metric-type": "Gauge", "metric-unit": "{state}", "metric-value-type": "double" } ], "timestamp": 1730737802 } [Expert@R82:0]# ``` |
> | `cpview -p [-i] [-d] [-f <Filter>]` `cpview --print [--ignoreWarnings] [--showDesc] [--filter <Filter>]`                                      | Simple print mode (JSON). Shows all CPView metrics one time. * `cpview -p` `cpview --print` Shows all CPView metrics. * `cpview -p -e <Source>` `cpview --print --request_source <Source>` For internal Check Point use only. Specifies the source/entity of the data request that is sent to Check Point Cloud. * `cpview -p -r <Name>` `cpview --print --request_name <Name>` Shows only the specified CPView requests. * `cpview -p -i` `cpview --print --ignoreWarnings` Reserved for future use. Ignores warnings and continues to execute. * `cpview -p -d` `cpview --print --showDesc` Shows the additional "`name`" and "`description`" strings for each metric. * `cpview -p -f <Filter>` `cpview --print --filter <Filter>` Shows only the specified CPView metrics, together with the description, name, and type of each metric. You must specify the filter string that matches one of these - **Statistics ID** or **Internal Metric Label**. To specify several filter strings, separate them with commas without spaces (a maximum of 512 characters). You must enclose the filter strings in quotes - each filter string (**"String1","String2",...,"StringN"** ) or all filter strings together (**"String1,String2,...,StringN"** ). Example: `-f "UM_STAT.UM_CPU.num_of_cores","UM_STAT.UM_CPU.ds_status"` * **Statistics ID** Refer to the "`stat-id`" value in the output of the "`cpview -p`" / "`cpview --print`" command. Example Output - Formatted as pretty JSON: ``` [Expert@R82:0]# cpview -p -f "UM_STAT.UM_CPU.num_of_cores" | jq '.' { "next-cursor": null, "data": [ { "stat-id": "UM_STAT.UM_CPU.num_of_cores", "records": [ { "timestamp": { "posix": 1730729512, "iso-8601": "2024-11-04T16:11+0200" }, "value": 4 } ] } ] } ``` * **Internal Metric Label** In the `$CPDIR/conf/cpview_api_service_conf.xml` file, refer to the values of the "`labels=`" parameters. Examples of Internal Metric Labels: * `labels="CPU,Dynamic_Split,OS,Configuration"` * `labels="Hardware,Interfaces,Drops,Errors"` In the CLI syntax, you can use any of these labels - one label or several labels: * `-f "CPU"` * `-f "Dynamic_Split"` * `-f "CPU,Dynamic_Split"` * `-f "Drops,Errors"` * and so on Example Output - Formatted as pretty JSON: ``` [Expert@R82:0]# cpview -p -f "Dynamic_Split" | jq '.' { "next-cursor": null, "data": [ { "stat-id": "UM_STAT.UM_CPU.ds_status", "records": [ { "timestamp": { "posix": 1730736137, "iso-8601": "2024-11-04T18:02+0200" }, "value": "Off" } ] } ] } [Expert@R82:0]# ```                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
> | `cpview -s {on | off | stat}` `cpview --services {on | off | stat}`                                                                           | Administration of the CPView services that are responsible for the Database and SNMP activity: * `on` - Enables the CPView services (this is the default) * `off` - Disables the CPView services * `stat` - Shows the status of the CPView services * `export` - Exports the current CPView database Example Output: `[Expert@R82:0]# cpview --services stat` ` CPView services running` ` [Expert@R82:0]#`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
> | `cpview -t [<Timestamp>]` `cpview --history [<Timestamp>]`                                                                                    | Shows the data in the History mode - either the oldest available data, or the data for the specified timestamp. In CPview, press the "**t**" key and enter the applicable date and time. The \<Timestamp\> format is: `[Jan...Dec] [01...31] [4-digit Year] [hh:mm:ss]` In versions R81.10 and higher, you can enter a partial date. For example: `Jan 02`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |

> {#Unique_ID_Syntax_R8200Table}

Show / Hide the syntax for Security Gateway R80.30 - R81.20  
>
> |------------------------------------------------|
> | `cpview`                                       |
> | `cpview --help`                                |
> | `cpview --print`                               |
> | `cpview --services {on | off | stat | export}` |
> | `cpview --history`                             |
>
> Where:
>
> |---------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
> | Command                                           | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
> | `cpview`                                          | Opens the interactive tool interface.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
> | `cpview -h` `cpview --help`                       | Shows the built-in help and exits.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
> | `cpview -t` `cpview --history`                    | History mode. In CPview, press the "**t**" key and enter the applicable date and time. The format is: `[Jan...Dec] [01...31] [4-digit Year] [hh:mm:ss]` In versions R81.10 and higher, you can enter a partial date. For example: `Jan 02`                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
> | `cpview -s <option>` `cpview --services <option>` | CPView administration: |----------|--------------------------------| | `on`     | Turn on CPView services        | | `off`    | Turn off CPView services       | | `stat`   | Show CPView services status    | | `export` | Export current CPView database | CPView services are responsible for the Database and SNMP activity.                                                                                                                                                                                                                                                                                                                                                                                |
> | `cpview -p` `cpview --print`                      | Shows all CPView metrics one time. This option is included starting from (see PMTR-86000): * Check Point R82 * [Jumbo Hotfix Accumulator for R81.20](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81.20/Default.htm) starting from Take 8 * [Jumbo Hotfix Accumulator for R81.10](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81.10/Default.htm) starting from Take 79 * [Jumbo Hotfix Accumulator for R81](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81/Default.htm) starting from Take 77 * [Jumbo Hotfix Accumulator for R80.40](https://sc1.checkpoint.com/documents/Jumbo_HFA/R80.40/Default.htm) starting from Take 190[](https://sc1.checkpoint.com/documents/Jumbo_HFA/R80.30/Default.htm) |

Show / Hide the syntax for Security Gateway R80.20, R80.10, R77.30, R77.20, R77.10, and R76SP.50  
>
> |----------------------------------------------------------|
> | `cpview`                                                 |
> | `cpview --help`                                          |
> | `cpview -b [-t <sec> [-i <count>] [-j] [-l <filesize>]]` |
> | `cpview -b -s`                                           |
> | `cpview -c <conf_file>`                                  |
> | `cpview history {on | off | stat | export}`              |
> | `cpview -p`                                              |
> | `cpview -t <timestamp>`                                  |
>
> Where:
> Shows the built-in help and exits.
>
> |----------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
> | Command                                                  | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
> | `cpview`                                                 | Opens the interactive tool interface.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
> | `cpview --help`                                          | Shows the built-in help and exits.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
> | `cpview -b [-t <sec> [-i <count>] [-j] [-l <filesize>]]` | Shows batch statistics data. |-----------------|-----------------------------------------------------------------------------------------------------------------------------------| | `-t <sec>`      | Sets time interval to `<sec>` seconds before the new dump information is generated. The value of `<sec>` must be greater than 30. | | `-i <count>`    | Limits the dump information to `<count>` times.                                                                                   | | `-j`            | Compresses the generated logs after you run the "`cpview -b -s`" command to stop the instance.                                    | | `-l <filesize>` | Changes the limit for the log file size to `<filesize>` MB (default = 1024 MB).                                                   | In the background, the data is dumped into logs saved in the `/var/log/cpview/` directory.                                                                                                                                                                                           |
> | `cpview -b -s`                                           | Stops the "`cpview -b`" instance that runs in the background.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
> | `cpview -c <conf_file>`                                  | Loads configuration from the `<conf_file>`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
> | `cpview history {on | off | stat | export}`              | Controls the CPView History daemon (`cpview_historyd`): |----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `on`     | Starts the CPView History daemon.                                                                                                                                                          | | `off`    | Stops the CPView History daemon.                                                                                                                                                           | | `stat`   | Checks whether the CPView History daemon is activated.                                                                                                                                     | | `export` | Exports the History database for archiving purposes only. In R77.30, it is available only when the [R77.30 Jumbo Hotfix](https://support.checkpoint.com/results/sk/sk106162) is installed. | |
> | `cpview -p`                                              | Shows all CPView metrics one time.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
> | `cpview -t <timestamp>`                                  | Shows the content from the active history file: * R80.40 and higher: `$CPDIR/log/cpview_services/cpview_services.dat` * R80.30, R80.20, R80.10, and R77.30: `/var/log/CPView_history/CPViewDB.dat` Shows either the oldest available content, or from a given `<timestamp>`, where `<timestamp>` format is: `[Jan...Dec] [01...31] [4-digit Year] [hh:mm:ss]`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |

Show / Hide the syntax for Security Gateway R77 only / Security Management Server R77 and higher / Multi-Domain Security Management Server R77.20, R77.10, and R77 only  
>
> |-----------------------------------------------------------------|
> | `cpview`                                                        |
> | `cpview --help`                                                 |
> | `cpview cpview -b [-t <sec> [-i <count>] [-j] [-l <filesize>]]` |
> | `cpview -b -s`                                                  |
> | `cpview -c <conf_file>`                                         |
> | `cpview -d`                                                     |
> | `cpview -p`                                                     |
>
> Where:
> Shows the built-in help and exits.
>
> |----------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
> | Command                                                  | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
> | `cpview`                                                 | Opens the interactive tool interface.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
> | `cpview --help`                                          | Shows the built-in help and exits.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
> | `cpview -c <conf_file>`                                  | Loads configuration from the `<conf_file>`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
> | `cpview -d`                                              | Turns on the CPView debug.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
> | `cpview -b [-t <sec> [-i <count>] [-j] [-l <filesize>]]` | Shows the batch statistics data. |-----------------|---------------------------------------------------------------------------------------------------------------------------------------| | `-t <sec>`      | Sets the time interval to `<sec>` seconds before the new dump information is generated. The value of `<sec>` must be greater than 30. | | `-i <count>`    | Limits the dump information to `<count>` times.                                                                                       | | `-j`            | Compresses the generated logs after you run the "`cpview -b -s`" command to stop the instance.                                        | | `-l <filesize>` | Changes the limit for the log file size to `<filesize>` MB (default = 1024 MB).                                                       | In the background, data is dumped into logs saved in the `/var/log/cpview/` directory. |
> | `cpview -b -s`                                           | Stops the "`cpview -b`" instance that runs in the background.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
> | `cpview -p`                                              | Shows all CPView metrics one time.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |

(4) Usage {#Usage}
------------------

Show / Hide this section  
* The CPView interface has these sections:

  |------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | Section    | Description                                                                                                                                                                       |
  | Header     | Shows the time the statistics shown in the third section (view) were gathered. It is updated every time the statistics are refreshed.                                             |
  | Navigation | Navigation menus. This bar is interactive. Move between menus using the arrow keys and the mouse. A menu can have sub-menus, which are shown in a bar below the current menu bar. |
  | View       | This section shows the statistics that are gathered in the specific view. These statistics update at an adjustable refresh rate (default refresh rate is 2 seconds).              |

* Navigation in the CPView interface:

  |------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | Key        | Description                                                                                                                                                                              |
  | Arrow keys | Moves between menus and views and scroll in a view.                                                                                                                                      |
  | Tab        | Goes to the next view (to the right) in the menu. Even in the view mode.                                                                                                                 |
  | Shift+Tab  | Goes to the next view (to the left) in the menu. Even in the view mode.                                                                                                                  |
  | Home       | Returns to the Overview view.                                                                                                                                                            |
  | Enter      | Switches to the view mode. If currently on a menu with sub-menus, changes focus to the lowest sub-menu to see its views.                                                                 |
  | Esc        | Returns to the menu mode.                                                                                                                                                                |
  | Q          | Quits CPView.                                                                                                                                                                            |
  | M          | Enables and disables the navigation with the mouse.                                                                                                                                      |
  | T          | In the History mode only (`cpview {-t | --history}`): Prompts for the timestamp, to which you wish to move.                                                                              |
  | +          | In the History mode only (`cpview {-t | --history}`): Goes to the next timestamp. The next timestamp is equal to the current timestamp plus the refresh rate (see the "R" key).          |
  | -          | In the History mode only (`cpview {-t | --history}`): Goes to the previous timestamp. The previous timestamp is equal to the current timestamp minus the refresh rate (see the "R" key). |

* Changing the CPView interface:

  |-------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | Key   | Description                                                                                                                                                                                                                                  |
  | R     | Configures the refresh rate (in seconds): * In the History mode, set the rate for database snapshots, between 60.0 and 86400.0 (default = 60) * In other modes, set the interval for data collection, between 0.1 and 86400.0 (default = 2). |
  | Space | Immediately refreshes the statistics in the current view.                                                                                                                                                                                    |
  | W     | Switches between the wide display mode and normal display mode. In the wide display mode, CPView stretches to fit the entire screen horizontally.                                                                                            |
  | S     | Configures set the number or rows and columns in the output.                                                                                                                                                                                 |
  | P     | Pauses and resumes the collection of statistics.                                                                                                                                                                                             |

* Additional operations in the CPView interface:

  |-----|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | Key | Description                                                                                                                                                                                                                |
  | H   | Shows the built-in help with the CPView options.                                                                                                                                                                           |
  | C   | Saves the current page to a file in the current working directory. The file name format is: `cpview_<PID of CPView process>.cap<Number of Capture>` Example: ``` cpview_20969.cap0 cpview_20969.cap1 cpview_20969.cap2 ``` |

* The CPView Utility functionality is provided through the shell script `/bin/cpview_start.sh`, which calls the main daemon `cpviewd`

  * In R76SP.50, R77.30, and higher:

    * `$CPDIR/bin/cpviewd`
  * In R77.20, R77.10, and R77:

    * `$FWDIR/bin/cpviewd`
    * `$CPDIR/bin/cpview_historyd`  
      (the history daemon on Security Gateway, if the history mode is set to "on")
* The CPView Utility saves its logs messages in these files:

  Enter the string to filter this table:

  |-------------------|-----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------|
  | Version           | Log File                                                                          | Description                                                                           |
  | R82 and higher    | `$CPDIR/log/cpviewd.elg*`                                                         | Log file for the CPView Utility                                                       |
  | R82 and higher    | `$CPDIR/log/cpview_api_service.elg*` `$CPDIR/log/cpview_api_service.elg.vs<VSID>` | Log file for the CPView Utility API Service                                           |
  | R82 and higher    | `$CPDIR/log/cpview_controller.log`                                                | Log file for the CPView Controller                                                    |
  | R81.20 and lower  | `$CPDIR/log/cpwd.elg`                                                             | Log file for the CPView Utility (about the start and the stop)                        |
  | R80.30 and higher | `$CPDIR/log/cpview_services.elg`                                                  | Log file for the CPView Utility Service on a Management Server and a Security Gateway |
  | R80.30 and higher | `$CPDIR/log/cpview_services.elg.<VSID>`                                           | Log file for the CPView Utility Service on a VSX Gateway                              |
  | R77.30 - R80.20   | `$CPDIR/log/hservice.elg`                                                         | Log file for the CPView Utility Service on a Management Server and a Security Gateway |
  | R77.30 - R80.20   | `$CPDIR/log/hservice.elg.<VSID>`                                                  | Log file for the CPView Utility Service on a VSX Gateway                              |

  {#Unique_ID_Log_FilesTable}
* Output of the "`cpwd_admin list`" command shows the CPView Utility as "`CPVIEWD`".

  > *Example:*
  >
  > ```
  > [Expert@HostName]# cpwd_admin list | grep -E "PID|CPVIEWD"
  > APP        PID    STAT  #START  START_TIME             MON  COMMAND
  > CPVIEWD    9732   E     1       [10:43:08] 12/1/2015   N    cpviewd
  > ```

* Output of the "`cpwd_admin list`" command shows the CPView Utility API Service daemon as "`CVIEWAPIS`".

  > *Example:*
  >
  > ```
  > [Expert@HostName]# cpwd_admin list | grep -E "PID|CVIEWAPIS"
  > APP        PID    STAT  #START  START_TIME             MON  COMMAND
  > CVIEWAPIS  12690  E     1       [10:45:46] 3/11/2024   N    cpview_api_service
  > ```

* Output of the "`cpwd_admin list`" command shows the CPView Utility History Daemon as "`HISTORYD`" (use the "`cpview history {on | off | stat}`" commands).

  > *Example:*
  >
  > ```
  > [Expert@HostName]# cpwd_admin list | grep -E "PID|HISTORYD"
  > APP        PID    STAT  #START  START_TIME             MON  COMMAND
  > HISTORYD   8792   E     1       [10:42:05] 12/1/2015   N    cpview_historyd
  > ```

* To restart the CPView Utility ("`cpviewd`") using the "`cpwd_admin`" command:

  1. Stop the CPView Utility ("`cpviewd`"):

     `[Expert@HostName]# cpwd_admin stop -name CPVIEWD`
  2. Turn off the CPview service / history daemon:

     * On R80.30 and higher, run:

       `[Expert@Hostname]# cpview -s off`
     * On R80.20 and lower, run:

       `[Expert@Hostname]# cpview history off`
  3. Start the CPView Utility ("`cpviewd`"):

     * On R76SP.50, R77.30 and higher, run:

       `[Expert@HostName]# cpwd_admin start -name CPVIEWD -path "$CPDIR/bin/cpviewd" -command "cpviewd"`
     * On R77.20, R77.10, and R77, run:

       `[Expert@HostName]# cpwd_admin start -name CPVIEWD -path "$FWDIR/bin/cpviewd" -command "cpviewd"`
  4. Turn on the CPview service / history daemon:

     * On R80.30 and higher, run:

       `[Expert@Hostname]# cpview -s on`
     * On R80.20 and lower, run:

       `[Expert@Hostname]# cpview history on`

(5) Limitations {#Limitations}
------------------------------

Show / Hide this section  
> Enter the string to filter this table:
>
> |------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
> | Configuration / View                                                                                                         | Limitations                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
> | All servers running Gaia OS                                                                                                  | * When the `cpview` command is executed several times in parallel (for example when 2 or more administrators are running it in parallel), data inconsistency may occur. Example: data is zeroed every few seconds. * In R82 and higher (known limitation PMTR-109559): If you query the CPView Utility (in CLI or with API) immediately after a reboot, then it might take several minutes before it returns data. This is because it takes time for the relevant processes and database to initialize.                                                                                                                                                                                                                                                               |
> | Security Gateway                                                                                                             | * When the CoreXL Dynamic Balancing is enabled, the "`CPU`" \> "`Overview`" \> "`Host`" page (in a real-time output and in the CPView History output) might show "`N/A`" for a short period instead of some CPUs (known limitation PMTR-93913). * In the History Mode, the "`CPU`" \> "`Top-Connections`" \> "`Instances0-<Number>`" section shows data only for CoreXL Firewall instances 0, 1, and 2 (known limitation PMTR-125381 - also applies to a VSX Gateway). * History Mode is **not** supported in R77 GA (feature was added only in R77.10). * History Mode is **not** supported in R76SP.50 (GA Take 84).                                                                                                                                                |
> | VSX Gateway                                                                                                                  | * When running the "`cpview`" command in Gaia Clish, the CPView shows only partial data in Virtual System contexts other than VS0 (the VSX Gateway). To see all data for a Virtual System context in the CPView: 1. Connect to the command line on the VSX Gateway. 2. Log in to the Expert mode. 3. Go to the relevant Virtual System context: `vsenv <VS ID>` 4. Run the CPView: `cpview` * Virtual Systems in Bridge mode are not supported. * R80.30 and lower versions: The History Mode is **not** fully supported - only the information from the context of VSX Gateway itself (VS0) is recorded. * R77.20 and lower versions: The "`SysInfo`" tab always shows "`Platform Gaia 32Bit`", even when running 64-bit kernel (this issue was resolved in R77.30). |
> | Security Management Server (does not apply to StandAlone)                                                                    | * History Mode is **not** supported. This is by design.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
> | Multi-Domain Security Management Server                                                                                      | * Refer to Supported Deployments for the supported Multi-Domain Server deployments.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
> | Scalable Platforms: * ElasticXL (R82 and higher) * Quantum Maestro (R80.20SP and higher) * Scalable Chassis (R80.20SP - R82) | * "`SysInfo`" tab \> the "`Hardware Information`" section \> the "`HW Model`" field may show an incorrect model - for example, "`Open Server`" (known limitation CPDIAG-2760). * "`Network`" tab \> "`Interfaces`" tab \> \> "`Traffic`" tab does not show these interfaces (known limitation PMTR-117699 that was resolved in R82.10 and R82 Jumbo Hotfix Take 44): * Backplane interfaces: BPEth0, BPEth1 * Sync interfaces: Sync, eth1-Sync, eth2-Sync, eth3-Sync, eth4-Sync * Chassis Internal Network (CIN) interfaces: eth1-CIN, eth2-CIN, eth3-CIN, eth4-CIN                                                                                                                                                                                                   |
> | The "`Top Protocols`" view shows "`TCP:1024`" as a high use protocol/service                                                 | * This is by design. "`TCP:1024`" represents all TCP high ports - TCP ports above 1024.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
> | Gaia Embedded OS                                                                                                             | * Only Quantum Spark appliances that run the firmware versions R81.10.x and higher are supported.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
> | X-Series XOS                                                                                                                 | * X-Series appliances are **not** supported.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
> | CPView History file that was collected on another machine                                                                    | * The time presented in the CPview history is according to the time/timezone of the *target* server, on which you open the CPview history file. If you need to see the exact timestamps of the source machine, then before loading the source CPView history data, change the timezone on your target machine to match the timezone of the source machine.                                                                                                                                                                                                                                                                                                                                                                                                            |
> | Screen colors in SSH Client                                                                                                  | * Some SSH clients support the customizations of the screen colors. Because CPView uses escape characters to create graphic effects, you should not change the screen colors in your SSH client.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |

> {#Unique_ID_LimitationsTable}

(6) Notes {#Notes}
------------------

Show / Hide this section  
* The History database is saved in:

  |------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|
  | Version                            | Location                                                                                                                                                                                                                                                            | Note                                                                           |
  | R80.40 and higher                  | Main active history file: `$CPDIR/log/cpview_services/cpview_services.dat` Rotated history files (used to store older or rotated segments of the history database): `$CPDIR/log/cpview_services/CPViewDB.dat` `$CPDIR/log/cpview_services/CPViewDB_<timestamp>.dat` | To view the data in this database, use this command: `cpview -t [<Timestamp>]` |
  | R80.30, R80.20, R80.10, and R77.30 | Main active history file: `/var/log/CPView_history/CPViewDB.dat` Rotated history file (used to store older or rotated segments of the history database): `/var/log/CPView_history/CPViewDB_<timestamp>.dat`                                                         | To view the data in this database, use this command: `cpview -t [<Timestamp>]` |

* The History Mode saves the data for 30 days.

  **Best Practice** - Delete old `CPViewDB_<timestamp>.dat` files to make sure they do not take to much of the disk space.
* Throughput displayed in Gaia Portal is much higher (approximately twice as much) than the throughput displayed in the CPView Utility.

  * CPView Utility \> **Overview** tab \> section **Network** (in R77.30 and lower versions, section **Traffic counters** ) \> counter **Bits/sec** (in R77.30 and lower versions, counter **Throughput**).

    CPView gets the throughput data directly from the hardware.  
    The total throughput is a sum of all throughput counters in each FireWall path (Fast Path, Medium Path, and Slow Path).
  * Gaia Portal \> **Overview** page \> widget **Throughput**.

    The throughput data is a sum of **both** Incoming traffic **and** Outgoing traffic (sum of the RX packets and TX packets from `/proc/net/dev`).  
    Packets are counted form all interfaces.  
    If a packet passes through the Slow Path (F2F), it is counted twice.

  Example screenshot from R82:

  ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk101878/Screenshot_R82_202412011728431.png)

  Example screenshot from R77.30:

  ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk101878/throughput_example.png)
* By default, CPView \> **Advanced** tab \> **NAT** tab \> **Pool-IPv4** / **Pool-IPv6** tab) shows Hide NAT statistics only for top 3 NAT IP Pools.

  You can configure CPView to show Hide NAT statistics for up to 200 top NAT IP Pools. For more details, see [sk156852](https://support.checkpoint.com/results/sk/sk156852) \> section "*How to review the statistics of the NAT pools in CPView*".

  Prerequisite:
  * R82.10 or higher (PMTR-113641)

  * R82 Jumbo Hotfix Accumulator, Take 25 or higher (PRJ-60049)

  * R81.20 Jumbo Hotfix Accumulator, Take 101 or higher (PRJ-60048)

  Procedure:
  1. Connect to the command line on the Security Gateway / each Cluster Member / Scalable Platform Security Group.

  2. Log in.

  3. Permanently configure the required number of top NAT IP Pools to show with this command:

     `fw ctl set -f int fwx_alloc_top_pools_num <Integer from 1 to 200>`

     Note - This command applies immediately and survives reboot.

(7) What's New {#Whats_New}
---------------------------

Show / Hide this section  
>
> |-----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
> | Version   | What's New                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
> | R82.10    | * Ability to show Hide NAT statistics for up to 200 top NAT IP Pools (see the section "(6) Notes" above).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
> | R82       | * Additional CLI options. * Shows additional metrics.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
> | R81.20    | * In the '`CPU`' category, the new tab '`Processes`' (shows top 5 processes by their CPU and RAM utilization). * In the '`Advanced`' category, the new tab '`Logging`'.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
> | R81.10.00 | Added support for the CPView utility on Quantum Spark appliances.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
> | R81.10    | Added the option to disable CPView and enable it again from the command line: * To disable CPView, run in the Expert mode: `kill -SIGUSR1 $(pidof cpviewd)` * To enable the CPView again, run in the Expert mode: `cpviewd enable`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
> | R80.30    | The syntax to work with the history database was changed from "`cpview -t <timestamp>`" to "`cpview -t`": 1. Run: `cpview -t` 2. In the CPView history, press the "**t**" key. 3. Enter the applicable date and time and press Enter.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
> | R80.10    | New view in CPView - Mail Statistics related to Threat Emulation MTA: * Number of e-mails in MTA queue (`Software-blades` \> `Threat-Emulation` \> `MTA` \> `Queues`) * Mails Received / Processed / Modified / Deferred / Blocked / Skipped / Failed (`Software-blades` \> `Threat-Emulation` \> `MTA` \> `Monitoring`) For details, refer to [sk109699 - ATRG: Mail Transfer Agent (MTA)](https://support.checkpoint.com/results/sk/sk109699) section "(7) CPView integration".                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
> | R77.30    | New views in CPView for more accurate and detailed analysis on a Security Gateway: * Top protocols by throughput (`Network` \> `Top-Protocols`) * Top connections by throughput (`Network` \> `Top-Connections`) * Top protocols by CPU (`I/S` \> `CPU` \> `Top-Protocols`) * Top connections by CPU (`I/S` \> `CPU` \> `Top-Connections`) Note: The mode of the Firewall Priority Queues on Security Gateway should be set to "1" (*CPU Connections Statistics* ) - refer to [sk105762](https://support.checkpoint.com/results/sk/sk105762#Monitoring - Evaluation of Heavy Connections) \> section "(IV-B) Monitoring - Evaluation of Heavy Connections" * Software-blades package updates information (`Software-blades` \> `Overview`) - shows information on last update time and package number for IPS, Anti-Virus, Anti-Bot, and Application Control blades. * Threat-Extraction blade overview (`Software-blades` \> `Threat-Extraction`) * CPView daemon "`cpviewd`" was moved from `$FWDIR/bin/` to `$CPDIR/bin/` |

(8) Logging Metrics {#Logging_Metrics}
--------------------------------------

Show / Hide this section  
> This feature is available in:
>
> * [R81.20](https://support.checkpoint.com/results/sk/sk173903) and above
> * [R81.10 Jumbo Hotfix Accumulator](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81.10/Default.htm), Take 82 and above
> * [R81 Jumbo Hotfix Accumulator](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81/Default.htm), Take 82 and above
> * [R80.40 Jumbo Hotfix Accumulator](https://sc1.checkpoint.com/documents/Jumbo_HFA/R80.40/Default.htm), Take 196 and above
>
> #### Output on a Management Server
>
> > **Note** - In a Global Domain of a Multi-Domain Security Management Server, the "**Log-Rates** " and "**Indexer-Rates** " tabs show an aggregation of the rates from other Domains. The "**Exporter-Rates**" tab shows the data for the Global Domain only.
> >
> > **Advanced** \> **Logging** \> **Log-Rates**
> >
> > |--------------------------------------------|----------|------------------|----------------------------------------------------------------------------------------------|
> > | **Metric**                                 | **Type** | **Refresh Rate** | **Comment**                                                                                  |
> > | Log Receive Rate (Log Rate)                | Number   | 10 seconds       | Average log rate received by a Log Server.                                                   |
> > | Log Receive Rate Last 10 Minutes           | Number   | 10 minutes       | Average log rate received by a Log Server during the last 10 minutes.                        |
> > | Log Receive Rate 1 Hour                    | Number   | 1 hour           | Average log rate received by a Log Server during the last 1 hour.                            |
> > | Log Receive Rate Peak (Since last restart) | Number   | 10 seconds       | Peak average log rate received by a Log Server since the last start of Check Point services. |
> >
> > **Advanced** \> **Logging** \> **Indexer-Rates**
> >
> > |-------------------|----------|------------------|-----------------------------------------------------------|
> > | **Metric**        | **Type** | **Refresh Rate** | **Comment**                                               |
> > | Log Reading Rate  | Number   | 10 seconds       | Average number of received logs by an Indexer per second. |
> > | Log Indexing Rate | Number   | 10 seconds       | Average number of indexed logs by an Indexer per second.  |
> >
> > **Advanced** \> **Logging** \> **Exporter-Rates**
> >
> > |--------------------|----------|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
> > | **Metric**         | **Type** | **Refresh Rate** | **Comment**                                                                                                                                                                                                                                                                                                             |
> > | Name               | Text     | 10 seconds       | Name of a configured Log Exporter instance                                                                                                                                                                                                                                                                              |
> > | Log Exporting Rate | Number   | 10 seconds       | Average number of exported logs                                                                                                                                                                                                                                                                                         |
> > | Status             | Text     | 10 seconds       | Exporter status for Log Sharing (LAAS Exporter): * Capped - Indicates that the exporter is unable to send logs to DataTube. * Enabled (for Log Sharing) - indicates that the exporter is actively sends logs to DataTube. * Enabled (For other Log Exporters) - indicates that an exporter is configured in the system. |
>
> #### Output on a Security Gateway
>
> > **Advanced** \> **Logging** \> **Log-Rates**
> >
> > |--------------------|----------|------------------|---------------------------------------------------------------------------------------------------|
> > | **Metric**         | **Type** | **Refresh Rate** | **Comment**                                                                                       |
> > | Generated Log Rate | Number   | 10 seconds       | Average number of logs being generated by this Security Gateway / Cluster Member per second.      |
> > | Local Logging Rate | Number   | 10 seconds       | Average number of logs being saved locally by this Security Gateway / Cluster Member per second.  |
> > | IP                 | Text     | 10 seconds       | IP address of a Log Server, to which this Security Gateway / Cluster Member sends its logs.       |
> > | Log Sending Rate   | Number   | 10 seconds       | Average number of logs this Security Gateway / Cluster Member sends to its Log Server per second. |

(9) Troubleshooting {#Troubleshooting}
--------------------------------------

Show / Hide this section  
>
> |---|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
> | # | Symptoms                                                                                                                                                                                | Root Cause                                                                                                                                                                                                                            | Next Steps                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
> | 1 | Output of the "`cpview -t`" command only shows "`CPView: History is initializing`". Example Output: ``` [Expert@MyGW:0]# cpview -t CPView: History is initializing [Expert@MyGW:0]# ``` | Very old history database. CPView service searches for the most recent timestamp in the history database when it starts. A very old history database might cause this query to fail. As a result, CPView service might fail to start. | If a listed troubleshooting step does not help, proceed to the next one. 1. Make sure the `/var/log` partition is not full: `[Expert@MyGW:0]# df -h` If it is full, then delete (transfer to an external storage) all unnecessary files. 2. Restart the CPView service: `[Expert@MyGW:0]# cpview -s off` `[Expert@MyGW:0]# cpview -s on` `[Expert@MyGW:0]# cpview -s stat` 3. Remove the current history database: 1. Stop the CPView service: `[Expert@MyGW:0]# cpview -s off` 2. Back up the current history database: `[Expert@MyGW:0]# mkdir -v /var/log/cpview_history_database` `[Expert@MyGW:0]# mv -v $CPDIR/log/cpview_services/* /var/log/cpview_history_database` 3. Start the CPView service: `[Expert@MyGW:0]# cpview -s on` `[Expert@MyGW:0]# cpview -s stat` |

(10) Related Solutions {#Related_Solutions}
-------------------------------------------

* [sk103496 - Number of concurrent connections shown in CPView Utility depends on the status of SecureXL](https://support.checkpoint.com/results/sk/sk103496)
* [sk98955 - When running CPView, the output in the "I/S - CPU - Contexts" section is empty](https://support.checkpoint.com/results/sk/sk98955)
* [sk116876 - Meaning of protocol 'TCP:1024' in CPView](https://support.checkpoint.com/results/sk/sk116876)
* [sk163804 - The "cpview -t \[Jan...Dec\] \[01...31\] \[4-digit Year\] \[hh:mm:ss\]" command does not result in the date and time specified by the user in R80.30 and higher](https://support.checkpoint.com/results/sk/sk163804)
* [sk97443 - Support Debug Tools](https://support.checkpoint.com/results/sk/sk97443)

---

# 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
