I'm on a win32 platform. I'd like to have a line in a conf file that will tell 
me where the agentX is running, such as: 
agentxsocket 123.456.789.000

I tried 
c =netsnmp_ds_get_string(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_X_SOCKET);

but it returns NULL pointer unless I called 
c =netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_X_SOCKET, 
cptr);
first

The problem is that I want the value set in the conf file, not what the program 
sets. Of course I can use a different way to accomplish this, but would like to 
use what net-snmp already has first.

Thank you.

/zgf


      

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to