Skip to content

Instantly share code, notes, and snippets.

View fredead's full-sized avatar
🍌
banana

Simon Loader fredead

🍌
banana
View GitHub Profile
@fredead
fredead / Restart-PaloAlto-Firewallexpect
Last active August 29, 2015 14:20
Expect script Reset Palo Alto firewall
#!/bin/expect -f
# Simon Loader (simon@loaders
#
# This was used while working on remote equipment and having no way to reset when getting configuration wrong
# Put it in a crontab or in a shell with a long sleep.
# Should be easy to change for cisco / juniper etc.
#
# Get CLI args
set pass [lrange $argv 0 0]
set ip [lrange $argv 1 1]