Kernel Debug Syntax
Description
During a kernel debug session, Security Gateway
Dedicated Check Point server that runs Check Point software to inspect traffic and enforce Security Policies for connected network resources. / Cluster Member
Security Gateway that is part of a cluster. / Scalable Platform Security Group Member
Member of a Security Group in ElasticXL Cluster, Maestro, and Scalable Chassis. Acronym: SGM. prints special debug messages that help Check Point Support and R&D understand how it processes the applicable connections.
Action Plan to Collect a Kernel Debug
|
|
Note - See the Kernel Debug Procedure, or the Kernel Debug Procedure with Connection Life Cycle. |
CLI Syntax
|
|
Notes:
|
|
|
Important - To run these commands in the Expert mode on a Scalable Platform Security Group, you must use the " |
General syntax for the 'fw ctl debug' command (configuring the kernel debug modules and debug flags)
|
|
General syntax for the 'fw ctl kdebug' command (configuring the kernel debug output)
|
|
-
Built-in help for configuring the Kernel Debug:
fw ctl debug -h -
Built-in help for output of the Legacy Kernel Debug:
fw ctl kdebug -h
-
To reset all debug flags and enable only the default debug flags in all kernel modules:
fw ctl debug 0 -
To disable all debug flags including the default flags in all kernel modules:
Best Practice - Do not run this command, because it disables even the basic default debug messages.
As a result, the
/var/log/messagesfile will not contain this basic useful information.fw ctl debug -x
-
To allocate the kernel debug buffer in the 'Gateway' mode:
fw ctl debug -buf 8200 -
To allocate the kernel debug buffer in the 'VSX
Virtual System Extension. Check Point virtual networking solution, hosted on a computer or cluster with virtual abstractions of Check Point Security Gateways and other network devices. These Virtual Devices provide the same functionality as their physical counterparts.' mode:fw ctl debug -buf 8200 -v {"<List of VSIDs>" | all} -k
-
General syntax:
fw ctl debug [-v {"<List of VSIDs>" | all} -k] [-z] -m <Name of Debug Module> {all | [+|-] <List of Debug Flags>} -
To see a list of all debug modules and their flags:
Note - The list of kernel modules depends on the Software Blades you enabled on the Security Gateway / ClusterXL / Security Group.
fw ctl debug -m -
To see a list of debug flags that are already enabled:
fw ctl debug -
To enable all debug flags in the specified kernel module:
fw ctl debug -m <Name of Debug Module> all -
To enable only the specified debug flags in the specified kernel module in addition to already enabled debug flags:
fw ctl debug -m <Name of Debug Module> + <List of Debug Flags> -
To enable only the specified debug flags in the specified kernel module and disable all other debug flags:
fw ctl debug -m <Name of Debug Module> + <List of Debug Flags> -
To disable only the specified debug flags in the specified kernel module:
fw ctl debug -m <Name of Debug Module> - <List of Debug Flags>
-
General syntax (only supported parameters are listed):
fw ctl kdebug [-p <List of Fields>] -T -f -o /<Path>/<Name of Output File> [-m <Number of Cyclic Files> -s <Size of Each Cyclic File in KB>] -
To start the collection of the kernel debug into an output file:
fw ctl kdebug -T -f > /<Path>/<Name of Output File> -
To start collecting the kernel debug into cyclic output files:
fw ctl kdebug -T -f -o /<Path>/<Name of Output File> -m <Number of Cyclic Files> -s <Size of Each Cyclic File in KB>
-
General syntax (only supported parameters are listed):
fw ctl kdebug [-p <List of Fields>] -v {"<List of VSIDs>" | all} -k -T -f -o /<Path>/<Name of Output File> [-m <Number of Cyclic Files> -s <Size of Each Cyclic File in KB>] -
To start the collection of the kernel debug into an output file:
fw ctl kdebug -v {"<List of VSIDs>" | all} -k -T -f > /<Path>/<Name of Output File> -
To start collecting the kernel debug into cyclic output files:
fw ctl kdebug -v {"<List of VSIDs>" | all} -k -T -f -o /<Path>/<Name of Output File> -m <Number of Cyclic Files> -s <Size of Each Cyclic File in KB>
CLI Parameters
|
|
Note - Only supported parameters are listed. |
|
Parameter |
Description |
|||||||
|---|---|---|---|---|---|---|---|---|
|
|
Shows the built-in help. |
|||||||
|
|
Controls how to disable the debug flags:
|
|||||||
|
|
Allocates the kernel debug buffer.
|
|||||||
|
|
Specifies the list of Virtual Systems. A VSX Gateway
|
|||||||
|
|
When you specify this parameter, the Security Gateway / Cluster Member / Security Group:
|
|||||||
|
|
When you specify this parameter, the Security Gateway / Cluster Member / Security Group:
|
|||||||
|
|
Specifies the capture filter (for both accelerated and non-accelerated traffic):
|
|||||||
|
|
|
|||||||
|
|
Creates an IP address filter - the debug output will include only connections to or from the specified IP address. For more information, see Kernel Debug Filters. Example - Capture traffic only to and from the Host 1.1.1.1:
|
|||||||
|
|
Specifies the name of the kernel debug module, for which you print or configure the debug flags. To see a list of all debug modules, run: |
|||||||
|
|
Specifies which debug flags to enable or disable in the specified kernel debug module. To see a list of all debug modules and their flags, run: See Kernel Debug Modules and Debug Flags.
|
|||||||
|
|
Specifies the INSPECT filter for the debug:
|
|||||||
|
|
The Security Gateway / Cluster Member / Security Group processes some connections in both SecureXL code and in the Host appliance code (for example, Passive Streaming Library (PSL) - an IPS The Security Gateway / Cluster Member / Security Group processes some connections in only in the Host appliance code. When you use this parameter " |
|||||||
|
|
By default, when the Security Gateway / Cluster Member / Security Group prints the debug messages, these messages start with the applicable CPU ID and CoreXL Firewall instance ID. You can print additional fields in the beginning of each debug message.
|
|||||||
|
|
" "
|
|||||||
|
|
Collects the debug data until you stop the kernel debug in one of these ways:
|
|||||||
|
|
Specifies the path and the name of the debug output file.
|
|||||||
|
|
Saves the collected debug data into cyclic debug output files. When the size of the current " If the " The valid values are:
|