Forum user got a SNMPv3 set problem when set SNMPv3 related entries.
I got perl locale warning and the set failed.
curl --request POST ‘http://localhost/configure’ --form data=‘{“op”: “set”, “path”: [“service”, “snmp”,“v3”,“user”,“user2”,“group”,“default”]}’ --form key=‘webkey’
And got error as follow:
{“success”: false, “error”: “perl: warning: Setting locale failed.\nperl: warning: Please check that your locale settings:\n\tLANGUAGE = (unset),\n\tLC_ALL = (unset),\n\tLC_CTYPE = "C.UTF-8",\n\tLANG = "en_US.UTF-8"\n are supported and installed on your system.\nperl: warning: Falling back to the standard locale ("C").\n[[service snmp]] failed\nCommit failed\n”, “data”: null}
It is no problem by using configure CLI. There is no problem to set any SNMPv2 date by HTTP API.
Most likely this is realted to https://github.com/vyos/vyos-1x/commit/7e0e8101998a6c8de6cb93c42bfbf1278c13f226