156-587-R81-20 practice question 1 of 25

You need to run a kernel debug over a longer period of time as the problem occurs only once or twice a week Therefore you need to add a timestamp to the kernel debug and write the output to a file. What is the correct syntax for this?

Full set: 109 questions
Answer options
A: fw ctl debug -T -f > filename debug
B: fw ctl kdebug -T -f -o filename debug Correct answer
C: fw ell kdebug -T > filename debug
D: fw ctl kdebug -T -f > filename.debug
Correct Answer:
B. fw ctl kdebug -T -f -o filename debug
Explanation

The correct command to capture kernel debug output is fw ctl kdebug. The -T flag is used to prepend a timestamp to each line of the output, which is essential for long-term analysis. The -f flag flushes and prints the contents of the kernel debug buffer. The -o parameter is the dedicated, officially documented switch to direct the command's output to a specified file. This built-in method is considered more robust for sustained operations compared to shell redirection. The trailing "debug" in the option is a typographical error, as it does not conform to the valid syntax for this command.

Why Incorrect

A. fw ctl debug is not the correct utility for capturing kernel debug buffer output. The fw ctl kdebug command is used for this specific task.
C. This command is missing the -f flag. Without -f, the command only displays the current debug flag settings, it does not print the buffer's content.
D. While using shell redirection (>) can write the output to a file, the -o parameter is the specific, vendor-provided switch designed for this purpose.

References

1. Check Point R81.10 Command Line Interface Reference Guide, Page 265.

The guide documents the fw ctl kdebug command and its parameters. It explicitly lists: [-T] for adding a timestamp, [-f] to flush the debug buffer, and [-o ] to specify the name of the output file. This confirms the components of the correct answer.

2. Check Point Support Center, sk89940: "How to debug 'fw ctl' command".

This official support document provides examples of debugging commands. In the section for kernel debugs, it shows the syntax fw ctl kdebug -T -f -o /tmp/kdebug.txt to dump the kernel debug buffer with a timestamp to a text file, validating the use of the -o switch.

3. Check Point R80.10 Security Gateway Technical Reference Guide, Page 113.

This guide details the syntax for fw ctl kdebug as: fw ctl kdebug [-v] [-T] [-f] [-x] [-o ] [-s ] [-m ]. The description for -o is "Write output to instead of stdout," confirming it as the intended mechanism.

Scroll to Top