As per: https://docs.dataminer.services/develop/api/DmsNotifyTypes/DMS_SNMP_NOTIFICATION.html, DMS Notify Types have been deprecated. I'm trying to find the equivalent of this method in NuGet Class Libraries - specifically for DMS_SNMP_NOTIFICATION (73) - can I get some help with this?
Hi Bing,
It is correct that using notify calls is being discouraged in favor of the class library. This is especially true for anything related to elements, services, views, and parameters. For more information, see the following page in the documentation: https://docs.dataminer.services/develop/devguide/ClassLibrary/ClassLibraryIntroduction.html.
However, for the DMS_SNMP_NOTIFICATION notify, there is currently no equivalent available in the class library. Therefore, this notify type can still be used to send SNMP trap or inform messages.
Hi Bing,
This is not part of the Skyline.DataMiner.Core.DataMinerSystem namespace (as the link would make you think it would). Instead, there is a NuGet available, Skyline.DataMiner.Utils.SNMP.Traps.Protocol. However, this NuGet mainly targets parsing Traps and not really sending/forwarding.
You could however make the necessary changes and let everyone benefit from it of course.
I think a good starting point to get you started is here: Class library development | DataMiner Docs (although the aforementioned NuGet is a Utils library, which might have a small change compared to the procedure linked in the docs reference).
Kind Regards,
Jarno