After OI domain manager restarts, all persisted ICS_Notification
Smarts: All Supported OI Suite
Version: 25.x and later
On restart, the RESTORE_NOTIFICATIONS rule in icoi-init.asl
NOTE: Following workaround would work on new traps generated after implementing custom asl but would not work on existing trap notification.
A pre-modified icoi-init.asl is provided as an attachment to this KB article. It introduces a configurable variable KeepActiveSourcesOnRe
Prerequisites
dmctl -s <OI> get ICS_Domain::ICS-Trap-Normalization::DomainName
Example:
dmctl -s INCHARGE-OI get ICS_Domain::ICS-Trap-Normalization::DomainNameFor a standard Trap Adapter deployment, the value is typically "Trap Processor".
Implementation Steps
mkdir -p $SM_HOME/local/rules/icoiThe typical full path is <SAM_BASE>/smarts/$SM_HOME/local/rules/icoi/icoi-init.asl default KeepActiveSourcesOnRestart = "";Set it to the DomainName of the trap-based source identified in the Prerequisites step. default KeepActiveSourcesOnRestart = "Trap Processor";Note: For multiple sources, use a comma-separated list with no spaces:default KeepActiveSourcesOnRestart = "Trap Processor,MyOtherTrapSource";This is the only line in the file that needs to be edited. No other modifications are required.sm_service stop <OI_SERVICE>
sm_service start <OI_SERVICE>Post restart, All the notifications from the specified source under variable "KeepActiveSourcesOnRestart" will have the EventState as "ACTIVE", verify it as: dmctl -s <OI> get ICS_Notification::<NotificationName>::EventState
Example:
dmctl -s INCHARGE-OI get ICS_Notification::<NotificationName>::EventStateNotes
Rollback
Remove the placed file from $SM_HOME/local/rules/
rm $SM_HOME/local/rules/icoi/icoi-init.asl sm_service stop <OI_SERVICE>sm_service start <OI_SERVICE>