News:

On Tuesday September 6th the forum will be down for maintenance from 9:30 PM to 11:59 PM PDT

Main Menu

OBi110 scheduled reboot

Started by dialtone, July 11, 2011, 02:14:31 AM

Previous topic - Next topic

QBZappy

Same here. I never need to reboot.
Owner of the 1st OBi110/100 units in service in Canada & South America. 1st OBi202 on my street. 1st OBi1032 in Montreal.

Ed1234

Quote from: tome on October 02, 2011, 08:30:55 PM
Quote from: guyinsb on September 29, 2011, 09:01:44 PM
Quote from: earthtoobi on August 05, 2011, 04:27:08 PM
if you use linux and have this module try this:

lwp-request -C admin:<password> -e -d http://192.168.x.x/rebootgetconfig.htm

Also works with Mac OSX 10.6.8 (and probably many other versions)

In Lion (10.7.1) I had to specify the method (POST) and hit ctrl D after issuing this, otherwise I was getting the error: lwp-request5: LWP-REQUEST5 is not an allowed method

This worked:
lwp-request -m POST -C admin:password -e -d http://192.168.X.X:WEBSRVRPORTNUM/rebootgetconfig.htm  ^D

WEBSRVRPORTNUM is required if you changed it from default in:
System Management -> Device Admin -> Web Server -> Port

Tom



Just a followup to this post - as it might be useful to someone else. I used a slightly different method in Lion.

In Lion I simply used:
lwp-request -m GET -C admin:password -e -d http://obi100/rebootgetconfig.htm

You can replace "Obi100" with your actual IP address, but for me that resolves automatically.


Ed1234

Quote from: SeaObi on October 03, 2011, 06:57:17 PM
I don't get all this stuff about rebooting on a schedule.  My Obi110 went for 2 months without a reboot and I use it for many calls and many hours a day without a problem.

Are you sure you don't have the same problem?  Most of the time it will be the person on the other end who is hearing the issues with your Obi - not you.  Unless the person on the other end makes a point of saying "Hey...your voice quality is bad" you probably won't know about it.  I realized I had a problem when my daughter called me at work on it....and she was breaking up quite a bit.  After rebooting...perfect quality again.  A friend of mine has a VOIP phone through his cable company and when talking to him it is very bad, but to him everything is perfect.







kirk

Quote from: infin8loop on July 15, 2011, 11:13:22 AM
If you have a windows machine always running on the network with the Obi you could run the attached script via Task Scheduler at the appropriate time.  You will first need to change the IP address and password in the script to those of your Obi.  The script simply posts the same page that clicking on the "Reboot" button does on the local Obi Admin pages.

This sounds awesome, is there a way to explain it in laymen's terms?  I am running win 7, can find the task scheduler, and know the IP of the obi110.. But have no idea what to do next... Thanks! : )

dlee

#24
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?

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

#26
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.      
"This has not only been fun, it's been a major expense." - Gallagher

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.