How can we help?

How to enable SNMP on Mac OSX


These steps don’t require a system restart and are non-service affecting.  

  1. Open a new terminal window.
  2. Create a backup of the default SNMP configuration file:
sudo mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.orig
  1. 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.

  1. Enable the SNMP daemon:
sudo launchctl load -w /System/Library/LaunchDaemons/

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/
sudo launchctl load -w /System/Library/LaunchDaemons/
  1. If you used a community string other than public or private, add it to Auvik by following these steps.
Was this article helpful?
27 out of 35 found this helpful
Have more questions? Submit a request