since the data type for that attribute is counter, you might want to consider using a delta or delta_counter function.
Original Message:
Sent: Jun 06, 2025 04:25 PM
From: Eduardo Ignacio Serrano
Subject: DX NETOPS Spectrum, Creating a watch with the ifInErrors attribute.
Hi David.
Thanks for your response. The suggestion to attach directly with ATTR and the attribute worked. It takes a while for the watch to save, but it does. I also modified the thresholds to generate an alarm, which worked, and reset it. Thank you for your valuable support.
Regards.
Original Message:
Sent: Jun 06, 2025 05:26 AM
From: David Collantes
Subject: DX NETOPS Spectrum, Creating a watch with the ifInErrors attribute.
Hi Eduardo,
checked again your screenshots and I noticed two attributes with the same name (IfInErrors), first one is counter type, and the other one is a table of counters. Please try to specify attribute id instead of name in Expression tab:
ATTR(0x11319)
Let's see if this works.
------------------------------
David Collantes
AOD Solution Engineering | Broadcom Software
Original Message:
Sent: Jun 05, 2025 04:17 PM
From: Eduardo Ignacio Serrano
Subject: DX NETOPS Spectrum, Creating a watch with the ifInErrors attribute.
David
Thank you for your attention.
Based on the information you shared with me, I followed your recommendation, adding a Counter-type watch to the interface, adding the attribute and threshold mentioned above. However, I still get the same error. I've worked with watches in the past, and this error hasn't occurred. I don't know if the attribute isn't compatible with the watch. What could be the reason?
Thank you for your support. Best regards.
Original Message:
Sent: Jun 05, 2025 12:46 PM
From: David Collantes
Subject: DX NETOPS Spectrum, Creating a watch with the ifInErrors attribute.
Hi Eduardo,
you should set this watch on the interface itself and you don't need to specify the index. Let's suppose we' would like to watch IfInErrors (attr. 0x11319) for any given interface:

Adding a watch:

And setting the threshold:

Please be aware that adding watches might have impact on performance.
Hope this helps.
------------------------------
David Collantes
AOD Solution Engineering | Broadcom Software
Original Message:
Sent: Jun 04, 2025 07:53 PM
From: Eduardo Ignacio Serrano
Subject: DX NETOPS Spectrum, Creating a watch with the ifInErrors attribute.
Good day, Team
I'm creating a watch where I take the IfInError/OutInError attribute to monitor an interface and create a threshold based on the packet number we have registered. In this case, it will alarm when there are more than 10 packets. However, when I send the IfInError attribute to the watch, I get the error "SPC-WCH-20072: This is a user-defined error." I add the data type as it comes from the Caunter source. I've also tried Integer, Real, and Delta, adding an instance or not, appending the # for all instances, but I still have the same problem. Do you think the IfInError/OutError attributes have a problem for Spectrum to read them in the Watch?
I'm running the watch directly in the interface, however, I've also tried it from the device, but I still get the same error.
I look forward to your comments.