|
|
HP-UX Reference > Sset_parms(1M)HP-UX 11i Version 2: December 2007 Update |
|
NAMEset_parms — set system initial identity parameters: host name, date, time, root password, networking SYNOPSISset_parms initial set_parms hostname set_parms timezone set_parms date_time set_parms ip_address set_parms addl_netwrk DESCRIPTIONThe set_parms command is an interactive system setup 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 host name set when the system wakes up. This causes set_parms to step through all of its subareas to help you set all of the initial identity parameters. After the system has booted and is running, set_parms may also be called 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 subarea (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(1) command, so the effect is immediate. The set_parms command has two available user interfaces: Graphical and terminal-based. At first boot, the graphical interface is used if the system console is a graphics device, otherwise a terminal interface is used. If set_parms is invoked later on a running system, the graphical interface is used if and only if the DISPLAY parameter is set in the user's environment and an X server can be contacted at the host referenced in the DISPLAY variable. If run under CDE, set_parms should automatically select the graphical interface. The set_parms command is also DHCP-aware. If you attempt to change DHCP-supplied data such as the host name 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 like to try getting setup 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. OperandsEach subarea of set_parms is described below. In a first-boot situation, all of the subareas 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 subarea directly, only a unique portion of the subarea name is required to be given; for example, set_parms h.
set_parms and Ignite-UX / 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 normally left on the system. This file is used to communicate to set_parms and other tools the host name, 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 manual 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. Native Language Support (NLS)The set_parms command supports all of the standard HP-supplied languages. In first-boot situations, the language set_parms uses is dictated by either geocustoms(1M) or the LANG parameter as set in /etc/rc.config.d/LANG. The geocustoms command, if called by set_parms, allows you to pick both a "system setup" language (the language of the system administrator setting up the system, for use by the user interface), and a "system default" language (the language of the end user). The set_parms command uses the "system setup" language as picked within geocustoms, unless the system default language is set to an Asian language. In this case, it uses the Asian language (from the file /etc/rc.config.d/LANG), since geocustoms itself does not provide an Asian language user interface. Interaction with auto_parms and geocustomsDuring the boot sequence, /sbin/rc always invokes auto_parms, which in turn detects the first-boot situation and the need to run geocustoms (note, these are independent conditions). It calls set_parms if either or both of these conditions are true. The set_parms command first sets up an X Window environment if the system console is on a graphics display, then calls geocustoms if necessary. If geocustoms is called, after it finishes, and always in a first-boot situation, 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 setup tasks, control passes back to /sbin/rc, which completes the boot sequence using the newly created system initial identity parameters. FILES
|
|