Skip to main content
Question

sudo: Jamf: command not found


m3ir
Forum|alt.badge.img+6
  • Contributor
  • 26 replies

Hi ,

I got a managed computer which did it's last check yesterday morning .
the last thing I did with this mac is update to the latest 10.12.6 a week ago , nothing other special thing I can think of.
I can't run simple jamf commands on this computer and gets "jamf command not found" .
Jamf binary installed on it in the default path /usr/local/jamf/bin/jamf .
Trying un it with full command path doesn't work either .
any clue what went wrong with this machine ?

Thanks ,

9 replies

howie_isaacks
Forum|alt.badge.img+23
  • Esteemed Contributor
  • 773 replies
  • July 26, 2017

Does it do this using every Jamf verb? Perhaps the Jamf components got damaged after the update. Sometimes, I have some managed systems that stop checking in. Running a quickadd on them usually fixes that. For this, you could try running a quickadd on this system to repair the Jamf components on this system.


Forum|alt.badge.img+7
  • Contributor
  • 35 replies
  • July 26, 2017

Have you put the period in front of the path?

sudo ./usr/local/jamf/bin/jamf

or alternate method, three commands in a row..

sudo su
cd /usr/local/jamf/bin
 ./jamf

m3ir
Forum|alt.badge.img+6
  • Author
  • Contributor
  • 26 replies
  • July 26, 2017

@howie_isaacks this is what I thinks I might do , But I wondered what may caused it .

@SimonCU nothing wroks , smae error message .

Thanks guys


m3ir
Forum|alt.badge.img+6
  • Author
  • Contributor
  • 26 replies
  • July 26, 2017

just found out what caused this issue .
I was trying to run "sudo jamf policy" thru Casper Remote it failed , and since then I get this "jamf command not found" when I try to run it locally .
a Bug ?

Casper log :

Sending Wake On LAN command... Opening SSH Connection to 10.0.1.68... Authenticating... Successfully authenticated. Verifying Computer's Identity... The MAC Address has been verified. Checking Operating System Version... Running Mac OS X 10.12.6 (16G29) Verifying /usr/local/jamf/bin/jamf... /usr/local/bin/jamf is (9.99.2-t1497984446) not the current version (9.99.0-t1494340586). Verifying /usr/sbin/jamf... /usr/sbin/jamf does not exist. Downloading /usr/local/jamf/bin/jamf from JSS... Moving jamf binary to /usr/local/jamf/bin/jamf... Created the jamf binary directory /usr/local/jamf/bin. Moving jamf binary to /usr/local/jamf/bin/jamf... Moved the JAMF CLI Binary to /usr/local/jamf/bin/jamf. Creating symlink /usr/local/bin/jamf... Enabling /usr/local/jamf/bin/jamf...

Forum|alt.badge.img+7
  • Contributor
  • 35 replies
  • July 26, 2017

Probably a failed download when it tried to update - if it arrived a few bytes short, then it will probably fail to validate when it tries to run. There is possibly a log file being produced somewhere, but as suggested, re-add it with a quick add [package if it is just a one off would probably be your best bet, as suggested by @howie_isaacks :)


howie_isaacks
Forum|alt.badge.img+23
  • Esteemed Contributor
  • 773 replies
  • July 26, 2017

I see problems similar to this sometimes after I do a Jamf Pro upgrade.


m3ir
Forum|alt.badge.img+6
  • Author
  • Contributor
  • 26 replies
  • July 26, 2017

what do you mean by Jamf pro Update ?
it's Jamf Cloud JSS 9.99.2-t1497984446 and I tried both Casper admin v9.99.0 and 9.100 , same result .


Forum|alt.badge.img+9

I experience the exact same problem. Updated a MBP Late 2016 to 10.12.6 earlier this week and tried to run a "sudo jamf ..." command today locally on the machine and I get the message "sudo: jamf: command not found" after i typed in the password.

The funny thing is, that casper remote from another machine to that particular machine still works. Also the policies (e.g. at recurring check-in) keep working.

I already tried to re-enroll the machine with the QuickAdd package (which successfully completed), but the error message in the terminal is persistent.

Any ideas?

BTW:
We are still using Casper 9.98 - anyone else still on 9.98 and experiencing troubles with 10.12.6?


Forum|alt.badge.img+9
  • Contributor
  • 29 replies
  • August 10, 2017

I wasn't able to fix the problem through the described solutions, so we upgraded our JSS to 9.100 and then i tried to re-enroll the machine, but the "jamf command not found" problem persisted.

After a restore of the whole machine it seems to work reliably again.


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