Hello!
I need to send the update inventory command to my iPads to be able to check when they run out of battery.
Gladly i succeeded writing the test script to send it to one device, but i im looking for a way to send it to a whole group instead of doing it device per device.
This is the beautiful script.
#!/bin/bash
deviceID="59"
# This works for single commands
data="<mobile_device_command><general><command>UpdateInventory</command></general><mobile_devices><mobile_device><id>59</id></mobile_device></mobile_devices></mobile_device_command>"
curl -fsku "${usr}:${pass}" -H "Content-Type: text/xml" "${jssdomain}/JSSResource/mobiledevicecommands/command" -d $data -X POST
Do you have any idea of how would it work for mobile devices smart groups?
Regards!