OBi110 scheduled reboot
dlee:
Quote from: infin8loop on March 19, 2012, 08:51:11 pm
Quote from: dlee on March 19, 2012, 07:26:00 pm
Can anyone help -- I want to schedule reboot on my tomato router.
I tried the command below, and provided the correct password and IP address:
curl -u admin:<password> "http://192.168.X.X/rebootgetconfig.htm"
But, I get this error message:
401 Unauthorized!
Can anyone help?
As written I'm not sure if you are trying to reboot your router or your OBi. If you are trying to reboot an OBi and the '192.168.X.X' part is the actual IP address of the OBi then 401 indicates whatever was supplied in place of <password> is not a valid password for the OBi. If you are trying to reboot your router then the 'rebootgetconfig.htm' part isn't going to work since it's specific to an OBi. If it's the router you want to reboot then you will need go spelunking into the html source of your router config pages to figure out what URL triggers a reboot of the router (if there is one) and put that page in place of the 'rebootgetconfig.htm' part, and set the password and IP address to that of the router. I don't run tomato (I run couch potato), so I cannot tell you.
Update: And 'admin' may or may not be the proper user id to use on the router but it does work on an OBi.
I want to reboot Obi110 using cron on my tomato router.
I updated my original post to clarify.
infin8loop:
Quote from: dlee on March 19, 2012, 07:26:00 pm
Clarification: I want to reboot my Obi110 using cron on my tomato router
Can anyone help -- I want to schedule reboot on my tomato router.
I tried the command below, and provided the correct password and IP address:
curl -u admin:<password> "http://192.168.X.X/rebootgetconfig.htm"
But, I get this error message:
401 Unauthorized!
Can anyone help?
I was able to install curl in Ubuntu running in a VirtualBox and to get the following to work:
curl -u admin:ppppppppp --anyauth http://192.168.x.x/rebootgetconfig.htm
Replacing the p's (password) and x's (ip) with appropriate values. The key seems to be the addition of the --anyauth parameter which I found in a curl manual (luckily the first I tried!). It seems to work equally well with or without the double quotes around the URL.
dlee:
Quote from: infin8loop on March 19, 2012, 11:27:27 pm
Quote from: dlee on March 19, 2012, 07:26:00 pm
Clarification: I want to reboot my Obi110 using cron on my tomato router
Can anyone help -- I want to schedule reboot on my tomato router.
I tried the command below, and provided the correct password and IP address:
curl -u admin:<password> "http://192.168.X.X/rebootgetconfig.htm"
But, I get this error message:
401 Unauthorized!
Can anyone help?
I was able to install curl in Ubuntu running in a VirtualBox and to get the following to work:
curl -u admin:ppppppppp --anyauth http://192.168.x.x/rebootgetconfig.htm
Replacing the p's (password) and x's (ip) with appropriate values. The key seems to be the addition of the --anyauth parameter which I found in a curl manual (luckily the first I tried!). It seems to work equally well with or without the double quotes around the URL.
Thank You - that worked, and for pointing me in the right direction.
I also tried "--digest" without "--anyauth", and "--digest" worked also.
jentzd:
thanks for the thread on this.
i was able to modify the command to get wget to work.
wget --user admin --password <password> http://192.168.xx.xx/rebootgetconfig.htm
Wget returned an auth error, but my phone/device still rebooted. Nice!! Now I can cron it.
Navigation
[0] Message Index
[*] Previous page