hacks/wikify.routerconfig/getconfig.ex

11 lines
229 B
Elixir
Raw Normal View History

2011-06-08 17:04:37 +00:00
#!/usr/bin/expect -f
set hostname [lindex $argv 0]
set timeout 20
spawn scp root@$hostname:running-config ./fetchedconfig
set pass "ROUTER_PASSWORD_HERE"
expect {
password: {send "$pass\r" ; exp_continue}
eof exit
}