Specifications

76 Chapter 6 Setting Network Preferences
Starting SNMP
You can start SNMP in one of the following ways:
 Using Server Admin
 Using the launchctl command
Both methods modify Net-SNMP’s launchd property list (/System/Library/
LaunchDaemons/org.net-snmp.snmpd.plist) and start the daemon (snmpd) immediately
and for the next reboot.
To start SNMP using Server Admin:
1 In Server Admin, select your server.
2 Click General.
3 Enable SNMP by selecting Network Management Server (SNMP).
To start SNMP using the launchctl command:
$ sudo launchctl load -w /System/Library/LaunchDaemons/org.net-
snmp.snmpd.plist
Configuring SNMP
The configuration (conf) file for snmpd is typically in the /etc/snmp/ folder and the
default configuration file is /etc/snmp/snmpd.conf.
You can customize the configuration file while the daemon is running. After the
configuration is complete, restart the daemon.
To customize the /etc/snmp/snmpd.conf file, use the /usr/bin/snmpconf command.
For more information about this command, see its man page.
To customize snmpd data:
1 Add an snmpd.conf file by entering:
$ sudo /usr/bin/snmpconf -i
This command asks you a series of questions.
2 Provide the appropriate answers.
3 Restart snmpd.
Because snmpd reads its configuration files at startup, you must restart snmpd for your
configuration changes to take effect.
To restart snmpd:
$ sudo killall snmpd
The launchd daemon restarts snmpd.