Hi Dojo,
Currently trying to parse a trap with the Skyline.DataMiner.Utils.SNMP.Traps.Protocol nuget. Apparently, the device is sending duplicate bindings in one trap:
I think this is causing the trap parser to break as it tries to add the bindings:
Is there any way around this aside from filing a bug report with the device vendor? Is this something that the trap parser should be able to handle? Am I using the right library/nuget?
Thanks in advance!
Hi Alex, the device should indeed not send the same binding twice, and unfortunately this is causing problems the code that parses the trap. I've quickly fixed it in the Skyline.DataMiner.Utils.SNMP.Traps.Protocol NuGet and version 1.0.0.2 shouldn't throw an exception anymore when the same binding was received twice.
You’re welcome! I’m glad to hear that it’s fixed.
Hey Alex,
We believe that this is not a device issue, it is not ideal that the vendor's device is sending repeated OIDs on its bindings, but it is also not breaking the standard.
I think that you have a few ways to fix this:
- Ask the corresponding team to fix this dictionary parsing issue in the code.
- Use a different library to do the parsing.
- create your own parsing method.
- Adjust the data coming in before using the current library to parse the method. Example, remove repeated lines from the string and then send the string to parse. (Not sure if this is ideal).
Worked flawlessly. Thanks again for your help!