Re: ask some helps on one function
Wes Hardaker <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
zhufei <[email protected]> writes: > int usm_parse_config_usmUser(const char *token, char *line) ; > this function has two parameters, but I don't understand what is the > meaning of these two parameters. > Can you tell me how to use this function, or how to create snmpv3 user > using net-snmp api? That API is used for parsing configuration file lines that match the "usmUser" token in the persistent-storage snmpd.conf files. Generally it's not meant to be a public function for injecting users, but you could. The 'token' is simply expected to be 'usmUser', and 'line' is the rest of the usmUser configuration line without the leading 'usmUser' token. However, if you really want to create usm users it would be better to create a user in a 'struct usmUser' and then use usm_add_user() to add it to the user database. -- Wes Hardaker SPARTA, Inc. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ 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