SlideShare a Scribd company logo
1 of 2
Download to read offline
COMMAND DESCRIPTION
MAIN COMMAND STRUCTURE
show Display changes to the default configuration
edit
Create or edit a table in the current object.
edit 0 will use the next ID available in a sequence number
get List the configuration of the current object or table
next Save current entry (edit X) and return to table
set/unset Set a field / Reset a field to the default value
end Save the current changes and exit menu
delete Remove a table from the current object
abort Exit commands without saving the fields (ctrl+C)
tree Display the command tree for the current config section
INTERFACE COMMANDS
show/get system interface
Show interfaces status. Use get to retrieve dynamic information
(such as PPPoE IP)
config sys interface
edit <port>
set ip x.x.x.x/y
set allow ssh ping https
end
Basic interface ip configuration
diag hard dev nic <port> Show interfaces statistics
diag netlink device list Show interfaces statistics (errors)
VPN COMMANDS
diag vpn ike gateway list Show phase 1
diag vpn tunnel list
Show phase 2
(shows npu flag)
diag vpn ike gateway flush name
<phase1>
Flush a phase 1
diag vpn tunnel up <phase2>
Bring up a phase 2
diag debug en
diag vpn ike log-filter daddr x.x.x.x
diag debug app ike 1
Troubleshoot VPN issue
FORTINET FORTIGATE – CLI CHEATSHEET
COMMAND DESCRIPTION
BASIC COMMANDS
get sys status Show status summary
get sys perf stat Show Fortigate ressources summary
exec shutdown/reboot Shutdown the device/reboot
execute ping(-options) Ping something (can add options)
execute ssh <user>@<ip> SSH to another server
get sys arp (| grep x.x) Show the arp table (filtered by x.x)
show | grep -f something
Find where “something” is used (cases-sensitive, can use -i
to be case insensitive)
CONFIG MANAGEMENT COMMANDS
diag hard deviceinfo disk Show disks and partitions usage
exec setnextreboot ? Select partition for the next reboot
diag sys flash list Show partitions status
exec factoryreset [keepvmlicense]
Reset to factory default (2 to keep network) (if VM, use
keepvmlicense)
exec restore config Restore configuration (reboots)
exec backup conf Backup configuration
exec formatlogdisk Format log disk
diag debug config-error-log read
Show config parsing errors (after upgrade) > should be
empty
FORTIGUARD COMMANDS
execute update-now
Forces a download of the whole AV/IPS database, with
license check
diag autoupd status/version Show FGD engine and database
diag debug rating Show current connectivity with URL rating servers
diag deb en
diag deb app update -1
Troubleshoot AV/IPS download
networkinterview.com
(An Initiative By ipwithease.com)
COMMAND DESCRIPTION
DEBUG COMMANDS
diag debug enable
diag debug flow sh c en
diag debug flow sh f en
diag debug flow filter saddr x.x.x.x
diag debug flow filter daddr y.y.y.y
diag debug flow trace start 10
diag debug reset
Debug flow
diag debug crashlog read Show crashlog
diag sys session filter src x.x.x.x
diag sys session filter dst x.x.x.x
diag sys session list diag sys
session clear
Filter session table List session Clear these sessions
diag deb en
diag deb app fnbamd -1
Debug authentication
diag debug report Collect lots of info
diag sys top <seconds> <nb_lines>
shift+P for CPU ordering, shift+M for
Mem ordering
Processes usage (CPU usage)
diag sys top-summary ‘-s mem’
‘-h’ to show options
Processes usage (Mem usage)
abort Exit commands without saving the fields (ctrl+C)
tree Display the command tree for the current config section
FORTINET FORTIGATE – CLI CHEATSHEET (contd.)
COMMAND DESCRIPTION
HIGH AVAILABILITY COMMANDS
get sys ha status
diag sys ha status
Display HA conf summary
diag sys ha history read Display HA history events
diag sys ha check cluster
diag sys ha check sh root
Dispaly the config checksum for any members of the
cluster and show details of the config for a vdom (here
root)
exec ha synchronize all Synchronize all parts of the config
diag deb en diag deb cons
timestamp en
diag deb app hatalk 1
diag deb app hasync 1
Troubleshoot HA synchronization issue
diag sys ha resetuptime
Reset ha uptime criteria (to trigger failover unless override
is enabled => default is disabled)
diag sniffer packet haint
‘ether[12:2]=0x8890’ 6
Sniffer on heartbeat ports (here haint)
exec ha manage <id> <admin> Connect on a subordinate device
STATIC ROUTING COMMANDS
config router static
edit 0
set device internal
set dst x.x.x.x/y
set gateway z.z.z.z
end
Add a static route
get ro info ro details x.x.x.x Display the route used to reach the IP x.x.x.x
diag firewall proute list Display the Policy Routes
get router info routingtable all get
router info routingtable database
Display the current routing table active/configured
diag ip route list Display the kernel routing table
networkinterview.com
(An Initiative By ipwithease.com)

