Possible to enable/disable SNMPv3 after compiling SNMP++?

Is it possible to enable/disable SNMPv3 after building SNMP++ and AGENT++?

For instance if I build SNMP++ without SNMPv3 support, can I later go into config_snmp_pp.h and turn SNMPv3 on?

And would the opposite work (compiling with SNMPv3 support and disabling it later)?

Hi,

if you change the file config_snmp_pp.h (it does not matter if you disable or enable SNMPv3), you will have to recompile everything: snmp++, agent++ and your application code. There is no way around this.

But you can configure your agent at runtime through the VACM to only allow incoming requests using the desired SNMP version.

Best regards,
Jochen

2 Likes