Skip to content

Instantly share code, notes, and snippets.

@goodarzi
Created January 28, 2024 10:16
Show Gist options
  • Save goodarzi/32e6d359a2ac8e91e609294c90d04067 to your computer and use it in GitHub Desktop.
Save goodarzi/32e6d359a2ac8e91e609294c90d04067 to your computer and use it in GitHub Desktop.
Huawei HG8245H ONT reboot script
#!/usr/bin/expect
set timeout 20
spawn telnet 192.168.0.1
expect "Login:"
send "root\r"
expect "Password:"
send "admin\r"
expect "WAP>"
send "reset\r"
interact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment