can you show me the script to show status of alarm like (Open, Update and Close) on output file ?
Environment
Release : 9.2.0
Component : UNIFIED INFRASTRUCTURE MGMT
Resolution
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" else if supp_count > 1 then status="updated" else -- you can rename this to "open" instead if you like status="new" end end