nerdexam
Network_Appliance

NS0-157 · Question #377

What is the command to start recording the current CLI session into a file?

The correct answer is C. system script start. In FortiOS, the correct CLI command to begin recording the current session to a file is 'execute system script start', capturing all subsequent commands and output.

Core Cluster-Mode Configuration

Question

What is the command to start recording the current CLI session into a file?

Options

  • Asystem cli record
  • Bsystem script record
  • Csystem script start
  • Dsystem record start

How the community answered

(30 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    90% (27)
  • D
    3% (1)

Why each option

In FortiOS, the correct CLI command to begin recording the current session to a file is 'execute system script start', capturing all subsequent commands and output.

Asystem cli record

'system cli record' is not a valid FortiOS command; 'cli' is not a recognized sub-keyword in the execute system command path for session recording.

Bsystem script record

'system script record' uses the wrong action keyword; 'record' is not the valid verb in this command - 'start' is required to initiate a script capture session.

Csystem script startCorrect

The FortiOS CLI uses 'execute system script start <filename>' to initiate session recording into a file on the device. The keyword order must follow 'system script start' exactly - 'system' identifies the subsystem, 'script' identifies the script management function, and 'start' triggers the recording action.

Dsystem record start

'system record start' incorrectly places 'record' as the sub-command, which does not exist in the FortiOS CLI hierarchy for this function.

Concept tested: FortiOS CLI session recording command syntax

Source: https://docs.fortinet.com/document/fortigate/7.4.0/cli-reference/707620/execute-system-script

Topics

#CLI recording#system script#session logging#CLI commands

Community Discussion

No community discussion yet for this question.

Full NS0-157 Practice