United States-English |
|
|
HP-UX Reference > Ddhcpdb2conf(1M)HP-UX 11i Version 3: February 2007 |
|
NAMEdhcpdb2conf — convert DHCP client database to config file parameters DESCRIPTIONThe dhcpdb2conf command translates a client system's DHCP database parameters (from dhcpclient) into a set of standard configuration file parameters. This is an essential step for configuring a DHCP client system, and is invoked by auto_parms upon every reboot when DHCP is active. A DHCP client database can contain settings for such items as: hostname, IP address, and default gateway (a subset of the "initial identity parameters" managed by set_parms and geocustoms). You can list the contents of the database to the screen, create a set of configuration staging files, or execute direct edits on existing configuration files using the values contained in the client database. Arguments: You can provide a list of lan-interfaces on which to operate, such as "lan0 lan1". If you specify no LAN interfaces, dhcpdb2conf processes all entries referenced in the client's DHCP database. The entries are each defined as a unique LAN interface and a corresponding list of attributes. OptionsThe following options determine the results of DHCP parameter processing.
The following "filter" options control which parameters are processed. The options can be combined in any manner. The default with no options is to process all attributes for each LAN interface.
The dhcpdb2conf command can be run only by users with appropriate privileges. Configuration Files and Parameter NamesThe following files, and parameters in each file, can be processed by dhcpdb2conf:
EXAMPLESList the entire contents of the DHCP client database: dhcpdb2conf List only the INTERFACE parameter set for lan0: dhcpdb2conf -i lan0 List the INTERFACE and ROUTE parameter sets for lan0 and lan1: dhcpdb2conf -ir lan0 lan1 Apply the INTERFACE and ROUTE parameter sets for lan0 to the existing configuration files: dhcpdb2conf -ira lan0 Apply all parameter sets to the existing configuration files using lan0, and set index = 1: dhcpdb2conf -a -s 1 lan0 WARNINGSUsing the -a option overrides any existing values which are currently set in the system's configuration files (while the -c option merely revises staging files, if any). FILES
|
Printable version | ||
|