We have a large flood of alarms from a particular probe and we need to delete these alarms quickly.
Deleting thousands of alarms from the GUI is tedious. Can we script or automate the deletion?
DX UIM - Any Version
The following is a Lua script which can be run inside the NAS Scripting GUI to quickly close/delete all alarms from a specific probe and robot.
This script is provided AS-IS and Broadcom Support is unable to assist with modifying or troubleshooting it.
You will need to modify the first two lines to give the appropriate robot name and probe name which have generated the alarms to delete.
robot_to_delete = 'robot_name'probe_to_delete = 'probe_name'alarmlist = alarm.list()for k,v in pairs(alarmlist) doprint(alarmlist[k].prid)if alarmlist[k].robot == robot_to_delete thenif alarmlist[k].prid == probe_to_delete thenaction.close(alarmlist[k]["nimid"])endendend