Skip to main content
Solved

sudo jamf recon - Remote Desktop

  • October 13, 2015
  • 7 replies
  • 121 views

Forum|alt.badge.img+8

Since the changes to the binary and locations of

I can no longer run any commands via apple remote desktop

Any ideas?

Best answer by RobertHammen

/usr/local/jamf/bin/jamf works for me.

Doesn't appear to be a way to edit the path for the ARD user.

I took a different approach than @rtrouton and just created a "Send UNIX Command" template with the direct path above already typed...

7 replies

AVmcclint
Forum|alt.badge.img+21
  • Esteemed Contributor
  • October 13, 2015

Good catch. I wonder if ARD needs to be updated by Apple to include the safe zones in the paths it uses for El Capitan clients. I didn't see any way to update it in the preferences. I'd think that for now you may need to use "/usr/local/jamf recon" instead of just "jamf recon" when you send it via ARD.


Forum|alt.badge.img+8
  • Author
  • Contributor
  • October 13, 2015

Just tried that

I get Error:126 /usr/local/jamf: is a directory

Seems to miss the recon bit, tried with and without quotations


AVmcclint
Forum|alt.badge.img+21
  • Esteemed Contributor
  • October 13, 2015

oops.. my apologies. That's the wrong path. I'm trying to find the new path for El Capitan and Casper 9.8, but basically you may need to specify the full path of where the jamf binary is instead of just typing the command into ARD.

Here ya go: https://derflounder.wordpress.com/2015/09/24/path-environment-variables-and-casper-9-8/


RobertHammen
Forum|alt.badge.img+29
  • Esteemed Contributor
  • Answer
  • October 13, 2015

/usr/local/jamf/bin/jamf works for me.

Doesn't appear to be a way to edit the path for the ARD user.

I took a different approach than @rtrouton and just created a "Send UNIX Command" template with the direct path above already typed...


Forum|alt.badge.img+8
  • Author
  • Contributor
  • October 13, 2015

Perfect!! Thanks @RobertHammen

and thanks @AVmcclint for your input also

Together! Thats how we make it work you see!


stutz
Forum|alt.badge.img+5
  • Contributor
  • January 24, 2018

Run command to find the location:

which jamf

recon command: /usr/local/bin/jamf recon

Use a template in ARD saves some time typing it out.


Forum|alt.badge.img+5
  • Contributor
  • December 3, 2018

does anyone know how to use automator app to do a sudo jamf recon
Right now I have a automator script that renames the computer, but I want to to update the inventory after.
Commands work in terminal but not from automator .. shell script....