Installing and Administering Internet Services

278 Chapter6
Dynamic Host Configuration Protocol (DHCP)
Monitoring and Troubleshooting DHCP Operations
/usdhcptools -p ht=hardware_type ha=hardware_address\
sn=subnet_identifier [lt=lease_time][rip=requested_IP_address]
dhcptools -r
Allows you to reclaim an individual leaseaddress, making it available for
a new client.
dhcptools -r ip=IP_address ht=hardware_type ha=hardware\
_address
dhcptools -R
dhcptools -R ip=IP_address ci=client_identifier
dhcptools -d
Dumps the complete internal state of the server into files the dump files
/tmp/dhcp.dump.*.
/usr/sbin/dhcptools -d
NOTE The dump operation does not kill the daemon. It is not like a core dump.
Using the dump operation does not interfere with the bootp daemon.
Callbacks
HP-UX DHCP server provides a powerful facility that enables you to
customize the DHCP server, known as callbacks. These are user-defined
actions that are executed for different types of transaction successes and
failures. These callbacks are defined in /etc/dhcptab as follows:
DHCP_SERVER_SETTINGS:\
call-on-unrequited=”/etc/script.unrequited”:\
callback_style=”NEW”:
call-on-unrequited=”/etc/script.unrequited”:\
call-on-assignment=/etc/script.assignment:\
call-on-decline=/etc/script.decline:\
call-on-release=/etc/script.release:\
call-on-lease-extend=/etc/script.extend:\
call-on-discard=/etc/script.discard:
Each callback passes some command line parameters (such as client