NTP is used for time synchronization.
a) xntpd server (daemon) is used by HP-UX.
1. Open file /etc/rc.config.d/netdaemons:
# vi /etc/rc.config.d/netdaemons
2. Make sure following variables are defined and XNTPD is set to 1, below is the example:
export NTPDATE_SERVER='ntp.mycorp.com pool.ntp.org in.pool.ntp.org'
export XNTPD=1
export XNTPD_ARGS=
Save and close the file.
Note:
* NTPDATE_SERVER : space-separated list of timeserver / IPs - If server uses the radio clock / system time, leave the NTPDATE_SERVER blank.
* XNTPD : set it to 1 to enable NTP
* XNTPD_ARGS : set options, see man page
3. Make sure correct timezone is setup in /etc/TIMEZONE file (look for TZ variable):
# vi /etc/TIMEZONE
4. Save and close the file. Open /etc/ntp.conf file:
vi /etc/ntp.conf
Make sure server are defined:
server unix-box-ntp
server delhi-ntp
peer delhi-noc-ntp
driftfile /etc/ntp.drift
Close and save the file.
Note:
* server : ntp server used (poll) to obtain time
* peer : a peer relationship with another ntp server
* driftfile : track local clock time (drift of the local clock)
5. Start HP-UX ntp service:
# /sbin/init.d/xntpd start
# /sbin/init.d/xntpd stop <-- stop ntp service
6. Verify that everything is working fine:
# ntpq -p
7. Watch out log file /var/adm/syslog/syslog.log for errors:
# tail -f /var/adm/syslog/syslog.log
8. Make sure xntpd is running:
# ps -ef | grep xntpd
b) SAM - GUI Admin Tool
You can configure NTP service under HP-UX using SAM, just start SAM and open time window.
There are 2 ways to mount iso file in hp-ux 1) using LVM method (to copy ISO into a logical volume) is the same as for older HP-UX releases: 1. Find out the size of the ISO image: # du -k /data/myImage.iso NOTE: The size will be in Kb. 2. Create a logical volume for the ISO image: # lvcreate -L -n iso /dev/vg00 NOTE: The name of the logical volume will be /dev/vg00/iso 3. Copy the ISO file to the raw logical volume: # dd if=/data/myImage.iso of=/dev/vg00/riso bs=64k 4. Create a temporary directory and mount the /dev/vg00/iso volume # mkdir /iso_image # mount /dev/vg00/iso /iso_image NOTE: For HP-UX 11.11 you must install the latest CDFS patches: PHCO_25841 Add Rock Ridge extension to mount_cdfs(1M) PHKL_26269 Rock Ridge extension for ISO-9660 PHKL_34153 CDFS cumulative patch 2) Available in HP-UX 11.31 0909: ISOIMAGE-ENH. Provides a new DLKM module fspd. Required to mount, read and umount the ISO image file. The comm...
Comments