• April 23, 2024, 05:54:54 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Pages: 1 [2]

Author Topic: How to reboot router using a script?  (Read 36017 times)

jan.renzlow

  • Level 1 Member
  • *
  • Posts: 7
dOE
« Reply #15 on: May 27, 2014, 07:06:18 AM »

I just stumbled upon the initial question of the thread, so i make up the basic info now although it's four years ago (what happened in four years?):

loginurl="http://routerip/login.php?ACTION_POST=LOGIN&LOGIN_USER=username&LOGIN_PASSWD=password"

rebooturl="http://routerip/sys_cfg_valid.xgi?exeshell=submit REBOOT"

 :o
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: dOE
« Reply #16 on: May 27, 2014, 07:09:36 AM »

Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

jan.renzlow

  • Level 1 Member
  • *
  • Posts: 7
Re: How to reboot router using a script?
« Reply #17 on: May 27, 2014, 07:18:41 AM »

Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

m3fisto

  • Level 1 Member
  • *
  • Posts: 1
Re: How to reboot router using a script?
« Reply #19 on: September 01, 2016, 11:33:21 PM »

I just registered to add how I did it with my D-Link DHP-1565

Code: [Select]
curl -v  --max-time 10 --connect-timeout 1 -u admin:pswd http://192.168.0.1/reboot.cgi -d "html_response_page=count_down.asp&html_response_return_page=tools_system.asp&html_response_message=The Reboot running&result_timer=50&action=reboot" > /dev/null

I hope it helps on other routers too!!
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: How to reboot router using a script?
« Reply #20 on: September 02, 2016, 07:22:29 AM »

Thanks for posting this information.

Can you give more detail on how this code is actually executed? What are the exact step and what application(s) are needed?

I just registered to add how I did it with my D-Link DHP-1565

Code: [Select]
curl -v  --max-time 10 --connect-timeout 1 -u admin:pswd http://192.168.0.1/reboot.cgi -d "html_response_page=count_down.asp&html_response_return_page=tools_system.asp&html_response_message=The Reboot running&result_timer=50&action=reboot" > /dev/null

I hope it helps on other routers too!!
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.
Pages: 1 [2]