search cancel

SPC-WCH-20072: This is a user defined error while creating a watch for Fortinet device

book

Article ID: 255658

calendar_today

Updated On:

Products

CA Spectrum DX NetOps DX NetOps

Issue/Introduction

Error creating watch based on the community thread below:

https://community.broadcom.com/communities/community-home/digestviewer/viewthread?MID=779906

SPC-WCH-20072: This is a user defined error.

Environment

Release : 21.2

Cause

1. The fgHaStatsMasterSerial and fgHaStatsSerial attributes have two instances.

The .# and Instance None were causing the SPC-WCH-20072: This is a user defined error.

2. The fgHaStatsMasterSerial and fgHaStatsSerial are external attributes, they are not Database and/or Memory (internal attributes).

Hence Evaluate On Change cannot be selected in the Properties tab, in Evaluation, otherwise, the following error will be displayed:

SPC-WCH-20059: Invalid watch: At least one attribute of a IMT watch must have the database and/or memory flag(s) set.

3. The watch Name cannot have space, like: Fortigate Failover

Should be: Fortigate_Failover

 

 

Resolution

In the Expression tab:

Name: Fortigate_Failover

Data Type: Text String

Expression: fgHaStatsMasterSerial.1

Instance: None

In the Properties tab:

Default Activation: (disabled) Active by Default

Evaluation: Evaluate By Polling (because fgHaStatsMasterSerial and fgHaStatsSerial are external attributes)

In the Threshold tab:

Enabled Attach a Threshold

Threshold violated if value == fgHaStatsSerial.1

Threshold reset if value != fgHaStatsSerial.1

Notification: Generate Alarm

Attachments