HP B2355-92068 Administration Manual page 167

System administration commands
Table of Contents

Advertisement

dhcpdb2conf(1M)
NAME
dhcpdb2conf - convert DHCP client database to config file parameters
SYNOPSIS
dhcpdb2conf
[-pac] [-hdirnt] [-s index] [lan-interfaces]
DESCRIPTION
The
dhcpdb2conf
dhcpclient(1M)) 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(1M) 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 (1M) and geocustoms (1M)). 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
entries are each defined as a unique LAN interface and a corresponding list of attributes.
Options
The following options determine the results of DHCP parameter processing.
Print results to the screen (standard output). This is the default action if neither
-p
specified.
Apply directly: Using the results of the specified filters (see below), directly apply the parame-
-a
ter
definitions
/etc/rc.config.d/netconf
auto_parms
Create copies: Create a set of staging files using the results of the selected filters (see below).
-c
Each parameter processed is applied to its corresponding copy of one configuration file
[re]created by
For
/etc/rc.config.d/netconf.dhcp
overwritten; otherwise the command fails.) Once this staging file is created, the parameter
being processed is applied to the newly created staging file rather than the real configuration
file.
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.
Hostname: Process the
-h
DNS: Process the
-d
-i
Interface:
IP_ADDRESS[]
-r
Route:
ROUTE_GATEWAY[]
NIS: Process the
-n
-t
Time: Process the
-s
index
Set array index for the set of related parameters for one LAN interface in the configuration
files.
For
INTERFACE_NAME[0]=lan0
The
command can be run only by the user with appropriate privilege.
dhcpdb2conf
Configuration Files and Parameter Names
The following files, and parameters in each file, can be processed by
/etc/resolv.conf
HP-UX 11i Version 2: December 2007 Update
command translates a client system's DHCP database parameters (from
processes all entries referenced in the client's DHCP database. The
to
the
existing
.
.)
.
dhcpdb2conf
example,
/etc/rc.config.d/netconf
parameter.
HOSTNAME
parameter set (in
DNS
Process
the
INTERFACE
,
SUBNET_MASK[]
Process
the
ROUTE
,
ROUTE_COUNT[]
parameter set:
NIS
NTPDATE_SERVER
example,
with
-s0
.
− 1 −
configuration
files,
(This
is
how
dhcpdb2conf
. (If the file already exists and can be written, it is
):
/etc/resolv.conf
parameter
set:
,
,
BROADCAST_MASK[]
LANCONFIG_ARGS[]
parameter
set:
,
NISDOMAIN
YPSET_ADDR
parameter.
(the
default)
the
dhcpdb2conf
Hewlett-Packard Company
dhcpdb2conf(1M)
nor
is
-a
-c
for
example,
to
is
called
from
is
copied
to
,
.
domain
nameserver
INTERFACE_NAME[]
ROUTE_DESTINATION[]
output
would
include
:
167
d
,
,

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hp-ux 11i

Table of Contents