Fortigate: Difference between revisions

From roonics
Jump to navigation Jump to search
Line 60: Line 60:
|-
|-
|show sys int || Show interfaces status <br>Sh sys int ? will show a summary
|show sys int || Show interfaces status <br>Sh sys int ? will show a summary
|-
|config sys interface<br>  
|config sys interface<br>  
edit port1<br>
edit port1<br>
Line 65: Line 66:
set allowaccess ssh ping<br>
set allowaccess ssh ping<br>
end || Basic interface ip configuration
end || Basic interface ip configuration
|-
|diag netlink device list || Show interfaces statistics (errors)
|diag netlink device list || Show interfaces statistics (errors)
|-
|get hardware nic port1 || Show interfaces statistics
|get hardware nic port1 || Show interfaces statistics
|-
|-

Revision as of 13:38, 12 March 2019

Fortigate

Command Cheet sheet

Cheet sheet created by By Frederic Kasmirczak (http://www.frederick.lu), I just simply converted it to a wiki for copy and paste easiness.

Main Command Structure
Command Description
show Display changes to the default configuration
get List the configuration of the current object or table
edit Create or edit a table in the current object
edit 0 will use the next ID available in a sequence number
set Set a filed / Reset a field to the default value
end Save the current changes
abort Exit commands without saving the fields
delete Remove a table from the current object
Basic
Command Description
get sys status Show status summary
get sys perf stat Show Fortigate ressources summary
execute ping Ping something
execute shutdown Shutdown the device/reboot with reboot
get sys arp Show the current arp table
execute date/time Show the current date / time
delete Remove a table from the current object
Interface
Command Description
show sys int Show interfaces status
Sh sys int ? will show a summary
config sys interface

edit port1
set ip x.x.x.x/y.y
set allowaccess ssh ping
end || Basic interface ip configuration

diag netlink device list Show interfaces statistics (errors)
get hardware nic port1 Show interfaces statistics

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