rqx110 / SnmpSharpNet

Simple Network Management Protocol (SNMP) .Net library written in C# (csharp). Implements protocol version 1, 2 and 3.
Other
80 stars 57 forks source link

SnmpSharpNet.SnmpException: 'Request has reached maximum retries.' #5

Closed Ali-Zafar closed 2 years ago

Ali-Zafar commented 5 years ago

I am just trying to run this piece of code.

  1. UdpTarget target = new UdpTarget(IPAddress.Parse("192.168.10.8"));
  2. SecureAgentParameters param = new SecureAgentParameters();
  3. if (!target.Discovery(param))
  4. {
  5. Console.WriteLine("Discovery failed. Unable to continue...");
  6. target.Close();
  7. return;
  8. }

it gives an exception of : 'Request has reached maximum retries.' at line number 3. How do I fix it ?