Add or modify a configuration
FortiNAC provides the proper login command sequence and final logout or exit commands. Do no include the login commands and logout or exit commands in the CLI.
- Select Network > CLI Configuration.
- To create a new CLI configuration, click Add.
- To modify a CLI configuration, select it from the CLI configuration view and click Modify.
- Right-click in any of the three main text areas for a pop-up menu with editing options: Undo, Cut, Copy, Paste, Delete, and Select All. You can also use Ctrl+x, Ctrl+c, and Ctrl+v to cut, copy, and paste.
- Enter a name for the CLI configuration. This name displays in other parts of the software allowing you to choose and implement this configuration.
- If you plan to use MAC address in your CLI configuration, select the MAC Address Format that is recognized by the device to which you are applying this configuration.
- Click in the Commands To Set field and enter the CLI commands to be stored as a configuration.
If you would like to reverse those commands when the port state or host state changes, go to the Commands To Undo field and enter the appropriate commands. Use Copy to copy commands from Commands To Set to Commands To Undo.
In the event of a device failure or power cycle, changes made by CLI command sets to the device configuration could be lost. FortiNAC will not resend CLI command sets that were sent successfully. It is recommended that you include a command such as,
write mem, in the creation of your CLI command sets to ensure that the most recent configuration is saved on the device.
- Enter a Description of the CLI configuration. This field is not required.
- Click OK to save.