When we sync shared devices using Apple Configurator (1.7.2)
It randomly will skip over apps without error or any feedback.
If we look at the details of each device: total number of installed apps
we can locate the ones that have skipped apps, this view is not that helpful.
I know that there is a feature request for this, but is there any way to show this information as a display field using an extension attribute?
Solved
iOS total number of installed apps: Extension Attribute?

Best answer by bumbletech
I had a moment to try a few things out with iPads with spaces in their names in my environment. Hopefully this will get you closer:
#!/bin/bash
#Set variables for for JSS access
apiPath="https://yourjssurl/JSSResource/mobiledevices/name/"
apiReadOnlyUser=user
apiReadOnlyPass='pass'
###############################################
### Don't edit past this line. Or whatever. ###
###############################################
#Asks for the base name of the iPad group you're wanting to check app counts on
echo ""
echo "Please enter the basename for the iPads you'd like to look up"
echo "(Make sure to include any separators between your basename and the device's number. If a space separates your basename from the device number use '%20' instead at the end of your basename.)"
read baseName
#ask how many ipads are in the cart so it knows where to stop because I didn't write this all that well
echo ""
echo "How many iPads are in the cart?"
echo "(Script assumes number sequences like 01, 02, 03... Enter at least '10' for double digits to work correctly)"
read END
echo ""
echo "Let me look those up for you..."
for i in $(seq -w 01 $END)
do
individualDeviceName="$baseName$i"
curlDeviceName=${individualDeviceName// /%20}
appcount=`curl -k -s -u $apiReadOnlyUser:"$apiReadOnlyPass" $apiPath$curlDeviceName/subset/applications | /usr/bin/awk -F'<size>|</size>' '{print $2}'`
if [ "$appcount" == "" ]
then
echo "$baseName: I don't think this iPad exists, man."
else
echo "$baseName: $appcount apps"
fi
done
Other than that... Apparently, if you're on Java OpenJDK 6 your JSS will return JSON instead of XML, and we want XML. https://jamfnation.jamfsoftware.com/discussion.html?id=7673
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.