Jamf Recon Broken? Here is a fix!

KyleEricson
Valued Contributor II
After some research, it seems that Jamf recon is getting hung up on locating hardware which is because this setting is enabled.

Collect available software updates

2022-02-25_00-33-55.png
There seems to be a Jamf PI issue on this.
We have two workarounds.
  1. Run this command before the recon command:
sudo launchctl kickstart -k system/com.apple.softwareupdated
2. Disable this setting until Jamf fixes this issue.

If you are using this setting in your Jamf please report this to Jamf so they can fix this faster.
Read My Blog: https://www.ericsontech.com
5 REPLIES 5

stevewood
Honored Contributor II
Honored Contributor II

Actually, the issue is an Apple issue. Yes, there is a Jamf PI associated with this issue, but it is for Apple to fix.

 

I would highly suggest everyone file a case with Apple and provide number of computers impacted so that Apple understands how important this is to fix. If folks want to post their Apple case #s then others can reference when they file their cases. 

the workarounds that @KyleEricson posted are great ways to get past this issue until Apple fixes. 

KyleEricson
Valued Contributor II

@stevewood Ah makes sense thanks for the clarification.

Read My Blog: https://www.ericsontech.com

spalmer
Contributor III

While this might be a bug with macOS caused by Apple, I think the jamf binary should be a little more robust when running a recon and timeout after several minutes (and throw an error in the policy log) if processes that it calls, like the softwareupdate command, are not returning any kind of a response.  And in the case of softwareupdate it could even be smart enough to run the sudo launchctl kickstart -k system/com.apple.softwareupdated command mentioned and try again before ultimately timing out with an error.

They should also consider running the various commands in multiple threads so that when collecting inventory for something that takes a long time, like collecting fonts (on a designer's Mac) or collecting the size of user folders (with 1 TB of data), so that other info can be collected while those slower processes finish.

jamesandre
Contributor

I have found numerous Macs with the Jamf binary stuck for days or even up to a few months in a few cases. Meanwhile no other policies will run. Running the kickstart and killing the binary (or waiting for the Mac to eventually restart) has resolved it for me. If the Jamf binary timed out after a day I would have been able to fix it a lot easier.

cwaldrip
Valued Contributor

could there be something else? I tried the kickstart and I've unchecked the collect software updates. But it still hangs when it gets to "Locating hardware information (macOS 12.5.1)" :-\