E
E
Eugene P.2015-12-14 14:33:53
Asterisk
Eugene P., 2015-12-14 14:33:53

How to remotely reboot all/multiple Grandstream and Cisco phones?

There are about 50 Grandstream and Cisco IP phones, and each time you change the time zone, you have to reboot them individually.
How can this process be automated? Please tell me the command or script for this task.
thanks for the help

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Eugene P., 2015-12-23
@Eleges

In general, I solved the problem in this way: I
wrote a script that searches for phone types and reboots them
- For Cisco http://<phone address>/admin/reboot (thanks Rsa97 )
In the script, we read the phone list, find out the IP and substitute it in the right place:

while read TYPE MAC IP EXT IGNORE; do
    echo "$TYPE, $MAC, $IP, $EXT, $IGNORE"
    if [ "$TYPE" == "SPA303" ]; then
        echo "Processing $IP - $EXT"
        curl -s "http://$IP/admin/reboot" > /dev/null
        sleep 1
    fi
done

- But for the GXP2100 it is different than for the GXP2000
There is such a principle:
http://XX.XX.XX.XXX/cgi-bin/api-sys_operation?request=REBOOT&sid=9c1543c2a95

Here is more information if needed.

R
Rsa97, 2015-12-14
@Rsa97

Isn't it easier to set up an automatic belt change once in phones?
And so Cisco SPA is rebooted by a request to http://<phone address>/admin/reboot
Grandstream - http://<phone address>/rs.htm
Only pre-authorization on the phone may be required

V
Viktor, 2015-12-16
@awsswa59

The configured provisioning on phones solves this problem instantly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question