EXPECT - Show-CONFIGURATION Fortigate.expect.sh: Revision history

From Wiki.IT-Arts.net

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

23 September 2025

  • curprev 06:2706:27, 23 September 2025Admin talk contribs 569 bytes +569 Created page with "Category:Post-It <nowiki> #!/usr/bin/expect -f # define remote Fortigate device and ssh port with username set host "192.168.1.99" set port "22" set user "admin_ro" spawn ssh "-p $port" "$user\@$host" #comment the line below if the device has no vdoms expect " $ " { send "config global\r" } expect " $ " { send "show full-configuration\r" } ###Exit from device expect " $ " { send "exit\r" }</nowiki> == Useful Links == * https://community.fo..."