Skip to main content
Question

Jamf command not found


Forum|alt.badge.img+5

Does anyone know why I would be getting a "Jamf command not found" when I am trying to sudo Jamf policy on a machine that has been running Jamf via DEP?

11 replies

Forum|alt.badge.img+4
  • New Contributor
  • 29 replies
  • February 27, 2019

Try running it with the full path to the binary. If that doesn't work it could be because the device is MDM enrolled via DEP but the binary got uninstalled or never was somehow. In that case you'll need to re-enroll the device so the binary is reinstalled.

sudo /usr/local/jamf/bin/jamf policy

Forum|alt.badge.img+18
  • Contributor
  • 475 replies
  • February 27, 2019

jamf should not be capitalized. That is your problem.


Forum|alt.badge.img+1
  • New Contributor
  • 2 replies
  • January 13, 2021

Im also facing the same issue but if run any command of sudo jamf recon/policy/manage/mdm/removeframework nothing works. Its happening whenever re-enrolling the mac and i can see MDM & other profiles are getting installed.

Anyone come across this kind of issue ?


Forum|alt.badge.img+6
  • New Contributor
  • 67 replies
  • January 14, 2021

Check the Jamf binary and agent exist.

ls -la /usr/local/jamf/bin/

What method are you using to enroll machines? And what OS version is being used?


Forum|alt.badge.img+6
  • Contributor
  • 16 replies
  • January 20, 2021

We just upgraded JAMF Pro to 10.26.1 and are testing our clients. Catalina is not experiencing any issue with enrollment nor functions with JAMF Pro. However, Big Sur is having an issue. We are using our on prem infrastructure url to enroll https://mycompany:8443/enroll The Cert and MDM are installing fine - all the config profiles come down, but Self Service never installs and there is no /usr/local/jamf folder. No JAMF commands work, yet I see no errors. Not seeing this behavior in 10.26.0


Forum|alt.badge.img

I'm seeing the exact same thing @simonep


Forum|alt.badge.img+7
  • Contributor
  • 66 replies
  • May 18, 2021

Same thing @simonep and @morgan .... what's the work around, or how did you fix?!


Forum|alt.badge.img+8
  • Contributor
  • 32 replies
  • June 10, 2021

Was this ever resolved?


PaulHazelden
Forum|alt.badge.img+12
  • Jamf Heroes
  • 376 replies
  • June 11, 2021

Just throwing this out there to help all with scripts. To find the full path use the "which" command in Terminal.

which jamf

returns

/usr/local/bin/jamf

That way you can find where any of the commands reside, and use their correct full path in scripts.


Forum|alt.badge.img+8
  • Contributor
  • 32 replies
  • June 11, 2021

I didn't have the Jamf Binary, it was a problem with one of the config profiles that was pushed to the MacBook air. The specific setting that would cause the jamf binary and self-service not to come down was in Computer< Configuration Profiles< [select the profile]< Restrictions and then in the "Applications" tab on the Restrictions section I had "Require Admin password to install or update apps" checked on. This had to be unchecked for the jamf binary to come down.


piotrr
Forum|alt.badge.img+8
  • Contributor
  • 132 replies
  • June 11, 2021

Great find, ChaseEndy!

agardner, If the user can remove profiles, remove the MDM profile and re-enroll, for example via https://YOURCOMPANY.jamfcloud.com/enroll - use Safari for this.

If the user CANNOT remove the MDM profile, you need to get rid of it somehow and re-enroll the machine.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings