Creating an alarm in Spectrum for cefcModuleOperStatus when status is not ok.
search cancel

Creating an alarm in Spectrum for cefcModuleOperStatus when status is not ok.

book

Article ID: 439697

calendar_today

Updated On:

Products

Network Observability Spectrum

Issue/Introduction

We require an alarm on the attribute cefcModuleOperStatus, and if this attribute is not ok, we would like a Major (2) alarm to be created.  We would like to clear that alarm on the device returns back to Ok status.

How can this be achieved in Spectrum?

Environment

Spectrum : Any

Cause

No alarm setup for cefcModuleOperStatus out of the box.

Resolution

We can create a custom event by editing the $SPECROOT/custom/Events/EventDisp file and add the following

 

0x002104b1 E 20 R { 3 } CA.EventCondition, "({v 1} != {I 2})" , "0xfff00464 -:-" R { 3 } CA.EventCondition, "({v 1} == {I 2})" , "0xfff00463 -:-"

0xfff00463 E 50 C 0xfff00464
0xfff00464 E 50 A 2,0xfff00464

 

When the trap is received and varbind 1 does not equal 2, then we will create a Major alarm. 0xfff00464

When the trap is received and varbind 1 equals 2, then we will clear the alarm.   0xfff00463 

 

This is based upon the mib values.

 

cefcModuleOperStatus OBJECT-TYPE
    SYNTAX ModuleOperType {
      unknown(1),
      ok(2),
      disabled(3),
      okButDiagFailed(4),
      boot(5),
      selfTest(6),
      failed(7),
      missing(8),
      mismatchWithParent(9),
      mismatchConfig(10),
      diagFailed(11),
      dormant(12),
      outOfServiceAdmin(13),
      outOfServiceEnvTemp(14),
      poweredDown(15),
      poweredUp(16),
      powerDenied(17),
      powerCycled(18),
      okButPowerOverWarning(19),
      okButPowerOverCritical(20),
      syncInProgress(21),
      upgrading(22),
      okButAuthFailed(23),
      mdr(24)
    }

Additional Information

Further information on Working with Event Rules