• ×
    Information
    Windows update impacting certain printer icons and names. Microsoft is working on a solution.
    Click here to learn more
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Windows update impacting certain printer icons and names. Microsoft is working on a solution.
    Click here to learn more
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
The HP Community is where owners of HP products, like you, volunteer to help each other find solutions.
HP Recommended

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

2 REPLIES 2
HP Recommended

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

HP Recommended

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

† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.