On 28/11/2007, MEHMET ALI EKICI <[EMAIL PROTECTED]> wrote:
> I am trying to understand how do snmptranslate, snmpget .. set
> and snmpd work.

I suggest you start with snmpget.
It's probably the simplest of the command-line tools.

snmptranslate is something of a special case, in that it doesn't
actually use the SNMP protocol at all.

I would *STRONGLY* suggest that you don't try to jump straight
into looking at the inner workings of the main snmp agent (snmpd).
I've been working on this project for well over ten years now, and
there are still parts of the agent internals that bring me out in a
cold sweat!



> As I understand they have a common code part.

All of the Net-SNMP applications rely on the same library
for much of their behaviour  (config files, MIB parsing,
command-line options, and all of the SNMP protocol stuff).


> What has to be configured before using libraries? Some global variables
> .Before starting real processing ..

Try working through the 'snmpget.c' code - concentrating on the
basic flow of control.   As you become more familiar with the code,
you can look at the inner workings of the library calls, but I'd
suggest you familiarise yourself with the basic framework of
a typical SNMP application first.



> If there is any document walks through the snmpd or any other
> snmputility command, I would very much appreciate it.

There's nothing that looks at the agent as a whole, no.
The closest would probably be AGENT.txt (which I've already
pointed you at), which discusses how the agent handles MIB
requests.
   But you would be better off starting at the client side, which
is significantly simpler.


Dave

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to