An NCI can be configured to call an ASL hook script just before notification publication; all other NOTIF NCI processing is performed prior to this call. You can type the hook script in the ASL Hook Script field in the General tab of the NCI Setup dialog box (see the figure). NOTIF looks up ASL hook scripts in the local/rules or /rules directories. For example, if you type icoi-trapd/sample_hook.asl in the ASL Hook Script field in the General tab of the NCI Setup dialog box, NOTIF will look up local/rules/icoi-trapd/sample_hook.asl and rules/icoi-trapd/sample_hook.asl.
Writing ASL for use with VMware Telco Cloud Service Assurance NOTIF NCI processing on page 106 provides information on how to write an NCI ASL hook script.
NOTIF passes the necessary information to reference the notification to the hook script. In return, the hook script passes a flag back to NOTIF that indicates if the notification should be published. It is the responsibility of the hook script to determine if the notification should be deleted, modified, or related to other notifications.
The hook script is called both on setting and clearing of a notification generated by external sources, but not for an aggregate notification created by this NOTIF server. In that case, the hook script is only called for the onset of the aggregate since the clearing of the aggregate is done by the internal VMware Telco Cloud Service Assurance processing.