How to change alarm severity using a NAS script

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


  • CA Unified Infrastructure Management


  • 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



How to change alarm severity using a script in NAS?

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

  • Select Auto-Operation >> Scripts tab

  • Create a new script with lines:

event.level = <DESIRED_EVENT_LEVEL>
return event



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>




  • 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.




  • Test the rule forcing a new message 


This is the Alarm while rule is inactive.


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





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


Not what you were looking for?

Search Again >

Product Information

Support by Product >


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


We're matching your request.

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

  • {{}} will be helping you today.

    View Profile

  • Transfered to {{}}

    {{}} joined the conversation

    {{}} left the conversation

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

    Rate Your Chat Experience.


agent is typing