System Administration Guide: IP Services

How to Modify Imported DHCP Data (pntadm, dhtadm)

  1. Become superuser on the server to which you imported data.

  2. Examine the network tables for data that needs to be modified.

    If you moved networks, use pntadm -P network_address to print out the network tables for the networks you moved.

  3. Use the pntadm command to modify IP address information.

    You might need to change the owning server and the configuration macro used for imported addresses. For example, to change the owning server ( and macro (dhcpsrv-1060) for address, you would use the following command:

    pntadm -M -s -m dhcpsrv-1060

    If you have a large number of addresses, you should create a script file that contains commands to modify each address, and then execute the script with the pntadm -B command, which runs pntadm in batch mode. See the pntadm man page.

  4. Examine the dhcptab macros for options with values that need modification.

    Use dhtadm -P to print the entire dhcptab, and use grep or some other tool to search for particular options or values that you might want to change.

  5. Use the dhtadm -M command to modify options in macros if necessary.

    For example, you might need to modify some macros to specify the correct domain names and servers for NIS, NIS+ or DNS. For example, the following command changes the values of DNSdmain and DNSserv in the macro mymacro:

    dhtadm -M -m mymacro -e ''