User login

Progress update

It has been a quiet summer. I have been spending my time doing other things but now is time to get back to working on the project.

Through the summer I have been playing with a few things and expect to be able to post alpha version of the MIB parser that, in the initial version, will allow you to translate Oid values to and from human readable format. That seams to be a feature people are looking for so I figured why not… As I mentioned, initial version will only support Oid translations but I am already gearing up for full value translation as well. I’m not sure how much value formatting based on MIB definitions would be so this is something that is sitting in reserve.

Anyway, my development version of the MIB parser correctly parses all Cisco MIB files (some 900+ of them) so that should be a good start. I’ll try it against a few other vendor MIB collections before integrating it into SnmpSharpNet and posting it on SourceForge.

I have also spent a little time reading and playing with the SNMP AgentX protocol. From the start of the SNMP#Net project I had no intention of building a library that supports agent operations but focuses on “raw” SNMP functionality and client operations. From the e-mails I’ve been getting, it looks like a lot of people like the agent operations so I figured I’ll see what can be done.

AgentX is a neat compromise where you can use one of the established, rock solid SNMP agents (like net-snmp) that will provide a stable agent platform and then extend its functionality by building an extension agent that communicates with the master (for example, net-snmp) using AgentX.

I have managed to build a couple of test extensions and they work ok for what they are but I am not very happy with the API the way it is now. AgentX specification has some 18 (or so) different packet types for all different operations that are supported and expecting a developer to remember which one to use when and how they are supposed to be sequenced for a correct operation makes the library useless to most people. Once MIB parsing is at a stage where I am at least marginally happy with it, I’ll be spending more time on the AgentX API which will probably be released as a separate library from SNMP#Net to keep things clear.

Comments

MIB Parser

Hi Milan apologies if this is a dumb question, but I can't spot the MIB Parser in the source or documentation. Did you get a chance to incorporate it in the trunk? I'd be keen to test it against a whole bunch of MIBs, such as HP, VMWare, JBoss and Microsoft, if that helps. Regards Scott

Source code is available in

Source code is available in the Files section here: http://sourceforge.net/projects/snmpsharpnet/files/ The file you want is SnmpSharpNet-src-0-7-4.zip

In the direction that you

In the direction that you provide to me only encounter the dll, but I refer about the source code

This project is open source

This project is open source licensed under LGPL. Source code is available at SourceForge: http://sourceforge.net/projects/snmpsharpnet/ Project has been created and is maintained by me. Community bug reports, fixes, new features implementations are accepted from the community and incorporated into the library.

Hi, I want to know if there

Hi, I want to know if there is an access to the source code and if you are the only that do de updates to the tool. Another cuestion is: what kind of license have the product? I apresiate that you answer me. Kind regards, Gaby

Really incredible work you

Really incredible work you are doing!! Question: I'd like to return a custom SnmpV1Packet on exception/failure. Can that be done? Here is what I have tried. try { SnmpV1Packet result = (SnmpV1Packet target.Request(pdu, param); CustomArgs eArgs = new CustomArgs (); EventDone(this, eArgs); } catch { SnmpV1Packet result = SnmpV1Packet); CustomArgs eArgs = new CustomArgs (); eArgs.value_n,n+1,… = nullvalue_n,n+1,…; EventDone(this, eArgs); } When the packet request times out, I added the try catch to handle it. Since i'm set up to return the SnmpV1Packet, i'd like set the values in a custom SnmpV1Packet and return that. It looks like i'd have to full the .result with something. Any ideas? Great stuff!!

More info about SnmpV1Packet class

You can set custom values in a new SnmpV1Packet class. Have a look at the document SNMP Version 1 Low Level Packet class. It should provide an introduction to working with the V1 packet class and how to set values in it.

If this doesn't answer your question, please send me a little more detail and I'll try to help.

Regards...MilanS