cpstat
Description
Shows the status and statistics information of Check Point applications.
Syntax
|
Parameters
Parameter |
Description |
|
---|---|---|
|
Runs the command in debug mode. Use only if you troubleshoot the command itself. The output shows the SNMP queries and SNMP responses for the applicable SNMP OIDs. |
|
|
Optional. Port number of the Application Monitoring (AMON) server. The default port is 18192. |
|
|
Optional. Secure Internal Communication (SIC) name of the Application Monitoring (AMON) server. |
|
|
Optional. Specifies the type of the information to collect. If you do not specify a flavor explicitly, the command uses the first flavor in the |
|
|
Optional. Specifies the polling interval (in seconds) - how frequently the command collects and shows the information. Examples:
Use this parameter together with the " Example:
|
|
|
Optional. Specifies how many times the command runs and shows the results before it stops. You must use this parameter together with the " Examples:
Example:
|
|
|
Optional. Specifies the time (in seconds), over which the command calculates the statistics. You must use this parameter together with the " You can use this parameter together with the " Example:
|
|
|
Generates the output in the XML format |
|
|
Generates the output in the JSON format |
|
|
Mandatory. See the table below with flavors for the application flags. |
These flavors are available for the application flags:
|
Note - The available flags depend on the enabled Software Blades. |
Return Value
-
0 - success.
-
1 - failure.
Output
-
Success shows the output.
-
Failure shows an appropriate error message.
Example 1
[Expert@HostName]# cpstat -f cpu os CPU User Time (%): 1 CPU System Time (%): 6 CPU Idle Time (%): 93 CPU Usage (%): 7 CPU Queue Length: - CPU Interrupts/Sec: 1625 CPUs Number: 4 [Expert@HostName]# |
Example 2
[Expert@HostName]# cpstat os -f perf Total Virtual Memory (Bytes): 2048765952 Active Virtual Memory (Bytes): 770162204 Total Real Memory (Bytes): 2048765952 Active Real Memory (Bytes): 916725760 Free Real Memory (Bytes): 1132040192 Memory Swaps/Sec: - Memory To Disk Transfers/Sec: - CPU User Time (%): 1 CPU System Time (%): 6 CPU Idle Time (%): 93 CPU Usage (%): 7 CPU Queue Length: - CPU Interrupts/Sec: 1641 CPUs Number: 4 Disk Servicing Read\Write Requests Time: - Disk Requests Queue: - Disk Free Space (%): 83 Disk Total Free Space (Bytes): 52432896 Disk Available Free Space (Bytes): 52432896 Disk Total Space (Bytes): 62914560 [Expert@HostName]# |
Example 3
[Expert@HostName]# cpstat -f default fw Policy name: local Install time: Thu Sep 16 15:44:35 2021 Interface table ------------------------------------------------- |Name |Dir|Total |Accept |Deny |Log | ------------------------------------------------- |WAN |in | 5211524| 5208364| 3160|3499377| |WAN |out| 8388637| 8388336| 301| 0| |LAN1 |in | 0| 0| 0| 0| |LAN1 |out| 0| 0| 0| 0| |LAN3 |in | 0| 0| 0| 0| |LAN3 |out| 0| 0| 0| 0| |LAN1.334|in | 1161| 1161| 0| 2386| |LAN1.334|out| 520| 520| 0| 2534| |LAN1.348|in | 8323376| 8323344| 32| 0| |LAN1.348|out|18681816| 5442172|13239644| 1| ------------------------------------------------- | | |40607034|27363897|13243137|3504298| ------------------------------------------------- Interface table (64-bit) -------------------------------- |Name|Dir|Total|Accept|Deny|Log| -------------------------------- -------------------------------- ISP link table ------------------ |Name|Status|Role| ------------------ ------------------ [Expert@HostName]# |