A
A
Aleksander9112017-06-26 02:23:59
bash
Aleksander911, 2017-06-26 02:23:59

How to reboot usb modem connected to zyxel router via cmd?

Good day everyone.
There is a zyxel 4G III router and a problem with the constant loss of the Internet from the usb modem, only turning off the modem itself helps. On Habré, I found a bash script that reboots the modem:

spawn telnet 192.168.1.1
expect "Login: "
send "ВАШ_ЛОГИН(обычно admin)\r"
expect "Password: "
send "ВАШ_ПАРОЛЬ\r"
expect "(config)> "
send "interface YotaOne0 usb power-cycle 0\r"
send "exit\r"
interact

Tell me, is there something similar for cmd?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dpvpro, 2017-06-26
@dpvpro

You can use cygwin for this.
interestabout.blogspot.ru/2010/06/bashexpect.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question