Skip to content

Instantly share code, notes, and snippets.

@ahmadawais
Created October 1, 2016 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmadawais/5d2aefc95369ae5976a8ed21ffd6de33 to your computer and use it in GitHub Desktop.
Save ahmadawais/5d2aefc95369ae5976a8ed21ffd6de33 to your computer and use it in GitHub Desktop.
Workflow: Reboot PTCL Router via Command Line
# 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"
@ahmadawais
Copy link
Author

Better approach would be to use the PTCL CLI I built.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment