added routerconfig-to-wiki script

This commit is contained in:
2011-06-08 19:04:37 +02:00
parent 9b80112201
commit e2febe9725
3 changed files with 124 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
#!/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
}