This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install snmpd -y | |
mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.old | |
cat > /etc/snmp/snmpd.conf << EOF | |
# Change public below to your preferred SNMP community string | |
com2sec readonly default public | |
group MyROGroup v2c readonly | |
view all included .1 80 | |
access MyROGroup "" any noauth exact all none none |