Skip to main content
Question

Jamf Recon Broken? Here is a fix!

  • February 25, 2022
  • 5 replies
  • 80 views

KyleEricson
Forum|alt.badge.img+17
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


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.

5 replies

stevewood
Forum|alt.badge.img+35
  • Hall of Fame
  • 1799 replies
  • February 25, 2022

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
Forum|alt.badge.img+17
  • Author
  • Valued Contributor
  • 444 replies
  • February 25, 2022

@stevewood Ah makes sense thanks for the clarification.


spalmer
Forum|alt.badge.img+22
  • Valued Contributor
  • 168 replies
  • February 28, 2022

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
Forum|alt.badge.img+7
  • Contributor
  • 59 replies
  • April 7, 2022

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.


Forum|alt.badge.img+17
  • Valued Contributor
  • 404 replies
  • August 30, 2022

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)" :-\\