December 15, 2017, 07:53:14 am *
Welcome, Guest. Please login or register.
News:
 
   Forum Home   Search Login Register OBiTALK  
Pages: 1 [2]
  Print  
Author Topic: OBi110 scheduled reboot  (Read 131235 times)
QBZappy
Hero Member & Beta Tester
*****
Posts: 2322



« Reply #20 on: October 03, 2011, 07:57:01 pm »

Same here. I never need to reboot.
Logged

Owner of the 1st OBi110/100 units in service in Canada & South America. 1st OBi202 on my street. 1st OBi1032 in Montreal.
Ed1234
Newbie
*
Posts: 2


« Reply #21 on: November 11, 2011, 06:28:09 am »

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.

Logged
Ed1234
Newbie
*
Posts: 2


« Reply #22 on: November 11, 2011, 06:49:35 am »

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.






Logged
kirk
Jr. Member
**
Posts: 20


« Reply #23 on: November 14, 2011, 09:01:29 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! : )
Logged
dlee
Newbie
*
Posts: 12


« Reply #24 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?
« Last Edit: March 19, 2012, 10:06:55 pm by dlee » Logged
dlee
Newbie
*
Posts: 12


« Reply #25 on: March 19, 2012, 10:10:09 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.
Logged
infin8loop
Full Member
***
Posts: 219


My code doesn't abend, it loops to ∞


« Reply #26 on: March 19, 2012, 11:27:27 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.      
« Last Edit: March 19, 2012, 11:29:28 pm by infin8loop » Logged

"This has not only been fun, it's been a major expense." - Gallagher
dlee
Newbie
*
Posts: 12


« Reply #27 on: March 20, 2012, 09:22:04 am »

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.
Logged
jentzd
Newbie
*
Posts: 18


« Reply #28 on: August 22, 2017, 01:14:36 am »

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.
Logged
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC