Alireza <coc.nimaa...@gmail.com> writes:

> How can I  change the COMMUNITY's string without using the config
> file?

> With the information I get, there is a command for this:
> netsnmp_ds_set_string (NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_COMMUNITY, 
> "public");

That sets the outgoing community, not the incoming for the agent.

You might try passing it via netsnmp_config() API which lets you pass
things like "rocommunity".  For details on what happens underneath and
doing it directly, see

  agent/mibgroup/mibII/vacm_conf.c

-- 
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

Reply via email to