Created
October 1, 2016 10:58
-
-
Save ahmadawais/5d2aefc95369ae5976a8ed21ffd6de33 to your computer and use it in GitHub Desktop.
Workflow: Reboot PTCL Router via Command Line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Bash script to reboot the PTCL router | |
# Replace 'host_address', 'username', and 'password' | |
# Usage: (sleep 1;echo admin;sleep 1;echo dBe12;sleep 1;echo "reboot"; sleep 1;) | telnet 192.168.10.1 | |
(sleep 1;echo "$username";sleep 1;echo "$password";sleep 1;echo "reboot"; sleep 1;) | telnet "$host_address" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Better approach would be to use the PTCL CLI I built.