Kernel Debug Syntax

Description

During a kernel debug session, Security GatewayClosed Dedicated Check Point server that runs Check Point software to inspect traffic and enforce Security Policies for connected network resources. / Cluster MemberClosed Security Gateway that is part of a cluster. / Scalable Platform Security Group MemberClosed 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.

Important:

Action Plan to Collect a Kernel Debug

Note - See the Kernel Debug Procedure, or the Kernel Debug Procedure with Connection Life Cycle.

Step

Action

Instructions

1

Configure the applicable debug settings:

  1. Restore the default settings.

  2. Allocate the debug buffer.

In this step, you prepare the kernel debug options:

  1. Restore the default debug settings, so that any other debug settings do not interfere with the kernel debug.

  2. Allocate the kernel debug buffer, in which Security Gateway / Cluster Member / each Security Group Member holds the applicable debug messages.

2

Configure the applicable kernel debug modules and their debug flags.

In this step, you prepare the applicable kernel debug modules and their debug flags, so that Security Gateway / Cluster Member / each Security Group Member collects only applicable debug messages.

3

Start the collection of the kernel debug into an output file.

In this step, you configure Security Gateway / Cluster Member / each Security Group Member to write the debug messages from the kernel debug buffer into an output file.

4

Stop the kernel debug.

In this step, you configure Security Gateway / Cluster Member / each Security Group Member to stop writing the debug messages into an output file.

5

Restore the default kernel debug settings.

In this step, you restore the default kernel debug options.

CLI Syntax

Notes:

Important - To run these commands in the Expert mode on a Scalable Platform Security Group, you must use the "g_fw ctl ..." command instead of the "fw ctl ..." command.

General syntax for the 'fw ctl debug' command (configuring the kernel debug modules and debug flags)

fw ctl debug

      [-h]

      [0 | -x]

      [-buf 8200]

      [-v {"<List of VSIDs>" | all} -k]

      [-d "<Strings to Search>"]

      [-s "<String to Stop Debug>"]

      [-F "<Source IP>,<Source Port>,<Dest IP>,<Dest Port>,<Protocol Number>"]

      [-H "<IP Address>"]

      [-e "<Expression>" | -i {<Path to Filter File> | -} | -u]

      [-z]

      -m <Name of Debug Module> {all | [+|-] <List of Debug Flags>}

General syntax for the 'fw ctl kdebug' command (configuring the kernel debug output)

fw ctl kdebug

      [-h]

      [-v {"<List of VSIDs>" | all} -k]

      [-p <List of Fields>]

      [-T | -t]

      [-f]

      -o /<Path>/<Name of Output File>

            [-m <Number of Cyclic Files> [-s <Size of Each Cyclic File in KB>]]

CLI Parameters