Here is a CURL command to reboot Linksys routers. This save's time by not having to login to the web interface and navigating the right pages. This can also be used to automate router reboot.
curl http://username:password@192.168.1.1/apply.cgi -d "submit_button=Reboot&change_action=&action=Reboot&wait_time=19&rebootmode=1"
Please note: All my curl commands might not work directly if you copy paste because when you copy it will take the line breaks and give you a error, so paste this code into notepad or something and remove wordwrap, make sure the command is all on one line then copy paste it.
Look at my other scripts to know how to use CURL in windows.
Thanks, there´s no option for this on my wrt300n web interface but the command worked.
ReplyDeleteIs there anyway to run this command with the same effect without knowing the username and password of the router in question? (I'm trying to reboot my neighbors Linksysy WRT54G)
ReplyDeleteThank you. This is exactly what I was looking for.
ReplyDeleteNo problem, glad to help.
DeleteDo you know the equivalent curl command to release and renew the router's external DHCP IP? I would like to do this on my E4200.
ReplyDeleteI will try and have the curl command and post it tomorrow.
DeleteOk, as promised here are the links to the commands:
Deletehttp://onlinetechadvice.blogspot.ca/2013/02/linksys-curl-command-to-release-and.html
I made a seperate post for it so other people can find it easily.
Hello, I enjoy reading all of your article.
ReplyDeleteI like to write a little comment to support you.
Linksys Router Technical Support
This is awesome working good
ReplyDeletelinksys router login