How to change alarm severity using a NAS script

Document ID:  TEC1999574
Last Modified Date:  06/07/2017
{{active ? 'Hide' : 'Show'}} Technical Document Details

Products

  • CA Unified Infrastructure Management

Releases

  • CA Unified Infrastructure Management:Release:8.42
  • CA Unified Infrastructure Management:Release:8.47
  • CA Unified Infrastructure Management:Release:8.5
  • CA Unified Infrastructure Management:Release:8.51

Components

  • UIM NAS:UIMNAS
Summary:

How to change alarm severity using a script in NAS?

Environment:
CA Unified Infrastructure Management 8.4 and higher
Instructions:
  • Open NAS probe configuration

  • Select Auto-Operation >> Scripts tab

  • Create a new script with lines:

event.level = <DESIRED_EVENT_LEVEL>
return event

Example:

raise_script.png


In our example we will change Alarm severity to Critical, so script name will be Raise_severity_to_Critical.  

  • Save script as Raise_severity_to_Critical

Note:  Valid event levels values are:

0 (clear)                

1 (information)

2 (warning)

3 (minor)

4 (major)

5 (critical)

 

  • Go to the NAS Auto-Operation >> Pre-processing Rules tab

  • Create a rule that match alarm you want to trap and change the severity setting as this way:

Filter type =  ‘custom’

Severity Level = check all severity that apply, but do not include the new desired severity level, this is to avoid process alarms that already are in this severity level.

Filter pattern = Set as required to only match the specific Alarm, in this case will filter by message string only.

Customer Script = <YOUR SCRIPT NAME>

Example:

raise_rule.png

 

  • Save the Pre-processing rule with a name that identify its function.
    In our example, as we filtering message using"testing message"  pattern and script will raise priority to critical, will save rule as Set "testing message" alarms to Critical
     


  •  At NAS Auto-Operation >> Pre-processing Rules tab, right click on new rule and select Activate.

    Example:

    raise_rule_acrtivate.png

 

  • Test the rule forcing a new message 

Example:

This is the Alarm while rule is inactive.

raise_alarm_blue.png

This is how Alarm is shown after activating the rule and recycle NAS.

raise_alarm_red.png

 

 

 

Please help us improve!

Will this information enable you to resolve your issue?

Please tell us what we can do better.

{{feedbackText.length ? feedbackText.length : '0'}}/255

{{status}}

Not what you were looking for?

Search Again >

Product Information

Support by Product >

Communities

Join a Community >

Chat with CA

Just give us some brief information and we'll connect you to the right CA ExpertCA sales representative.

Our hours of availability are 8AM - 5PM CST.

All Fields Required

connecting

We're matching your request.

Unfortunately, we can't connect you to an agent. If you are not automatically redirected please click here.

  • {{message.agentProfile.name}} will be helping you today.

    View Profile


  • Transfered to {{message.agentProfile.name}}

    {{message.agentProfile.name}} joined the conversation

    {{message.agentProfile.name}} left the conversation

  • Your chat with {{$storage.chatSession.messages[$index - 1].agentProfile.name}} has ended.
    Thank you for your interest in CA.


    Rate Your Chat Experience.

    {{chat.statusMsg}}

agent is typing