sudo jamf recon - Remote Desktop

m_higgins
Contributor

Since the changes to the binary and locations of

I can no longer run any commands via apple remote desktop

Any ideas?

1 ACCEPTED SOLUTION

RobertHammen
Valued Contributor II

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

View solution in original post

7 REPLIES 7

AVmcclint
Honored Contributor

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.

m_higgins
Contributor

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
Honored Contributor

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
Valued Contributor II

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

m_higgins
Contributor

Perfect!! Thanks @RobertHammen

and thanks @AVmcclint for your input also

Together! Thats how we make it work you see!

stutz
Contributor

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.

IT-Chris
New Contributor III

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