beautypg.com

Apple Mac OS X Server (Version 10.6 Snow Leopard) User Manual

Page 182

background image

To enable and configure SNMP:
Use the /usr/bin/snmpconf command, which takes you through a basic text-based

m

setup assistant for configuring the community name and saves the info in the
configuration file.
The snmp config file is located in /usr/share/snmp/snmpd.conf.

SNMP Configuration Example

Step 1: Customize data

1

To customize the data provided by snmpd, add an snmpd.conf file using /usr/bin/

snmpconf as root or using sudo, by executing this command:

/usr/bin/snmpconf -i

If there are existing configuration files, you can read them into the assistant and
incorporate their contents with the output of the assistant.

2

Choose to read-n the file by indicating the file at /etc/snmp/snmpd.conf.

You then see a series of text menus.

3

Make these choices in this order:

a

Select file: 1 (snmpd.conf).

b

Select section: 5 (System Information Setup).

c

Select section: 1 (The [typically physical] location of the system.).

d

The location of the system: type text string here — such as “server_room.”

e

Select section: f (finish).

f

Select section: f (finish).

g

Select File: q (quit).

You have created an snmpd.conf file with a creation date of today.

To verify its creation enter

ls -l /usr/share/snmpd.conf

.

Step 2: Restart snmpd to take changes

1

Open Server Admin.

2

Select a server, click the Settings button in the toolbar, and then click the General tab.

3

Deselect Network Management Server (SNMP).

4

Click Save.

You can also do this via the command line by killing and restarting the smnpd process
as root:

/usr/sbin/snmpd

182

Chapter 8

Monitoring Your System