1.3 Defining Event Triggers

Triggers are events that cause the Endpoint Security Agent to determine when and if a script should be executed. These events can either be internal agent events or external events monitored by the agent. A script is run when one of the triggers is fired, the script is not already running, and the scripting context (system or user) is available.

Triggers are defined in the Scripting policy. You cannot use a script to change the triggers, but you can use a script to discover the trigger that initiated a script. For information, see Trigger Event Methods.

A brief description of each trigger is provided below. For more information, see Scripting Policy in the ZENworks Endpoint Security Policies Reference.

  • Immediate: Executes the script immediately on load of the script.

  • Location Change: Executes the script when entering or leaving a location. Trigger can be applied to all location changes or specific location changes only.

  • Network Change: Executes the script when a network environment that is used for location determination changes, even if the network change does not cause a location change.

  • Network Connect: Executes the script when the wired adapter, wireless adapter, or modem detects a new connection.

  • Network Disconnect: Executes the script with the wired adapter, wireless adapter, or modem loses a connection.

  • Policy Change: Executes the script when the effective policy is updated.

  • Timer: Executes the script every n minutes after the initial enforcement of the policy. The interval includes a one-minute boundary, meaning that the script is run within a minute (plus or minus) of the end of the interval.