How can I restart a Wimax modem using Terminal on my Mac?

MHM October 13, 2011
Pinterest Stumbleupon Whatsapp

I want to restart a Wimax modem that is connected to my Mac via Ethernet. I can restart it using the modem web UI, but I want to do it in another way. Please tell me every possible way to do this. Thanks.

Ads by Google

  1. behrad companu
    October 14, 2011 at 7:49 am

    Thank you for your response 
    the modem brand : Hawaii - model number : Echolife bm631  
    in the modem interface there is a restart button but i don't know how to curl i t via terminal 
    and i don't think there is a command line interface for this model 
    any thoughts ?

    • Mike
      October 14, 2011 at 10:46 am

      Unfortunately I don't have any access to a similar let alone the same device to make any tests or suggestion.
      Basically you have to "right-click > view content" on the site to find out what function or page this "Reboot" button calls. You may also need to do a little testing to find the correct final URL.

      The final command could be something like this

      curl -u username:password http://10.200.1.100/cgi-bin/restart -silent
      curl -u admin:123456789 http://192.168.1.1/setup.cgi?todo=reboot -silent

      I use the "silent" switch because the output will be plain HTML and mostly unreadable ~ with a little more testing and programming one could search the output for a reboot confirmation and then output something like "device is rebooting..."

  2. Mike
    October 13, 2011 at 9:02 pm

    You have to be more specific what modem (brand, model) you are talking about.

    The easiest way would be to write down the direct reboot URL of the web gui e.g. https://172.16.1.1/setup.cgi?todo=reboot and simply curl it via terminal.

    A more sophisticated method would be using the proper command via your modems CLI assuming your modem actually offers a Command Line Interface for the end user.