Skip to main content
Solved

Jamf Pro 10.5 & Jamf: command not found

  • July 5, 2018
  • 14 replies
  • 53 views

Forum|alt.badge.img+8

Just upgraded to Jamf Pro 10.5. When I run a quickadd.pkg or enroll via Jamf Recon, everything works perfectly except running jamf commands from the terminal. I run any of the following commands the terminal returns with "sudo: jamf: comand not found":

sudo jamf recon
sudo jamf policy
sudo jamf enroll -prompt
sudo jamf manage

  • Has anyone else run into this issue?
  • I'm using the thin image method, so the quikadd.pkg & recon are vital to my process.
  • OS is currently High Sierra 10.13.5

Best answer by MTFIDjamf

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

14 replies

Forum|alt.badge.img+26
  • Esteemed Contributor
  • July 5, 2018

you have to add the path to the binary: sudo usr/local/bin/jamf recon


Forum|alt.badge.img+9
  • Valued Contributor
  • July 5, 2018

@Sandy is this new in 10.5? I've never had to run any Jamf commands in that manner.


emily
Forum|alt.badge.img+24
  • Hall of Fame
  • July 5, 2018

Have you confirmed that the jamf binary is installed correctly on the devices where you're seeing this happening?


Forum|alt.badge.img+11
  • Contributor
  • July 5, 2018

haver you tried

which jamf

this will let you know if it's installed.


anverhousseini
Forum|alt.badge.img+11

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

Forum|alt.badge.img+14
  • Valued Contributor
  • Answer
  • July 5, 2018

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


Forum|alt.badge.img+8
  • Author
  • Contributor
  • July 5, 2018

@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.


Forum|alt.badge.img+8
  • Author
  • Contributor
  • July 6, 2018

@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.


scottb
Forum|alt.badge.img+18
  • Valued Contributor
  • July 11, 2018

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.


Forum|alt.badge.img+26
  • Esteemed Contributor
  • July 11, 2018

@scottb Of course, you should open a ticket!


Forum|alt.badge.img+7
  • Valued Contributor
  • September 17, 2018

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.


Forum|alt.badge.img+3
  • New Contributor
  • September 28, 2018

This is still an issue with 10.7.1. I was able to fix it with @anverhousseini 's suggestion.


Forum|alt.badge.img+7
  • Contributor
  • September 28, 2018

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.


Forum|alt.badge.img+1
  • New Contributor
  • February 6, 2024

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.