> ... apparently you have to modify some of the code. Doesn't > the mib2c generates it all?
mib2c really can't know where your data is coming from (or going to, for a set request). What it generates is a skeleton you can hang your own code on. It really is 90% of the work. > There are some places that say: > snmp_set_var_typed_value(requests->requestvb, ASN_OCTET_STR, > (u_char *) /* XXX: a pointer > to the > scalar's data */, > /* XXX: the length of the data > in bytes > */); > where I suppose you have to fill in the XXX. What do you have to do > in order to complete this? It depends on your application. You might have to get a value from come global and return it, you might have to look something up, query a database, make a system call. > ... > Can mib2c generate the full code? one you don't have to modify? No, that's really not possible. > Lastly, I would like to know if for snmpv3, the snmp message > travels encripted? If you use authentication, the user's password is encrypted. If you also use privacy, the PDU is encrypted. > How do you set up an enviroment to work with snmpv3? For MD5 authentication, you don't really need to do anything beyond building the agent. For SHA authentication and for privacy (which only uses DES), you have to build the agent with OpenSSL support. I'm pretty sure you _don't_ have to have a full-blown SSL installation with keys, etc.; Net-SNMP only uses some of the algorithms from OpenSSL. > When using > snmpv3 you execute the commands with -v 3 and the message comes > back encripted? I'm not sure what you're asking. Yes, both directions of v3 communication are encrypted (if you use authentication and privacy). Chris ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ 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