A sample ECI ASL hook script is provided below for reference:

/* 
 * Sample-ECI.asl - Hook adapter for any ECI related customizations.
 */
debug = FALSE;   
// Input/Output variables.
CLASSNAME = "";
INSTANCENAME = "";
EVENTNAME = "";
SEVERITY = "";
EVENTTEXT = "";
CATEGORY = "";
EXPIRATION = "";
STATE = "";
INMAINTENANCE = "";
CLEARONACKNOWLEDGE = "";
EVENTTYPE = "";
ELEMENTCLASSNAME = "";
EVENTDISPLAYNAME = "";
ELEMENTNAME = "";
USERDEFINED1 = "";
USERDEFINED2 = "";
USERDEFINED3 = "";
USERDEFINED4 = "";
USERDEFINED5 = "";
USERDEFINED6 = "";
USERDEFINED7 = "";
USERDEFINED8 = "";
USERDEFINED9 = "";
USERDEFINED10 = "";
USERDEFINED11 = "";
USERDEFINED12 = "";
USERDEFINED13 = "";
USERDEFINED14 = "";
USERDEFINED15 = "";
USERDEFINED16 = "";
USERDEFINED17 = "";
USERDEFINED18 = "";
USERDEFINED19 = "";
USERDEFINED20 = "";
// Input Variables
TIMESTAMP = "0";
IPADDRESS = "";
SYSNAMEORADDR = "";
ENTERPRISE = "";
GENERIC = "9999";
SPECIFIC = "9999";
// Varbind and OID values
V1 = "";
V2 = "";
V3 = "";
V4 = "";
V5 = "";
V6 = "";
V7 = "";
V8 = "";
V9 = "";
V10 = "";
V11 = "";
V12 = "";
V13 = "";
V14 = "";
V15 = "";
V16 = "";
V17 = "";
V18 = "";
V19 = "";
V20 = "";
OID1 = "";
OID2 = "";
OID3 = "";
OID4 = "";
OID5 = "";
OID6 = "";
OID7 = "";
OID8 = "";
OID9 = "";
OID10 = "";
OID11 = "";
OID12 = "";
OID13 = "";
OID14 = "";
OID15 = "";
OID16 = "";
OID17 = "";
OID18 = "";
OID19 = "";
OID20 = "";
// Flag to discard the trap, when set to TRUE.
DISCARD_TRAP = "FALSE";
NotificationName = "";
MessageType = "";
NotifIntegration = "TRUE";
// Flag to update the UserDefined[1-20] fields and EventText, upon CLEAR
// when set to TRUE.
UPDATE_USERDEF_FIELDS = "FALSE";
if (debug) { print("Running my ECI Hook.asl "); }
START {
    .. eol
} do {
    // Default output is the same as input.
    // Set attributes in ICS_Notification.  Add any more customizations here ...
    USERDEFINED3 = "Added this in custom ruleset";
    if (debug) { print("Done with my ECI Hook.asl ");}
    return;
}
/*
 * These variables describe the formatting of this file.  If you don't
  * like the template defaults, feel free to change them here (not in 
  * your .emacs file).
 *
 * Local Variables:
 * mode: C++
 * End:
 */