Plantronics + Polycom. Now together as Poly Logo

Push command to multiple ip addresses

Highlighted
Valued Contributor

Push command to multiple ip addresses

Hi there

 

Is there a way of sending a push command to multiple phones in the same subnet at all?

 

I know to send one is:

 

curl --digest -u PUSHUSERNAME:PUSHPASSWORD -d $'<PolycomIPPhone><Data priority="all">Action:UpdateConfig</Data></PolycomIPPhone>' --header "Content-Type: application/x-com-polycom-spipx" http://***Phone_IP_ADDRESS***/push

 

would it be:

 

curl --digest -u PUSHUSERNAME:PUSHPASSWORD -d $'<PolycomIPPhone><Data priority="all">Action:UpdateConfig</Data></PolycomIPPhone>' --header "Content-Type: application/x-com-polycom-spipx" http://***Phone_IP_ADDRESS-1***,Phone_IP_ADDRESS-2/push

 

for multiple?

 

Cheers

 

Dave

Message 1 of 3
2 REPLIES 2
Highlighted
Advisor

Re: Push command to multiple ip addresses

I think this should work. Using braces to enlcose multiple IP addresses should do the trick. Did it not work on your system?

Folkerson Communications, Ltd
Message 2 of 3
Highlighted
Valued Contributor

Re: Push command to multiple ip addresses

Hi all sorry been a while since I have been on here... as a solution for me I wrote a script that will send the push command to multiple ip addresses at the same time:

 

command="echo test"
while read host
do

curl --digest -u PUSH_USERNAME:PUSH_PASSWORD -d $'<PolycomIPPhone><Data priority="all">Action:UpdateConfig</Data></PolycomIPPhone>' --header "Content-Type: application/x-com-polycom-spipx" http://${host}/push

done < hosts.txt

 then you have a seperate text file with a list of phone ip's like so: eg hosts.txt

 

10.96.95.34
10.96.95.35
10.96.95.36
10.96.95.37
10.96.95.38

 The script will read the hosts.txt file and send the command (in this case update config) to the phones.  You will need the push configured on the phones with:

 

apps.push.messageType="5"
apps.push.serverRootURL=""
apps.push.username="PUSH_PASSWORD"

 and also the httpd settings will need to be set on the phone:

 

httpd.cfg.enabled="1"  <----not used for push
httpd.enabled="1"      <----this is used to allow push

 

Obviously your network will need to allow for routing to the subnets of the phones in order for this to work...

 

Hope this helps others out a little

 

Cheers

 

Dave

Message 3 of 3