Hi All,

We have been using net-snmp agent in our embedded device. But we dont use
snmpd.conf file.

Right now when we configure snmp agent with v2c, we use the below API to
set the community string.

netsnmp_ds_set_string(NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_COMMUNITY,
"public");

Now we need to support another manager with a different community string.

I want to add and maintain a new community string to the existing list. But
using the API twice is overwriting the community string.

I used the below API, but i could not get it working.
netsnmp_config( "rocommunity public" );
netsnmp_config( "rocommunity private" );

Also tried,
vacm_parse_rocommunity("rocommunity", "public");
vacm_parse_rocommunity("rocommunity", "private");

Am I missing something? or do I need to use a different API.
Quoting again we dont use snmpd.conf file for parsing.

Regards,
Nagarjun
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to