mirror of
https://github.com/nikdoof/huawei-hg612-munin.git
synced 2025-12-25 08:39:31 +00:00
Initial Commit
This commit is contained in:
28
huawei.expect
Normal file
28
huawei.expect
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
spawn nc 192.168.1.1 23
|
||||
expect "Login"
|
||||
send "admin\r"
|
||||
|
||||
expect "Password:"
|
||||
send "admin\r"
|
||||
|
||||
expect "ATP>"
|
||||
send "sh\r"
|
||||
|
||||
expect "#"
|
||||
send "xdslcmd info --show\r"
|
||||
|
||||
expect "#"
|
||||
send "xdslcmd info --pbParams\r"
|
||||
|
||||
expect "#"
|
||||
send "xdslcmd info --stats\r"
|
||||
|
||||
expect "#"
|
||||
send "ifconfig ptm1\r"
|
||||
|
||||
expect "#"
|
||||
send "exit\r"
|
||||
|
||||
expect "ATP>"
|
||||
send "exit\r\r"
|
||||
Reference in New Issue
Block a user