Simple network management protocol (snmp) tools, Diskkeyfinder – Apple Mac OS X Server (Administrator’s Guide) User Manual
Page 566

566
Chapter 17
Simple Network Management Protocol (SNMP) Tools
SNMP is a set of standard protocols used to manage and monitor multiplatform computer
network devices.
SNMP uses agents to contact network devices such as routers and servers. SNMP interacts
with these devices using virtual databases known as management information bases (MIBs).
Vendors provide MIBs that describe their devices so that they can be monitored using SNMP
applications.
Mac OS X Server comes with a MIB that lets you use SNMP tools to view a server’s system
and network usage statistics. To use SNMP on your server, use a graphical browser (not
supplied with your server) or the SNMP command-line tool available in /usr/sbin.
SNMP support in Mac OS X Server is turned off by default. To turn it on, use TextEdit or
another application to edit the /etc/hostconfig file on the server. If you turn SNMP on, you
should run the snmpconf command to enter site-specific information, such as system
location and admin email address. Type “man snmpconf ” in a Terminal window to learn
about snmpconf.
You can find SNMP information and tools on the Net-SNMP Home Page, located at
www.net-snmp.com
diskKeyFinder
You can use the diskKeyFinder tool to verify the physical location of a remote headless server
volume that you want to manage. When you specify the bsd file system name for a volume
using diskKeyFinder, you’ll see the drive bay where the volume is located (for example, Bay 2).
To find the bsd file system name of a volume, log in to the server using SSH and type “df -l”.
The output from this command shows the bsd file name and volume path. For example:
Filesystem Mounted On
/dev/disk0s13 /
/dev/disk0s9 /Volumes/Spare3
/dev/disk0s10 /Volumes/Holding
/dev/disk0s11 /Volumes/Spare1
/dev/disk0s12 /Volumes/Spare2
In this example, disk0 has five partitions (also known as slices) named 9, 10, 11, 12, and 13. If
you want to know the physical location of partition 10, type “/System/Library/ServerSetup/
diskKeyFinder /dev/disk0s10”.
The tool returns the drive bay number where the volume is located. Headless server drive
bays are numbered in ascending order from left to right.