United States-English |
|
|
HP-UX Reference > Sset_parms(1M)HP-UX 11i Version 3: February 2007 |
|
NAMEset_parms — set system initial identity parameters: hostname, date/time, root password, and networking SYNOPSISset_parms initial set_parms hostname set_parms timezone set_parms date_time set_parms ip_address set_parms addl_netwrk set_parms locale DESCRIPTIONThe set_parms command is an interactive system set-up command that allows you to specify various "initial identity parameters" when first booting a newly installed operating system (whether preinstalled, or installed locally from media or an install server), and to revise these parameters later on a running system. Initial identity parameters are a minimal set of values required to bring a system to an initially useful state. They include the following:
In a first-boot situation, set_parms is invoked automatically by /sbin/auto_parms. For set_parms purposes, "first-boot" is defined as having no hostname set when the system starts up. This causes set_parms to step through all of its sub-areas to help you set all of the initial identity parameters. After the system has booted and is running, set_parms may also be called directly from the command line to step through all areas (via set_parms initial), similar to how it works at first-boot, or to finish setting up a particular sub-area (the latter forms above). There are certain limitations to its actions when it's run after first-boot, as described see below. Note: The set_parms command only sets the root (superuser) password during "initial" processing, and then only if it is not already set. If so, it uses the passwd command, so the effect is immediate. See the passwd(1) manpage. The set_parms command is also DHCP-aware. If you attempt to change DHCP-supplied data such as the hostname or IP address, set_parms issues a warning. If you continue with the changes, set_parms relinquishes the DHCP lease. On first-boot, set_parms asks if you would like to try getting set-up data from a DHCP server. However invoked, the set_parms command often knows and provides default values for many of the initial identity parameters, based on values specified to Ignite-UX in a previous or recent installation of the system or found in system configuration files. The set_parms command can be run only by the user with appropriate privilege. OptionsEach sub-area of set_parms is described below. In a first-boot situation all of the sub-areas are run sequentially. Special first-boot behavior is noted below if applicable, along with any special cases when invoking set_parms on a running system. When calling a sub-area directly, only a unique portion of the sub-area name is required to be given; for example, set_parms h.
set_parms, Ignite-UX or Cold InstallAfter "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 information 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 particular, read instl_adm(4) for descriptions of the is_net_info_temporary, run_setparms, and final variables. Interaction with auto_parmsDuring 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 management of a DHCP lease. After set_parms completes this and other system set-up tasks, control passes back to /sbin/rc, which completes the boot-up sequence using the newly-created system initial identity parameters. See the rc(1M) manpage for information about /sbin/rc for invocation context in the first-boot case. If the system has multiple lan interfaces and the user wishes to configure some with DHCP and others with static IP, the user must invoke set_parms initial first to configure all the lan interfaces which they wish to configure as DHCP. The user should not allow the system to be rebooted while doing this configuration. Then the user should invoke set_parms ip_address to configure the remaining lan interfaces. set_parms initial also allows the user to specify the DHCP server from which to get hostname and networking parameters and Class ID. If multiple interfaces are configured with DHCP, there is a chance that multiple hostnames will be returned through different DHCP enabled lan interfaces. If hostname is not set in /etc/rc.config.d/netconf and none of the interfaces are configured with static IP addresses, then the hostname returned by the least index interface is updated in /etc/rc.config.d/netconf. FILES
|
Printable version | ||
|