NSE4 · Question #300
What are examples of correct syntax for the session table diagnostics command? (Choose two.)
The correct answer is A. diagnose sys session filter clear C. diagnose sys session filter. Correct FortiGate CLI syntax for session table diagnostics includes clearing active filters and displaying the currently configured filter settings.
Question
What are examples of correct syntax for the session table diagnostics command? (Choose two.)
Options
- Adiagnose sys session filter clear
- Bdiagnose sys session src 10.0.1.254
- Cdiagnose sys session filter
- Ddiagnose sys session filter list dst.
How the community answered
(42 responses)- A90% (38)
- B5% (2)
- D5% (2)
Why each option
Correct FortiGate CLI syntax for session table diagnostics includes clearing active filters and displaying the currently configured filter settings.
The command `diagnose sys session filter clear` is a valid syntax used to remove all active filters from the session table, allowing a full view of all sessions.
The syntax `diagnose sys session src 10.0.1.254` is incorrect for setting a source IP filter; the correct syntax would be `diagnose sys session filter set src 10.0.1.254`.
The command `diagnose sys session filter` (without additional arguments) is a valid syntax used to display the currently configured filter settings for the session table.
The syntax `diagnose sys session filter list dst.` is incorrect. To list sessions with a filter applied, it would typically be `diagnose sys session list`, and `dst.` is not a valid parameter directly following `filter list` to set a filter.
Concept tested: FortiGate session filter CLI commands
Source: https://docs.fortinet.com/document/fortigate/7.4.0/fortios-cli-reference/853040/diagnose-sys-session-filter
Topics
Community Discussion
No community discussion yet for this question.