Skip to main content
Question

Search Policy by ID?

  • May 6, 2014
  • 2 replies
  • 12 views

Forum|alt.badge.img+4

Is there a way to search policy by ID? I'm always interested which policy is running when in terminal, but it only displays by ID.

2 replies

stevewood
Forum|alt.badge.img+38
  • Hall of Fame
  • May 7, 2014

Well, there may be a way to do it via the API, but if you already have the ID of the policy, it's relatively easy to find the actual policy. Just click on any policy and change out the id= section of the URL for the ID you have.

For example, if I wanted to know about policy ID 250, I'd use this:

https://jss.yourcompany.com:8443/policies.html?id=250

That will open up the policy page for you.


mm2270
Forum|alt.badge.img+24
  • Legendary Contributor
  • May 7, 2014

Unless something has changed in recent versions, if you just tail the jamf log in Terminal, it indicates what policy is executing. It should be the last line with the words "Executing Policy" followed by the display name of the policy itself.

tail -10 /var/log/jamf.log

If this behavior has changed in version 9, I'd be interested to know, since that would not be a change for the better in my opinion.