Results 1 to 4 of 4

Thread: Reboot router script

  1. #1
    Join Date
    Feb 2014
    Beans
    2

    Reboot router script

    Hi

    I have a one line script that I was using to reboot my router(cheapy from my very cheap ISP). Since yesterday the script does not work. It's a one liner curl script which calls the routers reboot webpage with basic authentication and I had to run it a couple of times (cookies) to bounce the thing but it no longer works. It is a really cheap router and I need to reboot it all the time so this script was really useful. Any ideas

    The script is with relevant variables set in the header

    curl -u ${username}:${pssword} $routerip/reboot.html



    A Lot of thanks in advance
    Ian

  2. #2
    Join Date
    Apr 2012
    Beans
    7,256

    Re: Reboot router script

    I would start by adding a '-v' option to get verbose output from the curl command

    Code:
    curl   -vu ${username}:${pssword} $routerip/reboot.html

  3. #3
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Reboot router script

    Thread moved to Programming Talk.
    | My old and mostly abandoned blog |
    Linux user #413984 ; Ubuntu user #178
    J'aime les fraises.
    Nighty night me lovelies!

    | Reinstalling Ubuntu ? Please check this bug first ! |
    | Using a ppa ? Please install ppa-purge from universe, you may need it should you want to revert packages back |
    | No support requests / username changes by PM, thanks. |
    [SIGPIC][/SIGPIC]

  4. #4
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    10,044
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Reboot router script

    Was this router provided by your ISP? It's possible that they sent an update to your router (to fix a security vulnerability) and when you rebooted, it closed the reboot feature. What was the version of the router firmware when you wrote the script? What is the firmware version now?

    Can you manually reboot the router through the web page?
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •