mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 02:18:08 +00:00
Extract tarballs committed to git as plugins.
This commit is contained in:
parent
2dad4c6f70
commit
038c3ce96b
15 changed files with 352 additions and 0 deletions
25
plugins/beboxsync/beboxstats.expect
Executable file
25
plugins/beboxsync/beboxstats.expect
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/expect -f
|
||||
|
||||
# script to log on to a BeBox router [ST Speedtouch 780] and gather line stats
|
||||
|
||||
# set timeout for response from router to 30 seconds
|
||||
set timeout 30
|
||||
set router "host.or.ip.of.router"
|
||||
set port "23"
|
||||
set username "Administrator"
|
||||
set password "routerpassword"
|
||||
|
||||
# telnet to $router on $port
|
||||
spawn telnet $router $port
|
||||
|
||||
expect "Username :"
|
||||
send "$username\r"
|
||||
|
||||
expect "Password :"
|
||||
send "$password\r"
|
||||
|
||||
expect "}=>"
|
||||
send "adsl info\r"
|
||||
|
||||
expect "}=>"
|
||||
send "exit\r"
|
Loading…
Add table
Add a link
Reference in a new issue