Skip to main content
jacob600
New Member
March 4, 2019
Question

Sample Expect or python script to log in to Fortigate??

  • March 4, 2019
  • 1 reply
  • 14994 views

I'm not a scripter but I need to put one together. Can anyone provide a basic expect or python script that logs into a Fortigate devices and issues one command? Any command.  I'm looking for a starting point. So far, I have had issues modifying the example Cisco script to work with the Fortigate. Any sample expect or python script would be very much appreciated.

 

Thank you,

    1 reply

    emnoc
    New Member
    March 5, 2019
    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!