As shown in Figure: EHS Object Relationships, the steps involved in configuring EHS are:
configure a script and script policy under the config>system>script-control context; the script policy references the configured script
configure an event handler under the config>log>event-handling context and assign actions that reference the previously configured script policy
configure the event trigger under the config>log>event-trigger context that defines the event that triggers the running of the script
See the 7705 SAR Basic System Configuration Guide, "CLI Script Control" for information about configuring scripts and script policies.