Login  
Search All Forums
Dart Home | PowerSNMP for .NET | Custom Development Reply | PowerSNMP for .NET Topics | Forums   
AuthorForum: PowerSNMP for .NET
Topic: How to handle set requests
sevketunveren

From: Turkey
Posts: 5
Member Since: 10/18/17
posted October 18, 2017 1:17 PM

Agent updated automatically variable when i send set command from manager, but i want to handle set command and take variable. I could not get variable in the following method

private void agent1_RequestReceived (Agent agent, RequestMessage request, object state)
{
  // I want to handle request.Varibles but Variable count is ZERO

}
Nick B (Admin)

From: Utica, NY USA
Posts: 576
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted October 18, 2017 1:43 PM

Hello,

Are you sure the SetMessage contains a variable?
If this is an SNMPv3 message, does the Agent contain the user credentials that the Manager is using?
If this is an SNMPv3 message, is this the first message? There is some negotiation (Discovery) performed initially. You can check if this is the case if request.Security.ReportFlag is ReportType.UnknownEngineId or NotInTimeWindow (the property can indicate other issues as well).
Reply | PowerSNMP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX