HELP - SNMP Configuration in MAC

SNMP Configuration in MAC: Follow below steps to configure SNMP on MAC platform.


You do not need any superuser permission, as you are only creating a file that will be copied to the right location later.

Open Terminal and run this from your home:
snmpconf -g basic_setup

This will run a short script that will help you to configure the basics of your service. If the script finds any previous or default config file, you may be asked to use one of them as a base. You are safe to say 'none' and begin from zero.


Then the 'basics'. You will be asked to configure the identification info that SNMP returns about that system.

  • - Answer 'y' and enter the location of your system (e.g. 'datacenter 1′, 'campus building', 'my company', etc…).

  • - Later you will be asked for the contact info - an email, a name, or whatever you prefer.

  • - Lastly on this section it is about setting value for the 'sysServices.0 OID'. It is better to input 'n' here and move to the next section.

  • - Then access control. In general, there are two different versions of the standard to manage your security, that is, SNMPv2 and SNMPv3.

    - SNMPv2 uses usernames called 'communities' as the only security. There are no passwords, no encryption involved.

  • - SNMPv3 fixes this and uses usernames as well as passwords and encryption to manage access.

  • As not every software is compatible with SNMPv3 authorization, you may select 'no' to SNMPv3 and stick with v2. You would be prompted twice, one for read/write access and another for read-only access. Select 'no' for read/write and 'yes' for read-only.

  • - Then set a name for the community. For the usual read-only access, it is common to enter 'public' as the community name.

  • - Choose if you want the SNMP daemon answering only to one IP address or just press return to answer on all addresses (that is enough for testing). Press return again so you do not get any restrictions.

  • - Do not add any more community lines. Also, no traps and no monitors.


Now you should be having the config file in the same folder as you are now. Just execute the following command in terminal to copy the config file in the right destination.
sudo cp snmpd.conf /usr/share/snmp


Enter your password if requested. Then you have a basic config file put in place, so you only have to enable the service using below command.
sudo launchctl load -w/System/Library/LaunchDaemons/


Test the daemon running this in a console on the same machine:
snmpwalk -c public localhost