Skip to main content
Solved

Manual Trigger - documentation?


Forum|alt.badge.img+13

I feel like I'm missing something really simple. The Admin Guide nor a jaunt through the Nation here reveal information on creating a custom trigger.

Is there an article I'm missing that explains how this feature works?

Best answer by mm2270

I'll admit there isn't much information out there about manual triggers, but it use is exactly as simple as rockpapergoat states it. Set a manual trigger for a policy, then from a script, which could be run from another policy or some other process, call it with 'jamf policy -trigger CustomTriggerName'

Easy. And it can be very useful under the right circumstances too.

View original
Did this topic help you find an answer to your question?

5 replies

Forum|alt.badge.img+13

you mean, like set the trigger to some value in the policy, then run the policy with a "jamf policy -trigger blah" command, right?


Forum|alt.badge.img+16
  • Legendary Contributor
  • 7880 replies
  • Answer
  • June 27, 2012

I'll admit there isn't much information out there about manual triggers, but it use is exactly as simple as rockpapergoat states it. Set a manual trigger for a policy, then from a script, which could be run from another policy or some other process, call it with 'jamf policy -trigger CustomTriggerName'

Easy. And it can be very useful under the right circumstances too.


Forum|alt.badge.img+13
  • Author
  • Valued Contributor
  • 89 replies
  • June 27, 2012

Okay, I think I was over thinking it.

Thanks for the reality check. ;)


donmontalvo
Forum|alt.badge.img+36
  • Legendary Contributor
  • 4293 replies
  • June 27, 2012

This one had me scratching my head a while back too...we use "install<appname>" for custom triggers:

Management > Computer Management > Policies > Create Policy > Create Policy Manually > Display and Exeution Setting > Triggered By: [color=blue][other...] [/color]Manual Trigger: [color=blue][installcyberduck][/color]

...we sometimes add a second trigger to kick in after the first:

Advanced > Run Command: [color=blue][jamf policy -trigger ftpbookmarks[/color]]

PS, If you rollover the (i) icon at the left of the policy, you'll see that the Run Command command runs last. :)

Don


Forum|alt.badge.img+31
  • Honored Contributor
  • 2721 replies
  • June 27, 2012

I just want to reiterate what Don posted above. The Run command in a policy runs after the policy executes. So the CasperShare is no longer mounted, it runs at the very end. Just keep that in mind. If you daisy chain to another policy the process should start over, but you could run into some logic issues.

Just be sure to test it out a ton before deploying, but that goes with out saying.

Thanks,
Tom


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