HP-UX Reference (11i v2 04/09) - 1M System Administration Commands N-Z (vol 4)

s
set_parms(1M) set_parms(1M)
set_parms edits /etc/hosts to associate the new host name 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.
First boot
Also allows the user to specify a DHCP server from which to get host name and networking
parameters, then confirms the information.
WARNING: When changing the host name,
set_parms does not know about optionally installed
software. If any such software remembers the previous host name, it might not work properly after
the host name is changed.
A mechanism is provided that helps generalize the host-name-changing function. The
set_parms
command calls, in ls(1) 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 installations using, for example, Ignite-UX.
The system must be rebooted for any change to take full effect.
timezone
Select a time zone based on your country of location. Also allows you to set a user-supplied time
zone. 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 (1) as a privileged user,
but without having to format a time specification string. The change takes effect immediately.
ip_address
Set or change the primary IP address for the system: This function edits the /etc/hosts file to
associate the new IP address with the current host name. Note: It does not notify DNS (Domain
Name Servers), etc. This higher level of configuration is handled later by broader configuration
tools.
First boot
Also lets you pick the LAN interface (network interface card, or NIC) to set up for this and
subsequent networking functions.
Not first boot
In multiple LAN systems,
set_parms assumes the IP address to change is the one for the
lowest numbered IP address / LAN Interface Card dataset in the
/etc/rc.config.d/netconf
file.
The system must be rebooted for any change to take effect.
addl_netwrk
Set the subnet mask (which defines the network and local subnet portions of a network address), set
the default 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 network-
ing after setting the parameters.
Not first boot
A reboot is required for all of these changes to take effect.
set_parms and Ignite-UX / 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 normally left on the system. This
file is used to communicate to set_parms and other tools the host name, networking, and other infor-
mation 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.
Section 1M758 Hewlett-Packard Company 2 HP-UX 11i Version 2: September 2004