jamf cli tool..."show currently running policies" line?

daworley
Contributor II

Hey all,

The help file doesn't show quite enough data here... is there a way to ask the JAMF binary what current policies are running?

I'm thinking along the lines of: sudo jamf policy -showCurrentPolicies Is there any such command?

Thanks, - D

5 REPLIES 5

stevewood
Honored Contributor II
Honored Contributor II

I don't think there is a way to do it with the binary, but you can
tail the jamf.log file to get that info:

tail /var/logs/jamf.log

Steve

Sent from Somewhere

dderusha
Contributor

Tail /var/log/jamf.log

stevewood
Honored Contributor II
Honored Contributor II

Thanks! :-). That's what I get for going from memory at my
age....what were we talking about?

Steve

Sent from Somewhere

stevewood
Honored Contributor II
Honored Contributor II

That will show any policies that are currently running.

Steve

Sent from Somewhere

tlarkin
Honored Contributor

you can check what is currently running by running the show processlist;

mysql> show processlist; +-------------------------------------------------------------------------------------------+ | Id | User | Host | db | Command | Time | State | Info | +-------------------------------------------------------------------------------------------+ | 6 | jamfsoftware | localhost:49160 | jamfsoftware | Sleep | 278 | | NULL | | 7 | jamfsoftware | localhost:49161 | jamfsoftware | Sleep | 278 | | NULL | | 8 | jamfsoftware | localhost:49162 | jamfsoftware | Sleep | 278 | | NULL | | 9 | jamfsoftware | localhost:49163 | jamfsoftware | Sleep | 6 | | NULL | | 10 | jamfsoftware | localhost:49164 | jamfsoftware | Sleep | 278 | | NULL | | 910 | jamfsoftware | localhost:57723 | jamfsoftware | Sleep | 3 | | NULL | | 1332 | jamfsoftware | localhost:52561 | jamfsoftware | Sleep | 278 | | NULL | | 1333 | jamfsoftware | localhost:52563 | jamfsoftware | Sleep | 75 | | NULL | | 1334 | jamfsoftware | localhost:52564 | jamfsoftware | Sleep | 278 | | NULL | | 1339 | jamfsoftware | localhost:52569 | jamfsoftware | Sleep | 1 | | NULL | | 1341 | root | localhost | NULL | Query | 0 | NULL | show processlist | +-------------------------------------------------------------------------+------------------+ 11 rows in set (0.00 sec)