Technical Tip: How to move NAC policies via CLI
| Description | This article describes how to change the order of the NAC-policies by using the CLI. |
| Scope | FortiOS. |
| Solution | In cases where the GUI cannot be used, the NAC policies order can be modified via CLI by using the commands: 'move <policy-name> before <policy name>' and 'move <policy-name> after <policy name>'.
For example to move NAC policy test1 under test3 the commend move "test1" after "test3" can be used:
FGT (nac-policy) # show config user nac-policy edit "test1" set switch-fortilink "fortilink" next edit "test2" set switch-fortilink "fortilink" next edit "test3" set switch-fortilink "fortilink" next end FGT (nac-policy) # move "test1" after "test3" FGT (nac-policy) # show config user nac-policy edit "test2" set switch-fortilink "fortilink" next edit "test3" set switch-fortilink "fortilink" next edit "test1" set switch-fortilink "fortilink" next end |
