Sunday, November 8, 2015

Setting up SNMP via CLI (for Fortigate 40C or lower)

The Fortigate 40C doesn't have a GUI method of enabling SNMP.  This is lame.  I use PRTG Traffic Grapher to monitor bandwidth usage.  I found CLI instructions here:
http://www.howtodo.co.il/?p=184

I made some slight adjustments and entered these CLI commands.

config system interface
    edit "internal"
        set allowaccess ping https ssh snmp fgfm
    next
end

config system snmp sysinfo
    set description "Enter your company name here"
    set location "Enter your company location here"
    set status enable
end

config system snmp community
   edit 1
           config hosts
                edit 1
                     set interface "internal"
                     set ip 0.0.0.0
                next
           end
      set name "public"
      set trap-v1-status enable
      set trap-v2c-status enable
   next
end

No comments: