I'm trying to figure out a way to quickly send a reboot command to my ASUS RT-N16 router. First a little backstory why, and it might make more sense.
The wireless unpredictably drops connection and I have to reboot it. I have one computer wired to the router that is always on. When the router craps out, it's only the wireless that drops and this computer remains connected. Typically when this happens, I'll wake up the computer, browse to the router, and manually reboot it from there. The problem is that this is a bit of a pain. The computer is hooked up to the TV, which means I have to turn on the TV, set it to the right input, grab the keyboard from under the entertainment center, and use the mouse on an awkward surface (I typically use VNC to control it).
Before you ask, I have the router set up to reboot every 24 hours. I guess it helps a little, but I still have to go through this a couple times a week even with the automated reboots.
I'm looking to set up a small batch file or something that will automatically telnet or SSH into the router and reboot the thing without navigating through the web interface. The plan is to find a way to bind a key combination to that batch file so all I have to do is grab the keyboard, wake up the computer, then press the key combination to reboot the router without touching the TV or mouse at all.
Now, I've never dealt with telnet or SSH at all so I have no idea how to do it or which would be easier at all. Can someone point me in the right direction to get something like this set up?