HPlogo HP-UX Reference Volume 2 of 5 > a

auto_parms(1M)

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

NAME

auto_parms — initial system configuration/DHCP support script

SYNOPSIS

auto_parms

DESCRIPTION

auto_parms is a system initialization script whose primary responsibility lies in handling first time boot configuration and ongoing management of the DHCP lease(s). auto_parms is invoked at boot time by the /sbin/rc script. Initially, it will load a list of available ethernet interfaces and begin requesting a DHCP lease on each interface, stopping when a valid lease is secured or the list is exhausted.

As a part of checking for the availability of a lease on a particular interface, auto_parms will also consult /etc/rc.config.d/netconf and examine the variable DHCP_ENABLE[index]. If DHCP_ENABLE[index] is set to '0', auto_parms will not attempt to request a lease on the the interface designated by 'index'. If DHCP_ENABLE[index] does not exist in /etc/rc.config.d/netconf, auto_parms will assume that it can attempt the DHCP request over the interface.

Once a lease is secured, the information supplied with the lease will be used to initialize key networking parameters (see dhcpdb2conf(1M)).

If auto_parms detects that the system is going through a "first time boot" (keyed by the hostname for the system not being set), it will invoke set_parms for the purpose of verifying the DHCP supplied parameters as well as collecting any parameters not supplied by DHCP.

For all subsequent boots, the data supplied by a DHCP lease is assumed to be definitive and will be recognized as such by auto_parms. Note that in an environment (non-mobile) where DHCP is being used for IP address management, the lease information will not change from boot to boot under normal conditions. This is accomplished by auto_parms ensuring that the dhcpclient is placed in "lease maintenance mode" prior to exiting.

FILES

/sbin/auto_parms /sbin/set_parms.util

EXAMPLES

See /sbin/rc for invocation context

© Hewlett-Packard Development Company, L.P.