More Related Content

Similar to Fortinet and FORTIGATE CLI CHEATSHEET for beginers

Similar to Fortinet and FORTIGATE CLI CHEATSHEET for beginers (20)

List Command at Run
List Command at RunList Command at Run
List Command at Run
 
commands v2.3.1
commands v2.3.1commands v2.3.1
commands v2.3.1
 
Ultimate Unix Meetup Presentation
Ultimate Unix Meetup PresentationUltimate Unix Meetup Presentation
Ultimate Unix Meetup Presentation
 
lec4.docx
lec4.docxlec4.docx
lec4.docx
 
Arp Dan Ipconfig Syntax
Arp Dan Ipconfig  SyntaxArp Dan Ipconfig  Syntax
Arp Dan Ipconfig Syntax
 
Hw09 Monitoring Best Practices
Hw09   Monitoring Best PracticesHw09   Monitoring Best Practices
Hw09 Monitoring Best Practices
 
Hadoop Monitoring best Practices
Hadoop Monitoring best PracticesHadoop Monitoring best Practices
Hadoop Monitoring best Practices
 
To Get To The Command Prompt In Windows Xp Go To
To Get To The Command Prompt In Windows Xp Go ToTo Get To The Command Prompt In Windows Xp Go To
To Get To The Command Prompt In Windows Xp Go To
 
Raj linux
Raj linux Raj linux
Raj linux
 
Vmware Command Line
Vmware   Command LineVmware   Command Line
Vmware Command Line
 
1.subida de nivel del aix 6
1.subida de nivel del aix 61.subida de nivel del aix 6
1.subida de nivel del aix 6
 
Swug July 2010 - windows debugging by sainath
Swug July 2010 - windows debugging by sainathSwug July 2010 - windows debugging by sainath
Swug July 2010 - windows debugging by sainath
 
Linux
LinuxLinux
Linux
 
Solaris
SolarisSolaris
Solaris
 
50 Most Frequently Used UNIX Linux Commands -hmftj
50 Most Frequently Used UNIX  Linux Commands -hmftj50 Most Frequently Used UNIX  Linux Commands -hmftj
50 Most Frequently Used UNIX Linux Commands -hmftj
 
3.2 process text streams using filters
3.2 process text streams using filters3.2 process text streams using filters
3.2 process text streams using filters
 
Cisco router-commands
Cisco router-commandsCisco router-commands
Cisco router-commands
 
ws-commands.pdf
ws-commands.pdfws-commands.pdf
ws-commands.pdf
 
Esx.sc.quickref
Esx.sc.quickrefEsx.sc.quickref
Esx.sc.quickref
 
Win run
Win runWin run
Win run
 

Recently uploaded

INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitterShivangiSharma879191
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
An introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxAn introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxPurva Nikam
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 

Recently uploaded (20)

INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
An introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxAn introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptx
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 

