Remotely Reboot Polycom Phone

I have had some issues with systems like RingCentral and Vonage where I have no ability to mass reboot the phones.  If the phones were on a POE switch I could easily reboot the switch.  After digging through the javascript actions on the web gui on the phones I found a one liner, using curl, to trigger the phone to reboot.  I only have a few phones and they have permanent addresses assigned by DHCP.  You could script out a loop to do the whole subnet or do a lot of copy and pasting.

curl -X POST https://10.1.10.76/form-submit/Restart –insecure –cookie Authorization=”Basic VXNlcjoxMjM=”