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!
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).