Re-install stock Net-SNMP? Apologies in advance if this has been answered.

What is the exact procedure to reset Net-SNMP to "factory defaults" on, say, OSX 10.10 - or any other OSX flavor?

A number of our Xserves were upgraded from 10.6 to 10.8 to 10.9 or 10.10 and in the process appear to have their Net-SNMP executables and/or configuration corrupted - e.g. snmpd daemons crashing frequently, not reporting CPU/mem loads, etc. Tried comparing folder structures between affected and unaffected nodes and haven't gotten too far.

Edit: just to be clear, this isn't about snmpd.conf - but about snmp executables, MIBs and what not.

Appreciate any ideas!
The canonical method to reset a net-snmp installation to factory defaults in Mac OS X (there's no difference between client &amp; server in this case) is:

sudo launchctl unload -w /System/Library/LaunchDaemons/org.net-snmp.snmpd.plist
sudo cp /etc/snmp/snmpd.conf.default /etc/snmp/snmpd.conf
sudo rm /usr/share/snmpd.conf
sudo rm -rf /var/db/net-snmp


This resets the snmpd.conf file to the default &amp; clears out any added users and instance data. This should be valid back to 10.6 or so, possibly earlier, but I'm not sure.

In 10.11.x Apple updated the net-snmp version from 5.6 to 5.6.2.1 which may cause some issues.