To enable and configure SNMP:
mm Use the /usr/bin/snmpconf command, which takes you through a basic
The snmp config file is located in /usr/share/snmp/snmpd.conf.
SNMP Configuration Example
Step 1: Customize data
1To 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
If there are existing configuration files, you can read them into the assistant and incorporate their contents with the output of the assistant.
2Choose to
You then see a series of text menus.
3Make 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
Step 2: Restart snmpd to take changes
1Open Server Admin.
2Select a server, click the Settings button in the toolbar, and then click the General tab.
3Deselect Network Management Server (SNMP).
4Click 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