Questions tagged [snmpsharpnet]
23 questions
2
votes
0 answers
SnmpSharpNet.SnmpException: 'Request has reached maximum retries.'
I was researching SNMPv3 for an internship and I got this code from snmpsharp.net (I couldn't show all of the code stackoverflow wouldn't let me)
using System;
using System.Net;
using SnmpSharpNet;
namespace SharpGetV3
{
class MainClass
{
…

Shizen
- 21
- 3
2
votes
1 answer
SNMPsharpnet SnmpNetworkException: 'Network error: connection reset by peer.'
I am beginner in C# and I am trying to create a tool to read snmp OID for some of my devices.
In general the system is working fine at the exception of when I cannot reach the IP address or when the IP Address is not using the same OID.
What I…

Yohann
- 21
- 2
2
votes
1 answer
snmpsharpnet Opaque Float
I query a Synlogy NAS via snmpsharpnet in c# and get the following Value for the UPS Battery:
OID: 1.3.6.1.4.1.6574.4.3.1.1.0
Type: Opaque
Data: 9F 78 04 42 C8 00 00
However, it should be a float value => 100.00
Same at the Voltage:
OID:…

FAaBbiii
- 23
- 3
1
vote
1 answer
SNMP GET snmpexception when response in V1 has trailing data bytes when using SharpSnmp
A SharpSnmpLib SNMP V1 GET snmpexception is thrown when querying a certain vendor equipment located in remote networks. Other software like iReasoning MIB Browser, SNMPB, or SnmpSharpNet work OK on the same OID and equipment.
The error varies even…

Daniel Maxwell
- 51
- 5
1
vote
1 answer
How to check if ObjectIdentifier is root of another ObjectIdentifier? (SnmpSharpNet)
How would I check if an ObjectIdentifier is parent/root of another ObjectIdentifier?
For example:
ObjectIdentifier rootId = ...;
Variable variable = ...;
if (rootId.IsRootOf(variable.Id))
{
// The variable's id is a child of root id!
}
I can't…

Vapid
- 701
- 7
- 27
1
vote
1 answer
maximum try when i need usign snmp request
i need to send request to NCP board and give the information form that .
the NCP IP : 192.168.1.105 but when i send the request with C# it show me this Error :
SnmpSharpNet.SnmpException: 'Request has reached maximum retries.'
and it connect to…

eli dehghan
- 11
- 1
1
vote
0 answers
How to get the bandwidth of network flowing through a port using SNMP c#
I have to find the network flow through a particular port in a cisco 2960 switch. For this I have to write a code using SNMP and C# only. I am already in the middle of the project and I would like to add this feature too in my project. I have…

Akshaya
- 11
- 4
1
vote
0 answers
SNMP v3 gets with SnmpSharpNet and AES192/AES256
I'm trying to use SnmpSharpNet to make and SNMP v3 get with a privacy algorithm of AES192 or AES256.
I cannot get a positive response back. I do for AES128 and DES though.
I noticed in iReasoning MIB Browser tool there is an option (checkbox)…

Ambro
- 73
- 1
- 9
0
votes
1 answer
Cannot receive SNMP trap on Windows 11
I'm using the lib SnmpSharpNet in .NET 7 with C# 10 to retreive all the snmp traps in the network.
The code is almost all copied from the official documentation and work without problems on linux (Ubuntu LTS), without any modification to the…

Majico
- 475
- 1
- 6
- 20
0
votes
1 answer
SnmpSharpNet and Get with a single wrong OID in a list
I am writing a simple application based on this example:
https://snmpsharpnet.com/index.php/simplesnmp-with-vb-net/
There you can see how to get two different OID values:
Imports System
Imports SnmpSharpNet
Module Module1
Sub Main()
Dim…

Dylan666
- 13
- 4
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…

Technology Researcher
- 523
- 1
- 7
- 15
0
votes
0 answers
Snmp community indexing string with snmpsharpnet library
It is possible with the library in question (snmpSharpNet) to use a community indexing string,
for example "public@x"

Enrico Valentini
- 1
- 1
0
votes
0 answers
SNMP How can I add additional OID to request?
I'm trying to query the CPU temperature of a Windows machine using SNMP and SharpNet. The example cope on the SharpNet website uses the following:
OctetString community = new OctetString("public");
AgentParameters param = new…

B Minster
- 331
- 3
- 16
0
votes
0 answers
C# monitor SNMP timeticks from multiple IP addresses
I'm attempting to monitor multiple SNMP agents (timeticks) with SnmpSharpNet across separate networks. The code below works with a single IP address, but when I try and connect to a second IP address the code fails, I'm trying to run this…

clomas
- 93
- 1
- 13
0
votes
1 answer
Change authKey of a user
Using SNMP version 3, I am creating a user.
Right now, I have it set up where I clone a user and that works just fine. However, I need to change the new user's authKey. How can I do this? I know the oid for authKeyChange, however, I don't know how…

Brandon Willis
- 145
- 2
- 15