Show packages currently being downloaded
Some packages take an awful amount of time to download We cannot get this from jamf.log but perhaps from the policy name or the cache folder?
@ftiff does the the name of the cache folder typically match the policy or package name?
Cache folder
we can find the packages being downloaded here in/Library/Application\ Support/JAMF/Downloads
$ sudo ls -l /Library/Application\ Support/JAMF/Downloads
total 53472
-rw-r--r-- 1 root wheel 27374089 Nov 25 09:16 EnterpriseConnect-1.6.2.pkg
$
It would be ideal to monitor this folder, as we could even add a progress bar while it is being downloaded (provided we know the size). Unfortunately it needs admin rights as folder is 700
Policy name
We could add a new watch on /var/log/jamf.log for the policy name:
Fri Nov 25 09:16:10 François’s Mac mini jamf[21381]: Executing Policy Enterprise Connect
Downloads are shown in the JAMF log when JAMF is put into debug mode via: defaults write /Library/Preferences/com.jamfsoftware.jamf.plist global_log_level DEBUG
I run this command as the first thing in my DEP sequence and the last command in my DEP sequence then is: defaults delete /Library/Preferences/com.jamfsoftware.jamf.plist global_log_level DEBUG
This way you'd also be able to parse the log if the download fails or times out and return a red dot if that occurred.