I want to export alarm with NAS LUA script, based on https://ca-broadcom.wolkenservicedesk.com/external/article?articleId=34011 , but I can't found the status of alarm like (Open, Update and Close)
can you show me the script to show status of alarm like (Open, Update and Close) on output file ?
Release : 9.2.0
Component : UNIFIED INFRASTRUCTURE MGMT
There is no one single flag that can tell you whether an alarm is open/updated/closed but instead you need to look at a combination of two attributes:
- level (i.e. severity)
- supp_count (suppression count)
Basically, the logic should be as follows (in lua code):
status = "unknown"
if level == 0 then
-- if the level = 0, then the severity=clear, i.e. the alarm has been acknowledged by a user or has been cleared by the probe
status = "closed"
if supp_count > 1 then
-- you can rename this to "open" instead if you like