Re: Set function in c/c++

Wes Hardaker via Net-snmp-coders <[email protected]>
Newsgroups gmane.network.net-snmp.devel
Message-ID <[email protected]>
Ashutosh Kumar <[email protected]> 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 [email protected]


_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.