Skip to content

Instantly share code, notes, and snippets.

@krypted
Created March 28, 2019 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krypted/3c3f6b69e20ba04b783dc236bef7183c to your computer and use it in GitHub Desktop.
Save krypted/3c3f6b69e20ba04b783dc236bef7183c to your computer and use it in GitHub Desktop.
#! /bin/bash
curl -s -u myuser:mypassword https://myserver.jamfcloud.com/JSSResource/computers | sed -n -e 's/.*<size>\(.*\)<\/size>.*/\1/p' curl -s -u myuser:mypassword https://myserver.jamfcloud.com/JSSResource/mobiledevices | sed -n -e 's/.*<size>\(.*\)<\/size>.*/\1/p'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment