On 08/08/06, Siva Prakash Reddy G <[EMAIL PROTECTED]> wrote:
> to store mib variables in to the configuration file, he is using
> snmpd_store_config(line);
Correct.
> but this function takes arguments const char * pointer.
Yes - that's the line of text that should be saved into the config file.
> how to store ASN_INTEGER variable into the configuration file,
> which function does this operation.
snmpd_store_config()
Try something like:
char buf[BUFSIZ];
sprintf( buf, "myIntToken %d", intVal );
snmpd_store_config( buf );
The agent doesn't care what information you need to store, or how it's
structured - that's your responsibility. It just saves whatever line
you give it.
Dave
-------------------------------------------------------------------------
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