Fortigate: Difference between revisions

From roonics
Jump to navigation Jump to search
Line 5: Line 5:
<tr><td>Main command structure</tr></td>
<tr><td>Main command structure</tr></td>
<tr><td>show</td><td>Display changes to the default configuration</td></tr>
<tr><td>show</td><td>Display changes to the default configuration</td></tr>
<tr>get</td><td>List the configuration of the current object or table</td></tr>
<tr><td>get</td><td>List the configuration of the current object or table</td></tr>
<tr>edit</td><td>Create or edit a table in the current object.</td></tr>
<tr><td>edit</td><td>Create or edit a table in the current object.</td></tr>
<tr>edit 0</td><td>will use the next ID available in a sequence number</td></tr>
<tr><td>edit 0</td><td>will use the next ID available in a sequence number</td></tr>
<tr>set/unset</td><td>Set a filed / Reset a field to the default value</td></tr>
<tr><td>set/unset</td><td>Set a filed / Reset a field to the default value</td></tr>
<tr>end</td><td>Save the current changes</td></tr>
<tr><td>end</td><td>Save the current changes</td></tr>
<tr>abort</td><td>Exit commands without saving the fields</td></tr>
<tr><td>abort</td><td>Exit commands without saving the fields</td></tr>
<tr>delete</td><td>Remove a table from the current object</td></tr>
<tr><td>delete</td><td>Remove a table from the current object</td></tr>
</table>
</table>



Revision as of 13:15, 12 March 2019

Fortigate

Command Cheet sheet

Main command structure
showDisplay changes to the default configuration
getList the configuration of the current object or table
editCreate or edit a table in the current object.
edit 0will use the next ID available in a sequence number
set/unsetSet a filed / Reset a field to the default value
endSave the current changes
abortExit commands without saving the fields
deleteRemove a table from the current object

CLI Commands

Force failover

Run this command on the primary node to reset the uptime which should force a HA failover:

diagnose sys ha reset-uptime

HA Checksum

Factory reset

This will wipe the unit and restore it to factory defaults, ensure you have a backup before continuing.

execute factoryreset