cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Etc


Reference












.

hardware:fortigate:index.html



Hardware

Fortinet Fortigate CLI Commands

Corporate Site

Fortigate Command

Check

Hardware

Check Hardware Information # get hardware status
check Version, BIOS, Firmware, etc # get system status
View log # execute log display
check version # get system status
Display CPU / memory / line usage # get system performance status
Display of NTP server # get system ntp
Display the current time and the time of synchronization with the NTP server # execute time
check interfaces status , Up or Down # get system interface physical
check interfaces
# config system interface
(interface) # show
(interface) # end
Display of ARP table # get system arp

HA

Check HA Status # get system ha status
Check HA Configuration # get system ha
# show system ha

NTP

Check NTP # execute time
# get system ntp
# diagnose sys ntp status

Network

check configuration # show
# show full-configuration
#show full-configuration | grep XXXX
#show full-configuration | grep -f XXXX ← display with tree view
Check Routing # get router info routing-table detail
# config router static
(static) # show
(static) # end
Check Firewall Policy # show firewall policy
# show firewall policy XXXX
# config firewall policy
(policy) # show


Set

don't use more
# config system console
(console) # set output standard
(console) # end
Save Configuration & exit (console) # end
Don't Save Configuration & exit (console) # abort

Object

config firewall address
  edit "test-server-10"
    set associated-interface "vlan10"
    set subnet 192.168.0.5 255.255.255.0
end

Policy

config firewall 
  edit 555
    set name "test"
    set srcintf "vlan10"
    set dstintf "port 5"
    set srcadr "xxxx"  "xxxx"  "xxx"
    set action accept
    set schedule "always"
    set servie "HTTP" "ICMP_ANY"
end

Backup Configuration

# exec backup config tftp conf/test-fw-01_20180913.conf 192.168.0.10


Operation

Help # ?
ping # execute ping 192.168.0.1
shutdown # execute shutdown
clear arp table # execute clear system arp table









hardware/fortigate/index.html.txt · Last modified: 2018/10/13 by admin