[Asterisk-Users] Re: GS 101/102 Reboot
Tony Mountifield
tony at softins.clara.co.uk
Mon Sep 27 04:49:04 MST 2004
In article <JNEIKJHHLNEPPOKDLBLBIEOMDKAA.david.carter at codepipe.com>,
David J Carter <david.carter at codepipe.com> wrote:
> Hi all,
>
> Did I see on the list a while back someone creating a program to reboot the
> GS phones at a pre set time.
>
> If anyone has this program I would love a copy if it is freely
> distributable.
The following shell script does it for me (can't remember where I got it):
#!/bin/sh
PHONES="192.168.0.200 192.168.0.201"
TEMPFILE=/tmp/cook$$.txt
for ip in ${PHONES}
do
curl -s -o/dev/null -c${TEMPFILE} -d"P2=admin&Login=Login&gnkey=0b82" http://${ip}/dologin.htm
curl -s -o/dev/null -b${TEMPFILE} http://${ip}/rs.htm
done
#end---
Just list your phone(s) in PHONES. If you want it done automatically
at a set time, just invoke the script from cron.
Cheers
Tony
--
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org
More information about the asterisk-users
mailing list