An NCI can be configured to call an ASL hook script just before notification publication; all other Smarts NOTIF NCI processing is performed prior to this call. You can enter the hook script in the ASL Hook Script field in the General tab of the NCI Setup dialog box. Smarts NOTIF looks up ASL hook scripts in the local/rules or /rules directories. For example, if you enter icoi-trapd/sample_hook.asl in the ASL Hook Script field in the General tab of the NCI Setup dialog box, Smarts NOTIF will look up local/rules/icoi-trapd/sample_hook.asl and rules/icoi-trapd/sample_hook.asl.

Note:

Writing ASL for use with Smarts NOTIF NCI processing on page 106 provides information on how to write an NCI ASL hook script.

Smarts NOTIF passes the necessary information to reference the notification to the hook script. In return, the hook script passes a flag back to Smarts 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 Smarts 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 Smarts processing.