[X-Unix] How to determine which network component is failing
Charles Howse
chowse at charter.net
Wed Jul 26 02:43:24 PDT 2006
On Jul 25, 2006, at 10:45 PM, Stroller wrote:
> Well done!
>
> I shall be keeping a copy of these notes in my archive. I shall
> have to install curl on a customer's Windows PC and give her an
> icon to click which will reboot the router for her.
>
>
> On 25 Jul 2006, at 23:25, Charles Howse wrote:
>>> ...
>>> I think the relevant sections of the HTML are...
>
> Addendum:
> <form method=get action=Gozila.cgi>
>
>>> <SCRIPT language=JavaScript>function pppoeAction(F,I)
>>> { F.pppoeAct.value = I; F.submit();}function DHCPAct(F,I)
>>> { F.dhcpAction.value = I; F.submit();}function showAlert(){alert
>>> ('');}</SCRIPT>
>>>
>>> and:
>>>
>>> <input type=hidden name=dhcpAction> ...
>>> <input type=button value='DHCP Renew' onClick=DHCPAct(this.form,1)>
>>>
>>> `curl --manual` gives more examples than `man curl`, but the
>>> http://curl.haxx.se/ website looks more comprehensive still. They
>>> have a mailing list, so you might find what you need by searching
>>> the archives of that, or posting to it.
>>
>> I made quite a bit of progress playing with curl this afternoon.
>> FYI, the following commands work:
>>
>> - Router -
>> # dhcp release - $ curl -u admin:pw "http://192.168.254.254/
>> Gozila.cgi?dhcpAction=0"
>> # dhcp renew - $ curl -u admin:pw "http://192.168.254.254/
>> Gozila.cgi?dhcpAction=1"
>
> These curl commands relate to the HTML / Javascript snippet in the
> quoted above it, I think...
>
>> - Modem -
>> # Reboot Modem - $ curl -d "BUTTON_INPUT=Restart%20Cable%20Modem"
>> 192.168.100.1/configdata.html
>
> Can you possibly post the HMTL from the webpage for the modem,
> please, so I can see can example of when I might use this form?
>
It's too big, over 5k limit. Here is all you need.
<FORM METHOD="POST" ACTION="http:/configdata.html">
<INPUT TYPE="submit" NAME="BUTTON_INPUT"
value="Restart Cable Modem">
--
Bubba's FAQ -
http://bubbabbq.homeunix.net/faq.html
More information about the X-Unix
mailing list