Vinicius> I'm trying to extend the agent, and my MIB has some integer Vinicius> and octet string objects. Vinicius> I've followed the example (scalar_int) to create my integer Vinicius> objects (netsnmp_register_int_instance) and it worked fine. Vinicius> But I've got problems to create the octet string objects. Wes> You need something different for strings. You'll need to use Wes> something like the netsnmp_register_scalar function instead.
Alternatively, you could use 'netsnmp_register_watched_scalar' which takes care of all of the processing for you, just as the int_instance family does. But this handles *both* integer- and string-syntax values. It also handles SNMPv2c/3 requests for invalid instances correctly (which int_instance doesn't). See a recent thread "GET/SET variable in Sub-agent" in the coders list (in the last week) for more details. Dave ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. ------------------------------------------------------- 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-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
