[Asterisk-Users] Re: GS 101/102 Reboot

David J Carter david.carter at codepipe.com
Mon Sep 27 05:28:10 MST 2004


Cheers Tony,

Works a treat.

Dave

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com]On Behalf Of Tony
Mountifield
Sent: 27 September 2004 12:49
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] Re: GS 101/102 Reboot


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
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list