Orbi WiFi 7 RBE973
Reply

Rebooting D7000v2 via wget in script [SOLVED]

proxiblue
Tutor

Rebooting D7000v2 via wget in script [SOLVED]

Hello,

 

So, basically, router seems to hang after a couple of days of intensive streaming. (FWIW, I have this EXACT same problem with a D6220 that runs at my father in laws home.

Don't care what Netgear says (which seems to be that the router does not to be rebooted to make 'it work better')

 

In the REAL WORLD, that seems to work. I get the feel the routers don't manage to well with todays massive streaming world we live in (hell, my TV is not even tuned in to terrestial transmissions, and has no antenna connected)

I think it is poor that netgear do not include a scheduled reboot option. 

 

So..., a few posts around how to reboot router via script, but they did not work, but I have adapted this to work on the d7000v2 that I have.
The reboot runs daily at 3am, via cron form my linux server.

id=$(wget -q -O- --http-user admin --http-password password http://192.168.0.1/ADVANCED_home2.htm | perl -lne '/id=([a-f0-9]+)/ && print $1'); wget -O- --http-user admin --http-password password http://192.168.0.1/newgui_adv_home.cgi?id=$id --post-data "id=$id&buttonType=2";

You obviously need to adjust the router IP and PASSWORD

 

 

Model: D7000|Nighthawk AC1900 VDSL/ADSL Modem Router
Message 1 of 4

Accepted Solutions
proxiblue
Tutor

Re: Rebooting D7000v2 via wget in script [SOLVED]

NOTE: The exact same reboot script works on the D6220 - so this *may* work for any 'genie' based router.

View solution in original post

Message 2 of 4

All Replies
proxiblue
Tutor

Re: Rebooting D7000v2 via wget in script [SOLVED]

NOTE: The exact same reboot script works on the D6220 - so this *may* work for any 'genie' based router.

Message 2 of 4
antinode
Guru

Re: Rebooting D7000v2 via wget in script [SOLVED]

> [...] this *may* work for any 'genie' based router.

 

   Or not.  I don't see ADVANCED_home2.htm (or anything similar) on my
D7000[v1] (V1.0.1.70_1.0.1).

 

# find /www.eng -name 'ADV*'
#
# find /www.eng -name 'adv*.htm'
/www.eng/adv_wps.htm
/www.eng/adv_index.htm
/www.eng/adv_adsl.htm

 

   But interesting, in any case.

Message 3 of 4
proxiblue
Tutor

Re: Rebooting D7000v2 via wget in script [SOLVED]

NOTE: WIll not work if you are currently logged into admin panel of router - the script results with an error about 'multiple logins'

Message 4 of 4
Top Contributors
Discussion stats
  • 3 replies
  • 3043 views
  • 2 kudos
  • 2 in conversation
Announcements

Orbi WiFi 7