Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP Servers and Workstations: Managing Systems and Workgroups > Chapter 3 Configuring a System

Making Adjustments

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

  • Setting the System Clock

  • Manually Setting Initial Information

  • Customizing System-Wide and User Login Environments

Setting the System Clock

Only the superuser (root) can change the system clock. The system clock budgets process time and tracks file access.

Potential Problems When Changing the System Clock

The following are potential problems you can cause by changing the system clock:

  • The make program is sensitive to a file’s time and date information and to the current value of the system clock. Setting the clock forward will have no effect, but setting the clock backward by even a small amount may cause make to behave unpredictably.

  • Incremental backups heavily depend on a correct date because the backups rely on a dated file. If the date is not correct, an incorrect version of a file can be backed up.

  • Altering the system clock can cause unexpected results for jobs scheduled by /usr/sbin/cron:

    • If you set the time back, cron does not run any jobs until the clock catches up to the point from which it was set back. For example, if you set the clock back from 8:00 to 7:30, cron will not run any jobs until the clock again reaches 8:00.

    • If you set the clock ahead, cron attempts to catch up by immediately starting all jobs scheduled to run between the old time and the new. For example, if you set the clock ahead from 9:00 to 10:00, cron immediately starts all jobs scheduled to run between 9:00 and 10:00.

Setting the Time Zone (TZ)

/sbin/set_parms sets your time zone upon booting. If you have to reset the time zone, you can use /sbin/set_parms. See “Manually Setting Initial Information ”.

Setting the Time and Date

/sbin/set_parms sets your time and date upon booting. See “Manually Setting Initial Information ”. If you have to reset the time or date, you can use SAM or HP-UX commands.

CAUTION: Changing the date while the system is running in multiuser mode may disrupt user-scheduled and time-sensitive programs and processes. Changing the date may cause make(1), cron(1M), and the Source Control subsystems SCCS, sccs(1), and RCS, rcs(1) to behave in unexpected ways. Additionally, any Hewlett-Packard or third-party supplied programs that access the system time, or file timestamps stored in the file system, may behave in unexpected ways after changing the date. Setting the date back is not recommended. If changes were made to files in SCCS file format while the clock was not set correctly, check the modified files with the val command. See val(1) for details. See “Potential Problems When Changing the System Clock” for more information.
NOTE: Hewlett-Packard strongly recommends that you use single-user mode when changing the system clock. Therefore, warn users of a planned system shutdown. See “Shutting Down Systems” for details on system shutdown.

To use HP-UX commands, follow these steps:

Manually Setting Initial Information

Use this section only if you need to add or modify system parameter information. Any modifications should be made as soon as possible after the initial installation.

/sbin/set_parms is automatically run when you first boot the system. To enter the appropriate set_parms dialog screen to manually add or modify information after booting, log in as superuser and specify

set_parms option

option is one of the keywords in Table 3-5 “set_parms Options ”. You will be prompted for the appropriate data.

Table 3-5 set_parms Options

option

Description

hostname

Your unique system name. This host name must be eight or fewer characters long, contain only alphabetic characters, numbers, underscores, or dashes, and must start with an alphabetic character.

ip_address

Internet protocol address. If networking is installed, this is an address with four numeric components, each of which is separated by a period with each number between 0 and 255. An example of an IP address is: 255.32.3.10. If you do not have networking installed, you will not be prompted for the IP address.

timezone

The time zone where your system is located.

addl_netwrk

Additional network parameters. These allow you to configure additional network parameters, such as the subnetwork mask, network gateway, network gateway IP address, local domain name, Domain Name System (DNS) server host name, DNS server IP address and Network Information Service domain name.

font_c-s

Network font service. This allows you to configure your workstation to be a font client or server. As a font client, your workstation uses the font files on a network server rather than using the fonts on its own hard disk, thus saving disk space. System RAM usage is reduced for font clients, but increased for font servers.

 

Changes you make using set_parms will take effect after you reboot the system. See “Booting Systems”.

Customizing System-Wide and User Login Environments

Defaults for system-wide variables, such as time-zone setting, terminal type, search path, and mail and news notification, can be set in /etc/profile for Korn and POSIX shell users and in /etc/csh.login for C shell users.

User login scripts can be used to override the system defaults. When SAM adds a user, default user login scripts are copied to the user’s home directory. For Korn and POSIX shell users /etc/skel/.profile is copied to $HOME as .profile. For C shell users, /etc/skel/.login and /etc/skel/.cshrc are copied to $HOME as .login and .cshrc. Refer to Shells: User’s Guide and Technical Addendum to the Shells: User’s Guide for information on customizing user login scripts.

NOTE: Do a full backup once you have initially set up and customized your system. This allows you to reconstruct your system — kernel, system files, file system structure, user structures, and your customized files — if you need to. Use SAM or HP-UX commands to perform the backup, as described in “Backing Up Data”.
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1997-2006 Hewlett-Packard Development Company, L.P.