• Home
  • About
    • Disclaimer
  • Archives
  • Tools

Fortigate – useful log related cli commands I use.

Jan02
2018
Written by david

I use these commands whenever I have problems with the log facility and I need to reset it.

Set the maximum size of the memory buffer log, in bytes. (Default 65536)

config log memory global-setting
set max-size 2048000

Clear all logs

execute log delete-all

Memory log settings

config log memory setting
set diskfull overwrite
set status enable
end

Send log report to gui

config log setting
set gui-location memory

Format the log disk
First change the log location in the gui to something else (like memory) and than go to cli and run (the fortigate will restart after that) use with caution!.

execute formatlogdisk
VN:F [1.9.20_1166]
please wait...
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Posted in Fortigate - Tagged CLI, Fortigate
SHARE THIS Twitter Facebook Delicious StumbleUpon E-mail
Similar posts
  • Fortios 5.6 – Enable intra-vap-... — In order to prevent communication between wifi clients an...
  • Fast way to enable Syslog server on f... — Here are the cli commands I use to set a fortigate unit w...
  • Fortigate rates legitimate web sites ... — I had this problem with a few of my costumers. The Fortig...
  • Fortigate: “The cmdb add entry ... — The Fortigate web interface is a great management tool, u...
  • Fortigate: edit static arp entries. — I use this commands to list, troubleshot and edit arp rel...
« Fast way to enable Syslog server on fortigate
» How to create e-mail address policy based on active directory group membership.

Categories

  • Command Line (11)
  • Exchange (8)
    • 2007 (4)
    • 2010 (5)
  • Fortigate (10)
  • FreeNAS (2)
  • HmailServer (1)
  • How To: (8)
  • MS SQL 2008 (4)
  • Networking (4)
  • Open Source (1)
  • PowerShell (2)
  • Recovery (1)
  • SBS (8)
    • SBS 2008 (6)
    • SBS 2011 (3)
  • Terminal Server (2)
  • Veeam (2)
  • VMware (6)
  • Windows (18)

Links

  • חי הדפסות – דפוס משי, חולון
  • שלישיה – זה לא מה שחשבתם

Archives

  • March 2018
  • January 2018
  • September 2015
  • January 2015
  • August 2014
  • May 2014
  • December 2013
  • January 2013
  • October 2012
  • September 2012
  • July 2012
  • June 2012
  • May 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
Site Meter

EvoLve theme by Theme4Press  •  Powered by WordPress How to do.....IT