HP-UX IP Address and Client Management Administrator's Guide HP-UX 11i v2, HP-UX 11i v3

NOTE: You must always use the ct=NN option, because the default number of packets to trace
is zero. The maximum number of packets to trace is 100.
Dumping the Internal State of the Daemon
You can use the following dhcptools command to dump the internal state of the daemon:
# /usr/sbin/dhcptools -d
This command dumps dynamic information into the file /tmp/dhcp.dump.other. Other
information is dumped into the files /tmp/dhcp.dump.bootptab and /tmp/
dhcp.dump.dhcptab.
Review the contents of the file /tmp/dhcpdb, which is less verbose than the file /tmp/
dhcp.dump.dhcptab. The file /tmp/dhcpdb is continuously updated by the daemon.
DHCP Troubleshooting Tools
The DHCP server provides tools to debug problems and make adjustments while the server is
running.
When building the files /etc/bootptab and /etc/dhcptab, you need a tool that will
automatically discover illegal entries and typographical errors. The command-line tool dhcptools
is available to provide access to DHCP-related options for the bootpd server. The options provide
control for dumping internal data structures, generating a host file, previewing client address
assignment, reclaiming unused addresses, tracing packets, and validating configuration files.
For more information, type man 1M dhcptools at the HP-UX prompt. After configuring the
files /etc/bootptab and /etc/dhcptab, you must use the -v option to check for any detectable
errors in the configuration files.
If communication problems exist between the server and the client at a protocol level, and you
have verified that no errors exist in the configuration files, you can use the -t option of the
dhcptools command. This option performs packet tracing. You can use this option in conjunction
with the -d option of the bootpd(1M) command. For more information, type man 1M bootpd
at the HP-UX prompt.
Here are some of the tools available and the appropriate reason for using them.
dhcptools -v
Automatically discovers illegal entries and typographical errors in the files
/etc/bootptab and /etc/dhcptab.
/usr/sbin/dhcptools
-v
dhcptools -p
Allows you to review a lease for a particular client. You can use it to ensure
that the client is responding correctly.
/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 lease address, 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
Monitoring and Troubleshooting DHCP Operations 125