Fortinet and FORTIGATE CLI CHEATSHEET for beginers

  • 1. COMMAND DESCRIPTION MAIN COMMAND STRUCTURE show Display changes to the default configuration edit Create or edit a table in the current object. edit 0 will use the next ID available in a sequence number get List the configuration of the current object or table next Save current entry (edit X) and return to table set/unset Set a field / Reset a field to the default value end Save the current changes and exit menu delete Remove a table from the current object abort Exit commands without saving the fields (ctrl+C) tree Display the command tree for the current config section INTERFACE COMMANDS show/get system interface Show interfaces status. Use get to retrieve dynamic information (such as PPPoE IP) config sys interface edit <port> set ip x.x.x.x/y set allow ssh ping https end Basic interface ip configuration diag hard dev nic <port> Show interfaces statistics diag netlink device list Show interfaces statistics (errors) VPN COMMANDS diag vpn ike gateway list Show phase 1 diag vpn tunnel list Show phase 2 (shows npu flag) diag vpn ike gateway flush name <phase1> Flush a phase 1 diag vpn tunnel up <phase2> Bring up a phase 2 diag debug en diag vpn ike log-filter daddr x.x.x.x diag debug app ike 1 Troubleshoot VPN issue FORTINET FORTIGATE – CLI CHEATSHEET COMMAND DESCRIPTION BASIC COMMANDS get sys status Show status summary get sys perf stat Show Fortigate ressources summary exec shutdown/reboot Shutdown the device/reboot execute ping(-options) Ping something (can add options) execute ssh <user>@<ip> SSH to another server get sys arp (| grep x.x) Show the arp table (filtered by x.x) show | grep -f something Find where “something” is used (cases-sensitive, can use -i to be case insensitive) CONFIG MANAGEMENT COMMANDS diag hard deviceinfo disk Show disks and partitions usage exec setnextreboot ? Select partition for the next reboot diag sys flash list Show partitions status exec factoryreset [keepvmlicense] Reset to factory default (2 to keep network) (if VM, use keepvmlicense) exec restore config Restore configuration (reboots) exec backup conf Backup configuration exec formatlogdisk Format log disk diag debug config-error-log read Show config parsing errors (after upgrade) > should be empty FORTIGUARD COMMANDS execute update-now Forces a download of the whole AV/IPS database, with license check diag autoupd status/version Show FGD engine and database diag debug rating Show current connectivity with URL rating servers diag deb en diag deb app update -1 Troubleshoot AV/IPS download networkinterview.com (An Initiative By ipwithease.com)
  • 2. COMMAND DESCRIPTION DEBUG COMMANDS diag debug enable diag debug flow sh c en diag debug flow sh f en diag debug flow filter saddr x.x.x.x diag debug flow filter daddr y.y.y.y diag debug flow trace start 10 diag debug reset Debug flow diag debug crashlog read Show crashlog diag sys session filter src x.x.x.x diag sys session filter dst x.x.x.x diag sys session list diag sys session clear Filter session table List session Clear these sessions diag deb en diag deb app fnbamd -1 Debug authentication diag debug report Collect lots of info diag sys top <seconds> <nb_lines> shift+P for CPU ordering, shift+M for Mem ordering Processes usage (CPU usage) diag sys top-summary ‘-s mem’ ‘-h’ to show options Processes usage (Mem usage) abort Exit commands without saving the fields (ctrl+C) tree Display the command tree for the current config section FORTINET FORTIGATE – CLI CHEATSHEET (contd.) COMMAND DESCRIPTION HIGH AVAILABILITY COMMANDS get sys ha status diag sys ha status Display HA conf summary diag sys ha history read Display HA history events diag sys ha check cluster diag sys ha check sh root Dispaly the config checksum for any members of the cluster and show details of the config for a vdom (here root) exec ha synchronize all Synchronize all parts of the config diag deb en diag deb cons timestamp en diag deb app hatalk 1 diag deb app hasync 1 Troubleshoot HA synchronization issue diag sys ha resetuptime Reset ha uptime criteria (to trigger failover unless override is enabled => default is disabled) diag sniffer packet haint ‘ether[12:2]=0x8890’ 6 Sniffer on heartbeat ports (here haint) exec ha manage <id> <admin> Connect on a subordinate device STATIC ROUTING COMMANDS config router static edit 0 set device internal set dst x.x.x.x/y set gateway z.z.z.z end Add a static route get ro info ro details x.x.x.x Display the route used to reach the IP x.x.x.x diag firewall proute list Display the Policy Routes get router info routingtable all get router info routingtable database Display the current routing table active/configured diag ip route list Display the kernel routing table networkinterview.com (An Initiative By ipwithease.com)