How to modify snmpd.conf without it being overwritten

I’m trying to figure out how can I make permanent changes to /etc/snmp/snmpd.conf without them being overwritten.


All configuration is executed in the CLI and you don’t have to change any config daemon manually
set service snmp xxx

If there is something that isnt already covered by “set service snmp xxx” I would first file that as a feature request over at

And then while waiting for it to get fixed do something like:

  1. Place your custom sndmpd.conf in /config/custom/snmpqd.conf - this way it will survive any system upgrade (everything in /config is normally copied to the updated image during “add system image”).

  2. Edit /config/scripts/commit/post-hooks.d to copy your custom snmpd.conf over the one which VyOS is using (dont forget to set proper user:group (chown) and chmod) and then restart the snmpd service with “systemctl restart snmpd”.

  3. I would probably leave all other snmp config in the VyOS config intact just in case that triggers are stuff (like if you remove the snmp section all together it might result in the snmpd daemon not starting during boot and stuff like that).

Note that its not uncommon that generated configs in VyOS ends up at /run/ but in this case it seems like the location of the snmpd.conf in use is at /etc/snmp/snmpd.conf

Ref: Command Scripting — VyOS 1.4.x (sagitta) documentation

There are settings that are not in the default snmpd.conf and they are not available within vyos cli.

Thank you for responding. I should have mentioned that my use case is with Vyos 1.3.3 in my OP… my apologies.

Is there an equivalent solution for Vyos 1.3.3 ?

Found it, ,


Add a feature request which options are missing