sharp-snmp

SNMP mib parser

我怕爱的太早我们不能终老 提交于 2019-12-24 00:36:02
问题 How can I convert SNMP-OID to string, by the mib-file? I use SNMPSharpLib, but I don't know how to parse the objects. I recieve traps (v2), and they contain "ObjectIDentifier" filed, but I need to translate they to English-text. 回答1: You should review snmptranslate sample, https://github.com/lextm/sharpsnmplib/blob/55a03bf575f0b5a518dab10b595dd09b2a1798ae/archived/snmptranslate_cs/Program.cs It demonstrates what is required to perform the translation. Update Due to the introduction of #SNMP

How can I reply to a get request from managing software such as (solarwinds)

安稳与你 提交于 2019-12-13 08:26:01
问题 I use sharpSnmp to make a SNMP agent (virtual SNMP machine) that communicates with monitoring software. But my agent is not detected by Monitoring apps. I can get the Message from monitoring software by this code, the incoming message from monitoring software (solarwinds) has an OID: "1.3.6.1.2.1.1.2.0" with null value. I tried to set it's value and reply by this code: private void MessageToListener(object sender, EventArgs e) { int i = 0; //Listener listen = sender as Listener;

Can't compile c# project because of some tuple error when referencing an external dll

匆匆过客 提交于 2019-12-13 02:17:24
问题 I have an error, when I try to build my .net 4, c# project. Everything works great, but when I add an external reference to a given DLL, it stops working, it can't build, throws this type of some errors: Error 36 The type 'System.Tuple' exists in both 'C:\Program Files\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\mscorlib.dll' and 'C:\Projects\Project1\ExternalRefernces\SharpSNMP\SharpSnmpLib.dll' C:\Projects\Project1\CheckerStore.cs 17 21 Note, I did not do anything with the