|
|
HP-UX Reference Volume 2 of 5 > ddhcpdb2conf(1M) |
|
NAMEdhcpdb2conf — DHCP client database converter DESCRIPTIONdhcpdb2conf provides a means of translating a client DHCP database into a set of standard configuration file variables. A DHCP client database can contain settings for such items as, IP address, hostname, and default gateway. Using dhcpdb2conf, you can simply 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. Optionsdhcpdb2conf allows you to specify a list of interfaces on the command line (e.g. lan0 lan1 ...). If no lan interface is specified, dhcpdb2conf will process all entries referenced in the client database. The entries themselves are defined as a unique lan interface and a list of attributes which correspond to that interface. The attributes can be selected for processing by specifying one or more filter flags on the command line. Each filter flag may be combined with any other filter flag(s). If no filter flag is specified, all the attributes for a lan interface will be processed. The following options are supported:
Configuration Files and Variable NamesThe files and variables which can be processed are the following:
EXAMPLESTo list the entire contents of the DHCP client database type: dhcpdb2conf To list only the INTERFACE variable set for lan0 type: dhcpdb2conf -i lan0 To list the INTERFACE and ROUTE variable sets for lan0 and lan1 type: dhcpdb2conf -ir lan0 lan1 To apply the INTERFACE and ROUTE variable sets for lan0 to the existing configuration files type: dhcpdb2conf -ira lan0 To apply all variable sets to the existing configuration files using lan0 and set index = 1 type: dhcpdb2conf -a -s 1 lan0 |
|