These steps don’t require a system restart and are non-service affecting.
- Open a new terminal window.
- Create a backup of the default SNMP configuration file:
sudo mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.orig
- Create and edit a new SNMP configuration file:
sudo nano /etc/snmp/snmpd.conf
Enter the following in the new configuration file:
com2sec mynetwork <NETWORK/CIDR> public rocommunity public default .1
Replace <NETWORK/CIDR> with the network address and CIDR mask of the subnet your Auvik collector resides on. Replace the community string “public” with another string if that’s your preference.
Press CTRL-X to save the configuration file and exit the nano editor.
- Enable the SNMP daemon:
sudo launchctl load -w /System/Library/LaunchDaemons/org.net-snmp.snmpd.plist
Note: If you later change the SNMP settings on your Mac, you’ll need to run the following two commands instead of the launchctl command above:
sudo launchctl unload /System/Library/LaunchDaemons/org.net-snmp.snmpd.plist sudo launchctl load -w /System/Library/LaunchDaemons/org.net-snmp.snmpd.plist
- If you used a community string other than public or private, add it to Auvik by following these steps.