Export Alarm NAS output with status alarm

book

Article ID: 143137

calendar_today

Updated On:

Products

NIMSOFT PROBES DX Infrastructure Management

Issue/Introduction

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 ?

 



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