On Wed, 2005-10-26 at 17:03 -0700, Fong Tsui wrote:
> 1) usmUser 1 3 0x... 0x... 0x... NULL .... ""
> What are the first two fields in usmUser entry, here is 1 3?
> What is the No 6 data, here is NULL?
> What is the last data, here is ""?
Please take a look at
snmplib/snmpusm.c:usm_save_user()
sprintf(line, "%s %d %d ", token, user->userStatus,
user->userStorageType);
:
read_config_save_objid(cptr, user->cloneFrom,
user->cloneFromLen);
:
read_config_save_octet_string(cptr,
user->userPublicString, ...)
> 2)I also realized that
> A) If I set auth but don't set private, I get the following entry,
[snip]
> B) If I don't set Auth, I got the following entry,
[snip]
You do realise that "usmUser" is basically an internal directive?
(I've suggested that it should be renamed "_usmUser" to indicate this)
It doesn't actually matter if there are minor inconsistencies in
the output format, as long as it can be saved and read in correctly.
Dave
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders