Jump to content
  • Advertisement
Sign in to follow this  
CyberSlag5k

SNMP

This topic is 3659 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Can someone suggest a good SNMP library to use in a .net environment? I'm coding in C#, and I found a library on Code Project, but for some reason I can't do any Set commands. It throws very vague exceptions, so I'm not sure what's going wrong. I don't think the library itself is failing to do something, but I can't figure out where the problem lies because any exception I get is either a null reference exception (from somewhere within the library) or an "SNMP Timeout" exception, which really doesn't tell me anything. I'm sure it's a problem with the device, but I'm rather stuck at this point, so I'm thinking it's time to switch libraries, unless someone can think of something to help me diagnose the problem. Thank you.

Share this post


Link to post
Share on other sites
Advertisement
Do you have the source code to the library? If so, trace through it to the point of exception. Even without source, you can use something like Reflect.NET to get a pretty good feeling for what the library is doing.

Another thing you could try is to look at the actual network traffic using Wireshark or some similar tool. (Wireshark is a free download) I seem to recall that SNMP is a text-level protocol, which makes network analysis pretty easy.

Share this post


Link to post
Share on other sites
Unfortunately, the method that's throwing the error is 500 lines of while looping goodness. I've been looking at it, and will continue to do so, but it's not pretty.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!