Ionix/Smarts SAM: How do I archive notifications using an ASL script?
search cancel

Ionix/Smarts SAM: How do I archive notifications using an ASL script?

book

Article ID: 327641

calendar_today

Updated On:

Products

VMware

Environment

VMware Smart Assurance - SMARTS

Resolution

How do I archive Ionix/Smarts Service Assurance Management (Ionix SAM/Smarts SAM) notifications using an ASL script?



The following ASL script example could be used to purge notification objects from the Ionix/Smarts SAM topology for devices with "RSA" in the EventName:

START { .. eol }
do {
notiFactory = object("ICS_NotificationFactory", "ICS-NotificationFactory");
foreach noti (getInstances("ICS_Notification"))
{
notiObj=object(noti);
if (!(notiObj->isNull()) && (glob("RSA*", notiObj->EventName && notiObj->TroubleTicketID== "" )))
{
print("Clearing " . notiObj);
notiFactory->archiveNotification(notiObj, "Script", "Processed as part of cleanup");

}
}
}