System Administration Guide: IP Services

How to Export Data From a DHCP Server (dhcpconfig -X)

  1. Become superuser on the server from which you want to move or copy data.

  2. Type a command of the following format:

    # /usr/sbin/dhcpconfig -X filename -a network-addresses -m macros -o options

    where filename is the full path name you want to use to store the compressed exported data. You can use the keyword ALL with the command options to export all the networks, macros, or options. For example:

    # /usr/sbin/dhcpconfig -X dhcp1065_data -a ALL -m ALL -o ALL

    Alternatively, you can specify particular network addresses, macros, and configuration options in comma-separated lists. For example:

    # /usr/sbin/dhcpconfig -X dhcp1065_data -a, \
    -m,,SUNW.Ultra-5_10 -o Sterm

    See the dhcpconfig man page for more information about the dhcpconfig command.

  3. Move the file that contains the exported data to a location that is accessible to the server to which you want to move the data.

    Import the data as described in How to Import Data on a DHCP Server (dhcpconfig -I).