you have to add the path to the binary: sudo usr/local/bin/jamf recon
@Sandy is this new in 10.5? I've never had to run any Jamf commands in that manner.
Have you confirmed that the jamf binary is installed correctly on the devices where you're seeing this happening?
haver you tried
which jamf
this will let you know if it's installed.
I had the same issue, because this directory did not exist:
/usr/local/bin/
Just run this command as root user and it will fix this issue:
mkdir -p /usr/local/bin/ && /usr/local/jamf/bin/jamf policy
The jamf binary will then be linked again to
/usr/local/bin/jamf
This may be linked to the issue in the link below. We ran into this in 10.4 and now 10.5. Editing the postinstall script that is built into the QuickAdd resolved the issue for us.
https://www.jamf.com/jamf-nation/discussions/28097/jamf-pro-10-4-and-quick-add-package-bug
QuickAdd Bug
@anverhousseini your method worked. The quick add seems to be having trouble creating the /usr/local/bin/ directory for some reason. I've tried @MTurnerFMRCO 's fix, but the QuickAdd.pkg seems to create an alias for /usr/local/bin instead of a directory. I'm going to try to combine the two methods to resolve the issue. Thanks for pointing me in the right direction.
@MTurnerFMRCO Your method is the solution. I couldn't get this to work at first because the framework from the corrupted installation was still there. Once I manually removed the framework from the corrupted installation, the Quickadd.pkg started working. The Quikadd.pkg works every time on fresh 10.13.5 installations.
This is really not good, Jamf. I am on a deadline, and a JSS that WAS working now doesn't.
I can't get the above to work, and I don't understand how this has carried over from prior rev's to 10.5.0?
Going to have to open a ticket if I can't get it resolved.
@scottb
Of course, you should open a ticket!
I just ran into this issue. Running the latest Quickadd we had did not fix it until I removed the bad link bin link at /usr/local/bin using the RM command. After that I re-ran Quickadd and it was re-created correctly. We are currently on 10.5.0.
This is still an issue with 10.7.1. I was able to fix it with @anverhousseini 's suggestion.
We had the same issue when we upgraded our Test JSS to 10.5 (along with Self Service not being installed). We upgraded our Test JSS to 10.7.1 and both issues were fixed. JAMF support is aware of the issue, apparently no one does final quality control anymore.
I had the same issue, because this directory did not exist:
/usr/local/bin/
Just run this command as root user and it will fix this issue:
mkdir -p /usr/local/bin/ && /usr/local/jamf/bin/jamf policy
The jamf binary will then be linked again to
/usr/local/bin/jamf
I have tried but no help.