SPC-WCH-20072: User Defined Error when creating SpectroWATCH expression using attributes with set value
search cancel

SPC-WCH-20072: User Defined Error when creating SpectroWATCH expression using attributes with set value

book

Article ID: 248874

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

When creating a SpectroWATCH for attribute permanentTunnelState defined as:

The following error is thrown:

Environment

DX NetOps Spectrum all supported Releases

Cause

The error means that the expression definition is invalid in some way. In this case, the value after the '==' does not match the data type of the attribute.

Resolution

This attribute - permanentTunnelState (1.3.6.1.4.1.2620.500.9003.1.3) is defined as an integer list with the following possible values:

OID Reference - permanentTunnelEntry

permanentTunnelState OBJECT-TYPE

            SYNTAX  INTEGER {

                          active(3),

                          destroy(4),

                          idle(129),

                          phase1(130),

                          down(131),

                          init(132),

             }

            ACCESS  read-write

            STATUS  mandatory

            ::= { permanentTunnelEntry 3 }

Instead of the value in the expression being a Text String - "active", the data type has to be set to integer:

 

And it has to be just the attribute with an instance identifier. The instance ID should be either a number (for a specific instance) or # for all instances.

As permanentTunnelState has two attribute IDs:

 
 
Instead of referencing it by name, in this case you should use the attribute id in the watch:
 
ATTR(0xc4229f).#
 
So:
 

Then, attach a threshold equal to 3 which represents that state: