Re: set COMMUNITY without using snmpd.config

Wes Hardaker via Net-snmp-coders <[email protected]>
Newsgroups gmane.network.net-snmp.devel
Message-ID <[email protected]>
Alireza <[email protected]> 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 [email protected]


_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.