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
0
votes
0 answers

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

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…
Kian
  • 13
  • 6
0
votes
1 answer

How to obtain raw TimeTicks with SharpSnmp?

I'm trying to monitor system up time by using #snmp (Lextm.SharpSnmpLib.9.0.1) and C#. Here's my code: public int GetUptime() { var uptimeMessage = new GetNextRequestMessage(0, VersionCode.V1, new OctetString("public"), …
Nomada
  • 343
  • 2
  • 10
0
votes
1 answer

Getting TimeoutException on sending Informs via SharpSNMPLib

I am using SharpSNMPLib on C# to send Informs but always getting a timeoutException. This is apparently caused by the lack of reply as stated on the documentation here : Messenger.SendInform(0, VersionCode.V2, …
Rafa Ayadi
  • 197
  • 1
  • 17
0
votes
1 answer

#SNMP No contextName in V3 response

We are using #SNMP to created an SNMP V3 agent. I would like to know if it is normal that the SecureSnmpContext class does not use the given ContextName when using GeneratedResponse for example ? The ContextName is available into the request object…
david
  • 1
  • 1
0
votes
1 answer

Sharp SNMP Async method leaking stack memory

I'm trying the new 9.0.0 RC1 release of SharpSNMP for its async methods. It's easy to use - practically a drop-in replacement for the old synchronous method. My code to poll a list of OIDs asynchronously is: // create a new get request message var…
0
votes
0 answers

Unable to receive v3 traps/informs with SharpSNMP

Using the snmptrapd example I was able to receive v1 traps and v2 traps/informs easily. However, with v3 I am unable to receive traps. I am using AES128 and SHA1 for Privacy and Authentication. When I "wireshark" port 162 I see "encryptedPDU:…
0
votes
1 answer

#SNMP using a custom OID

Is it possible to use a custom OID in the library #SNMP (http://sharpsnmplib.codeplex.com/)? If so, how can a custom OID variable/subtree be added/registered with #SNMP so it is possible to read and write to those variables? I would like to…
ips
  • 71
  • 2
  • 7
0
votes
1 answer

SharpSnmpLib | bytes must contain 4 or 16 elements - What causes this error?

https://github.com/lextm/sharpsnmplib/blob/master/SharpSnmpLib/IP.cs System.ArgumentException: bytes must contain 4 or 16 elements at Lextm.SharpSnmpLib.IP..ctor(Tuple`2 length, Stream stream) at Lextm.SharpSnmpLib.DataFactory.CreateSnmpData(Int32…
Guy Messika
  • 169
  • 1
  • 15
0
votes
2 answers

SNMP VARBIND Values

I'm not really sure where to ask this question. I have been searching for an answer so I will try asking here. We have an application that communicates with our devices via SNMP. Our GET messages are triggering IPS/IDS system alerts because of value…
Tsukasa
  • 6,342
  • 16
  • 64
  • 96
0
votes
1 answer

Create SNMP Listener (server) using C#

I know it's possible to create an agent and query an SNMP enabled device but i need to create an 2 or more SNMP listener in one PC on different ports so that one PC can have may SNMP listener. So that i can send my own message when an agnent…
Navin
  • 554
  • 2
  • 9
  • 31
0
votes
0 answers

How can I dispose the messenger listener?

I have been having many issues with trying to scan a range of ips for the specified Oid, like the Solarwinds Snmp Sweeper does. The reason why Solarwinds snmp tools lack is because they are too slow when checking larger ranges. I am receiving a…
user1632018
  • 2,485
  • 10
  • 52
  • 87
0
votes
1 answer

Can I decode a packet using sharpsnmp

I am creating and sending an SNMP packet manually using pcap.net, the reason for this is that I need to be able to change the sender details of the SNMP packet to one other than the application hosts NIC and which wouldn't be possible with the…
user1632018
  • 2,485
  • 10
  • 52
  • 87
0
votes
1 answer

SharpSNMP: Error running VB.NET code for snmpget

I am trying to run the snmpget code sample in VB.NET available at: https://github.com/lextm/sharpsnmplib/blob/master/Samples/VB.NET/snmpget/ When I try to run the code, I get the following exception: https://i.stack.imgur.com/S5s9Z.png The text on…
slayernoah
  • 4,382
  • 11
  • 42
  • 73
0
votes
1 answer

SNMP get with SNMP version automatic (V1.0/V2.0)

How to execute GET method for SNMP of OID without passing the SNMP version. As in my case, some of the devices respond to V1.0 and some for V2.0. I have come acrossed in OIDVIEW , there is a "Automatic" SNMP version rather than passing version. I…
Jay
  • 1,869
  • 3
  • 25
  • 44
0
votes
1 answer

Definition.Entity property is null

Whenever I create a ReloadableObjectRegistry with path to directory containing compiled modules, Definitions in the tree have Entity property set to null. The reason why I need to access this property is to be able to read the syntax of a…
Alex
  • 937
  • 3
  • 20
  • 44