Created on 07-09-2019 06:18 AM Edited on 08-08-2024 05:16 AM By Jean-Philippe_P
Description
This article describes how to see what CLI syntax would correspond to GUI changes.
Solution
FortiGates can modify settings via GUI and CLI. When changes are made via GUI, the following allows visibility on what CLI syntax would have the same effect:
diagnose debug cli 7
diagnose debug enable
An SSH/telnet terminal connected to the FortiGate will print any GUI changes as CLI syntax.
This allows gathering additional information on how to perform changes via CLI and provides more insight into what changes are made via GUI.
Note: For an expanded output that shows the corresponding CLI commands and the changes at the system level, use the below commands:
diag debug cli 8
diag debug enable
Below are sample screenshots of the GUI change and the 'diag debug cli 8 output' for adding an IP address and administrative access protocols to port2.
To disable the debug, use the following commands:
diag debug disable
diag debug reset
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.