Skip to main content
Question

jamf binary question

  • February 15, 2008
  • 5 replies
  • 0 views

Forum|alt.badge.img+31
  • Honored Contributor
  • 2721 replies

Is it possible to see what Jamf binary is doing with the under the hood
Unix? Like for example if i write a script using the Jamf binary to
accomplish a task, is there a way to see exactly what unix commands it
is using to do so?

I would like to see how exactly some of the commands are handling
certain things at certain times. Just out of curiosity and to perhaps
better implement some scripting I do.

Thanks,

Thomas Larkin
TIS Department
KCKPS USD500
tlarki at kckps.org
cell: 913-449-7589
office: 913-627-0351

5 replies

Forum|alt.badge.img+9
  • Contributor
  • 202 replies
  • August 21, 2012

You can see - what is happening at an elementary level by running the policy update command manually…

On a Client Type in Terminal:

sudo /usr/sbin/jamf policy

It will then - immediately - look for and execute any policies

And you can see in terminal – which one it's applying – and any issues with them

The advantages of this method -- for Testing --
is that:
-- the effect takes place immediatly - no waiting
-- and you can see exactly what policies are being applied --
-- and what their results are -- from the client end --


Forum|alt.badge.img+9
  • Contributor
  • 202 replies
  • August 21, 2012

Hi again

I forgot to say -- That command will generally look for the "any" policy
Although since no policy trigger is specified there, it may look for others too… ?


Forum|alt.badge.img+13

i think you misunderstood tom's question. he was (in 2008) looking for documentation on what commands are run when the jamf binary is used to perform certain tasks.

for reference, you can do a number of things to gain insight here.

run `strings` on the jamf binary itself to see a bunch of commands embedded in plain text.

use `dtruss` (uses dtrace) to watch spawned processes as you run the jamf binary. you could do something like `sudo dtruss jamf manage -verbose` to start.

likewise, using `dtrace` to follow what /usr/sbin/jamf does when running will be informative. in addition to the man page, here's a good reference: http://www.dtracebook.com


Forum|alt.badge.img+4
  • Contributor
  • 10 replies
  • September 16, 2012

Not cool. So I'm interested in checking out this strings command, right? It started with an innocent search on google for "man strings".
Awful - just awful.


Forum|alt.badge.img+8
  • Contributor
  • 131 replies
  • September 28, 2015

LOL


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