Questions tagged [sharp-snmp]

#SNMP is a set of SNMP libraries and tools for Windows and other platforms.

#SNMP is a set of SNMP libraries and tools for Windows and other platforms.

More information about them can be found at the documentation sites,

81 questions
1
vote
1 answer

Where is the type of the object passed to an SharpSNMP async callback specified?

I'm using SharpSNMP (8.5, the latest version from NuGet) asynchronously to poll a device. It's pretty easy and working apparently fine but there's one thing I can't figure out even from looking at the source code for SharpSnmpLib: Where the type of…
1
vote
2 answers

Is there a way to know if a device has version 3 of SNMP enabled without the credentials?

I need to do a device discovery which is working fine for version 1,2 because the community name by default "public" help me on this, but for the version 3 the credentials are required, do ou know any tool o method to know that ?
RobDev
  • 45
  • 1
  • 9
1
vote
1 answer

SharpSNMP: Using SNMP v3 with AES Privacy

I have configured 2 users on a SNMP v3 server (a Cisco router): A user that uses DES as the privacy method (desuser) A user that uses AES 128 as the privacy method (aesuser) The privacy password and the authentication password for both the users…
slayernoah
  • 4,382
  • 11
  • 42
  • 73
1
vote
1 answer

#SNMP - Simple GET

I've been looking at #SNMP, which seems to be the most complete SNMP library in C#. However, I find that the documentation is quite lacking, merely pointing to the source code, which is completely void of comments :-) Now I'm not a professional…
Astaar
  • 5,858
  • 8
  • 40
  • 57
1
vote
4 answers

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

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…
Tom
  • 3,899
  • 22
  • 78
  • 137
0
votes
0 answers

Using #SNMP Set command to set the value of an object identifier to 1 or 0

I am trying to use #SNMP to set the value of an object identifier to 1 or 0. Here is an example of the code that I am using: var result = Messenger.Set(VersionCode.V1,new IPEndPoint(IPAddress.Parse(IPAddress), SNMPPortNo),new…
0
votes
0 answers

SharpSnmpLib how to receive SNMP traps with any community

I'm trying to use SharpSnmpLib for dotnet 6.0 project. SharpSnmpLib.Engine 12.0.0 was installed via nuget. I get some snippet of code from samples from github repo https://github.com/lextudio/sharpsnmplib-samples and while community in sender and…
mli
  • 420
  • 1
  • 4
  • 10
0
votes
0 answers

SharpSnmpPro: SimpleObjectRegistry seems broken after latest release

After installing the 2.5.0 version of SharpSnmpLib, If I instantiate a new SimpleObjectRegistry, I get System.NullReferenceException: 'Object reference not set to an instance of an object.' It goes away if downgrading. Tried to reproduce running…
Vincent Vega
  • 119
  • 10
0
votes
1 answer

Encode and Decode SNMP PDU support in Sharpsnmp

I like to understand if there are any APIs available in lextm sharpsnmp library to encode SNMPv1/v2c/V3 PDU to byte array and also API to construct a SnmpPdu (SNMP v1/v2c/v3) based on a byte array. Thank you in Advance
Ayan
  • 31
  • 5
0
votes
0 answers

Receive "Message not in TimeWindow!" when send snmpv3 trap

I'm try developing snmp trap version 3 with MD5Authentication and AES Privacy provider. The agent I build it in Visual Studio 2019, I'm try sharpsnmp and snmpsharpnet library.The trap receiver I'm using snmpB. But both I'm only received "Message not…
nurul
  • 13
  • 6
0
votes
0 answers

snmp trap listener no message receiving

So i'm building a snmp trap receiver to receive snmp trap messages. i'm using the sharpsnmp-net package from lexstudios aswell as the sample.engine with pipline from github. I'm creating a simple wpf application to just show messages on screen for…
0
votes
0 answers

How to use a Name rather than OID in vb.net

Good day, I am trying to figure out this code from sharp-snmp samples. https://github.com/lextudio/sharpsnmplib-samples/blob/master/Samples/VB.NET/snmpset/Program.vb I am using the vb.net SET sample. Public Sub New(id As…
FueL
  • 1
  • 3
0
votes
1 answer

#SNMP - GetBulk V2 request is limited to 100 results?

I'm trying to perform the below request and the results should be around 900 variables, not 100. it doesn't matter how many oids I send 1 or 10, I always get no more than 100 variables. what I'm doing wrong? var readCommunity = new…
0
votes
0 answers

Snmp V3 missing exceptions like "not in time window" or "wrong engine id"

I'm trying to handle situations when the report parameters are old or wrong. for example, if the engine time is "old" (delta time) I should receive "not in time window" exception \ errorcode if the engine id is wrong I should receive "wrong engine…
0
votes
2 answers

GetRequestMessage doesn't reply correctly while GetNextRequestMessage does with #SNMP

I've been working with #SNMP library lately. My problem is whenever I send a GET request to an agent it replies with NoSuchObject ,however when I tried GETNEXT or GETBULK request it worked just fine. I literally did the same as examples codes do at…
Doga
  • 3
  • 1