nano /etc/snmp/snmpd.conf
找到
sec.name source community
com2sec local localhost COMMUNITY
com2sec mynetwork NETWORK/24 COMMUNITY
替换为
com2sec local localhost private
com2sec mynetwork NETWORK/24 public
找到
rocommunity public default .1.3.6.1.2.1.1.4
替换为
rocommunity public default .1
找到
rwcommunity private
打开
rwcommunity private
保存完后
sudo launchctl load -w /System/Library/LaunchDaemons/org.net-snmp.snmpd.plist