On Mon, 22 Nov 2004 11:34:03 -0500 Andres wrote:
AC> I have some questions about net-snmp:
AC> 
AC> 1. Does net-snmp uses syslog? If so, where does he logs things and how does
AC> he do it? Is there any example of how it is used and what is needed to use 
AC> it?

Yes, it can. The default is to log to /var/log/snmpd.log, but you can set it up
to log to syslog. Check out the man page for snmpd.  Search through the code
for snmp_log for example usage.

AC> 2. Using snmpv3 when and where is the authentication done? In the daemon
AC> you configure the user with the password, but how do you authenticate? When
AC> you do a get command you have to know the password, how does the agent know
AC> that he can authenticate? Is there any data transmitted for this process??

The SNMPv3 RFCs specify how authentication is done. You can poke about in
snmplib/snmpv3.c to look at code. Try using a debugger to follow the whole
process that our agent uses.

AC> 3. How is the session established between the agent and the console 
AC> (understand this as a simple console executing a command, for example a 
AC> get)? You can configure some parameters as in snmpdemoapp, but I guess that
AC> when you use v3, there has to be a session to keep the communication, or 
AC> does it create a new session every time you do a command? I guess this data
AC> is sent over UDP, so what happens if a message is lost? And doesn�t arrive 
AC> or even if the response is lost? How is the session opened? Is there a key 
AC> exchange?

Again, the SNMPv3 RFCs specify how authentication and encryption work.
Currently, there is no such thing as a SNMPv3 session. Our api uses a 'session'
structure, but it is entirely a local thing. Opening a session does not
communicate with the remote agent.

If a message is lost, the library will retry based on the session parameters.
Eventually the library will return a timeout to the application.

-- 
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>  
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to