Login  
Search All Forums
Dart Home | PowerSNMP for .NET | Custom Development Reply | PowerSNMP for .NET Topics | Forums   
AuthorForum: PowerSNMP for .NET
Topic: Impossible d'envoyer Packet Security Level: AuthPriv
ncls2019
changuel.noureddine@gmail.com

From: Saint Cloud, France
Posts: 3
Member Since: 08/30/19
posted August 30, 2019 8:13 AM

bonjour,
Je n'ai jamais réussit d'envoyer des packets avec securité AuthPriv.

J'ai utilisé les deux projets console sur la solution DOTNET 4.5:


var security = new Security();
security.Level = SecurityLevel.AuthPriv;
security.User = new User(System.Text.Encoding.UTF8.GetBytes("2"), "AAAA", "P4SSW0RD", AuthenticationProtocol.Sha, "3NCRYPT10N", PrivacyProtocol.Aes256);
          
//Create Variable
Variable v = new Variable("1.3.6.1.4.1.15880.1.6.0");

//Create Get Request
GetMessage request = new GetMessage();
         
request.Variables.Add(v);
request.Version = SnmpVersion.Three;
request.Security = security;
request.Community = "public";


//Send request and get response
ResponseMessage response = managerSocket.GetResponse(request, agentEP);
Console.WriteLine();
Console.WriteLine("Response from Agent:");
Console.WriteLine();
Console.WriteLine(response.ToString());
Console.WriteLine();


Toujours je reçoit un packet avec : Packet Security Level: AuthOnly

vous pouvez les test si vous voulez.
Merci pour votre aide.
Jamie Powell (Admin)

From: Rome, NY USA
Posts: 448
Member Since: 03/13/07

Extra Support Options
Custom Application Development

posted August 30, 2019 3:07 PM

Thank you for your post. An email has been sent to you requesting additional information. Please let me know if you do not receive it and I will be happy to resend.

All the best,
Jamie
Reply | PowerSNMP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX