> could somebody write me where I can find a simple code like
> snmpdemoapp.c but where is an example of setting variable?

Instead of the call

    snmp_add_null_var(pdu, anOID, anOID_len);

try:

    snmp_add_var(pdu, anOID, anOID_len, 'i', "100");

for an integer value, or

    snmp_add_var(pdu, anOID, anOID_len, 's', "some string");

for a string-based one.
See 'snmpset(1)' for a full list of the possible type characters.
There's also 'snmp_pdu_add_variable' for a slightly lowere-level
API.

Dave

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to