Login  
Search All Forums
Dart Home | PowerSNMP for .NET | Custom Development Reply | PowerSNMP for .NET Topics | Forums   
AuthorForum: PowerSNMP for .NET
Topic: PowerSNMP Walk Performance
espc

From: USA
Posts: 13
Member Since: 06/10/15
posted July 10, 2015 10:24 AM

Hello,

I am having performance problems for PowerSNMP ,I am trying to compare PowerSNMP execution times and other snmp client's execution times (such as iReasonning MIB Browser, netSnmp) . PowerSNMP snmpwalk execution takes around 90 secs for single host for ifEntry oid. When I try to walk over the same host for ifEntry oid, other client's execution time is around 15 secs. Is something wrong with below code or this is the actual performance of PowerSnmp walk operation?

Here is the code:

MibNodes mibNodes = new MibNodes();
Manager manager = new Manager();
var IPEndPoint = new System.Net.IPEndPoint(IPAddress.Parse("XXX.XXX.XXX.XXX"), 161);
SnmpSocket snmpSocket = new SnmpSocket(manager);
VariableList variables = snmpSocket.Walk(mibNodes["ifEntry"].Oid, SnmpVersion.Two, "public", null, IPEndPoint, 1);

Thank you.
Mike Baldwin (Admin)



From: Rome, NY USA
Posts: 114
Member Since: 04/11/00

Extra Support Options
Custom Application Development

posted July 10, 2015 11:03 AM

Hi,

The Walk overload you are using utilizes GetNext messages to walk the agent MIB (one GetNext message for each variable found under the specified root). Please try this overload that uses GetBulk messages, which involves fewer round-trips (by a factor of 50):

SnmpSocket.Walk(mibNodes["ifEntry"].Oid, SnmpVersion.Two, "public", null, IPEndPoint, 1, 50);
espc

From: USA
Posts: 13
Member Since: 06/10/15
posted July 10, 2015 2:02 PM

Thank you, it solved the problem.
Mike Baldwin (Admin)



From: Rome, NY USA
Posts: 114
Member Since: 04/11/00

Extra Support Options
Custom Application Development

posted July 10, 2015 3:25 PM

That's great. What does your performance look like now?
espc

From: USA
Posts: 13
Member Since: 06/10/15
posted July 13, 2015 8:57 AM

Now it is around ~4 secs with the input parameter 50.
Reply | PowerSNMP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX