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
{
public static void Main(string[] args)
{
IpAddress ipa = new IpAddress("192.168.1.5");
UdpTarget target = new UdpTarget((IPAddress)ipa);
SecureAgentParameters param = new SecureAgentParameters();
if (!target.Discovery(param))
{
Console.WriteLine("Discovery failed. Unable to continue...");
target.Close();
return;
}
I couldn't get past the line
if(!target.Discoverey(param))
It gives me the error SnmpSharpNet.SnmpException: 'Request has reached maximum retries.'.What could be the cause of this?I could run SNMPv2 get requests just fine.Apologies if I can't answer your questions I'm still trying to understand how all this works.