Skip to main content
Question

Jamf command not found

  • Feb 27, 2019 8:32 PM UTC
  • 11 replies
  • 883 views

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
  • Feb 27, 2019 8:54 PM UTC

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+20
  • Contributor
  • Feb 27, 2019 9:47 PM UTC

jamf should not be capitalized. That is your problem.


Forum|alt.badge.img+1
  • New Contributor
  • Jan 13, 2021 8:29 AM UTC

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
  • Jan 14, 2021 11:33 AM UTC

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
  • Jan 20, 2021 9:21 PM UTC

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
  • May 18, 2021 1:48 PM UTC

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


Forum|alt.badge.img+8
  • Contributor
  • Jun 10, 2021 6:34 PM UTC

Was this ever resolved?


PaulHazelden
Forum|alt.badge.img+14
  • Jamf Heroes
  • Jun 11, 2021 10:20 AM UTC

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
  • Jun 11, 2021 1:20 PM UTC

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
  • Jun 11, 2021 1:24 PM UTC

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.