added routerconfig-to-wiki script
This commit is contained in:
10
wikify.routerconfig/getconfig.ex
Executable file
10
wikify.routerconfig/getconfig.ex
Executable 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user