set_parms.1m (2010 09)
s
set_parms(1M) set_parms(1M)
with the current IP address of the system, if that can be determined. Note: It does not
notify DNS (Domain Name Servers), etc. This higher level of configuration is handled
later by broader configuration tools.
WARNING: When changing the hostname,
set_parms does not know about optionally-
installed software. If any such software remembers the previous hostname, it might not
work properly after the hostname is changed.
A mechanism is provided that helps generalize the hostname changing function. The
set_parms command calls, in ls sorted order, any executable commands found in the
directory /sbin/ch_hostname.d
. This occurs for both first-boot and non-first-boot
calls. HP may in the future supply special commands in this location. The system
administrator may also supply custom commands (programs or scripts) for site installa-
tions using, for example, Ignite-UX.
The system must be rebooted for any change to take full effect.
timezone Select a timezone based on your country of location. Also allows you to set a user-
supplied timezone. The system must be rebooted for any change to take effect.
date_time Set the system date and time interactively: This is similar to calling
date as a
privileged user, but without having to format a time specification string. The change
takes effect immediately.
ip_address Set or change the IP address and subnet mask for the system. This function edits the
/etc/hosts file to associate the new IP address with the current hostname. Note: it
does not notify DNS (Domain Name Servers), etc. This higher level of configuration is
handled later by broader configuration tools.
If multiple lan interfaces are present, the user can select each LAN interface (network
interface card or NIC) separately to configure it.
The system must be rebooted for any change to take effect.
addl_netwrk
Set the route mask (which defines the network and local subnet portions of a network
address), set the routing gateway, and define access to the Domain Name System (DNS)
and Network Information Service (NIS).
First-boot : These changes take effect immediately, without a reboot, because
set_parms starts networking after setting the parameters.
Non-first-boot : A reboot is required for all of these changes to take effect.
locale Allow the user to set the local language settings. The user can either select one of the
languages from the menu or they can set new valid language. set_parms will verify
whether the new language is installed. If it is not installed, the user must install the
language before executing this option.
set_parms, Ignite-UX or Cold Install
After "cold-installing" HP-UX from tape, CD-ROM, or DVD, or using Ignite-UX to install HP-UX from any
source including an install server, the file
/tmp/install.vars is generally left on the system. This
file is used to communicate to set_parms and other tools the hostname, networking, and other informa-
tion that was used during the installation, to make it easier to use any of these values as final system
parameters. In particular, set_parms uses as defaults the shell-style variables in this file that begin
with INST_. For example, INST_LAN_DEV indicates which LAN interface was used during a network
cold install. This is the LAN interface that set_parms configures.
In general,
set_parms first looks in /tmp/install.vars for default information, then in the system
configuration files in the /etc/rc.config.d directory. If any parameter is defined in both locations,
the latter takes precedence.
If Ignite-UX is installed on your system, see the manpage entries for ignite (5) and instl_adm (4). In par-
ticular, read instl_adm (4) for descriptions of the
is_net_info_temporary, run_setparms, and
final variables.
Interaction with auto_parms
During the boot-up sequence,
/sbin/rc always invokes auto_parms, which in turn detects the first-
boot situation and it calls set_parms if either or both of these conditions are true. The set_parms
starts its interface and, based on user input, might call back into auto_parms to obtain and set up the
2 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: September 2010