• August 10, 2020, 02:26:59 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 30089 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: 49046
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: dOE
« Reply #16 on: May 27, 2014, 07:09:36 AM »

Logged
"Nothing Funny about It...." We are not here to Impress anyone! You have a be a COMPETENT user first to under stand COMPETENT help!

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: 49046
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Logged
"Nothing Funny about It...." We are not here to Impress anyone! You have a be a COMPETENT user first to under stand COMPETENT help!

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: 49046
  • 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
"Nothing Funny about It...." We are not here to Impress anyone! You have a be a COMPETENT user first to under stand COMPETENT help!
Pages: 1 [2]