Installing and Administering Internet Services
Chapter 6 279
Dynamic Host Configuration Protocol (DHCP)
Monitoring and Troubleshooting DHCP Operations
hardware address, client IP address, class-id, etc.) to the executable file
named in /etc/dhcptab. The executable is typically a shell script, but it
can be any executable file. This is commonly used to send mail to the
network administrator or store data in a file about DHCP clients that
have succeeded or failed in negotiating a lease. The following is an
example callback script:
Figure 6-6 Callback Script Example
#! /usr/bin/ksh
# /etc/script.assignment
# This script is executed whenever a client obtains an address lease
#
# $1 $2 $3 $4 $5 $6 $7
#client-id hwtype hwaddr ip_addr subnet_mask lease_exp hostname
#
/usr/bin/echo “ assign $1 $2 $3 $4 $5 $6 $7 ‘date “ | mailx -s ASSIGN root