Posted on 02-15-2008 07:43 AM
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
Posted on 08-21-2012 11:34 AM
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 --
Posted on 08-21-2012 12:50 PM
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… ?
Posted on 08-22-2012 06:49 AM
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
Posted on 09-15-2012 07:36 PM
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.
Posted on 09-28-2015 07:09 AM
LOL