Ashutosh Kumar <ashutosh.c...@gmail.com> writes: > Hi Ryan, > > I'd recommend you to go through the implementation of apps/snmpset.c that > provides > the CLI functionality. Had a similar requirement for a project I was working > on > around a year ago, and going through the CLI implementation helped a lot .
Agreed, and I think (additionally) if you look a the base tutorial for writing applications it's a good place to start. http://www.net-snmp.org/wiki/index.php/TUT:Simple_Application Functionally a SET is just like a GET, where you add a PDU containing varbinds. For a GET you add a varbind with a NULL in the value portion, and for a SET you simply fill it out with a real value. -- Wes Hardaker Please mail all replies to net-snmp-coders@lists.sourceforge.net _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders