Skip to main content
Question

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

  • December 16, 2011
  • 5 replies
  • 94 views

Forum|alt.badge.img+13

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

stevewood
Forum|alt.badge.img+38
  • Hall of Fame
  • December 16, 2011

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


Forum|alt.badge.img+15
  • Contributor
  • December 16, 2011

Tail /var/log/jamf.log


stevewood
Forum|alt.badge.img+38
  • Hall of Fame
  • December 16, 2011

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

Steve

Sent from Somewhere


stevewood
Forum|alt.badge.img+38
  • Hall of Fame
  • December 16, 2011

That will show any policies that are currently running.

Steve

Sent from Somewhere


Forum|alt.badge.img+31
  • Honored Contributor
  • December 19, 2011

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)