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.
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)- A3% (1)
- B3% (1)
- C90% (27)
- D3% (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.
'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.
'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.
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.
'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
Community Discussion
No community discussion yet for this question.