====== Discovered Trap Scripts ====== Author: Eoin Joy\\ \\ These scripts are designed with the purpose of turning an alarm discovered during an alarm sync into a trap to be processed by the normal trap handling process. ===== Trap Knowledge ===== This script takes the discovered alarm we have determined we wish to create a local alarm for and finds the trap knowledge that would apply to it. ==== Return Value ==== //TrapKnowledge// ==== Inserted Variables ==== **networkElement** – //NetworkElement// – The NetworkElement that the DiscoveredAlarm was found on.\\ **discoveredAlarm** – //DiscoveredAlarm// – The DiscoveredAlarm in question. ===== To Trap ===== This script takes the discovered alarm as well as its calculated trap knowledge and network element and generates a trap object to throw to the distributor as if to emulate the arrival of a real trap. ==== Return Value ==== //Trap// – A real trap object that will be sent to the distributor. ==== Inserted Variables ==== **networkElement** – //NetworkElement// – The NetworkElement that the DiscoveredAlarm was found on.\\ **discoveredAlarm** – //DiscoveredAlarm// – The DiscoveredAlarm in question.\\ **trapKnowledge** – //TrapKnowledge// – The TrapKnowledge entry found by the Trap Knowledge script. ===== Trap Knowledge Override ===== This script is unused.