Sorry, I forgot to ask one question. The question came up right after I sent the mail.
The question is will all the versions (v1, v2, and v3) coexisted if I set --with-default-snmp-version=3 in the configure. The William Stallings'book mentioned the coexistence of v1 and v2. Not sure if the client have the choice of v1, v2, or v3 when the --with-default-snmp-version is set to 3. Thanks again, Jim -----Original Message----- From: Jim Su [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 14, 2005 5:37 PM To: Dave Shield Cc: Net-Snmp-Users Subject: RE: migrate from V2 to V3 Hi Dave: Thanks a lot! It's all clear what need to be done by your explanation. DAVE> --with-default-snmp-version is only relevant to the client DAVE> side tools. The agent doesn't use it at all. So this configure option is for snmpwalk, snmpget, etc. It makes sense. The client tools need to specify the version and its specific arguments. Yes, the client was built on the same wonderful base - NET-SNMP. Great!!! The direction is very helpful. I will study the snmplib/snmp_parse_args.c'. Thanks again that I can move forward with positive guidance. -Jim -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dave Shield Sent: Wednesday, December 14, 2005 5:25 PM To: Jim Su Cc: Net-Snmp-Users Subject: RE: migrate from V2 to V3 On Wed, 2005-12-14 at 09:42 +0800, Jim Su wrote: > Thanks for the reply. > > The agent is based on the Net-SNMP 5.1.2. > Your reply confirmed that there's not much change in > agent side other than to set --with-default-snmp-version=3, > to include the V3 mibs such as: SNMP-TARGET-MIB.txt , > SNMP-USER-BASED-SM-MIB.txt , SNMP-VIEW-BASED-ACM-MIB.txt, No - those MIBs have absolutely nothing to do with the option "--with-default-snmp-version". > (may be the configure option automatically includes these), They almost certainly will be included - the View Based ACM forms the mechanism for *all* access control (including SNMPv1 and SNMPv2c). Unless you ran a *very* stripped down "configure" originally, all the SNMPv3 framework will already be in place. --with-default-snmp-version is only relevant to the client side tools. The agent doesn't use it at all. > The manager (client) is an inherited in house application to > monitor the interface counter, CPU and memory usage. Built using which SNMP toolkit? Net-SNMP, or something else? > It takes the configuration from front end UI then insert to > the schedule for polling by the defined interval constantly. > The in house library call the snmp_sess_init, snmp_sess_open, > snmp_sess_session , read_objid , snmp_add_null_var , > snmp_sess_synch_response , snmp_sess_close etc. to get the > values of desired counters. That'd be using Net-SNMP then :-) > I guess to make it work with V3 the security data such as > username, authentic key, and private key (parameters required > by V3 application - snmpget, snmpwalk, etc.) are needed and > passed to the structure in the pdu, correct? Yes. > So all I need to do is to find out the V3 specific fields > in the pdu structure and fill them up, correct? Correct. See 'snmplib/snmp_parse_args.c' for how this is done with the standard Net-SNMP tools. > How about the engine ID, authprotocal, and privprotocal? The engineID will be discovered automatically, you don't need to worry about that. You *do* need to set the authentication and privacy protocols. Again, see 'snmp_parse_args()' Dave ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.13.13/199 - Release Date: 2005/12/13 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.13.13/199 - Release Date: 2005/12/13 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.13.13/199 - Release Date: 2005/12/13