For many years, this was the standard method to obtain the CPU clock speed in HP-UX: echo "itick_per_usec/D" | adb -k /stand/vmunix /dev/kmem Then take the number and divide it by 10000 (10k). It turns out that itick_per_usec never shows the processor's core frequency, it...
Q: What is the timeout for disk operations? A. There are two methods. One is for LVM operations and is accomplished with pvchange -t. This sets the limit for LVM operations to a disk or LUN. It can be set to zero to use the...
Q: I need to sleep in my script for less than a second. How can this be done? A: While you might perform some calculation a million times, your script will run slow on older systems and too fast on new systems. perl is your...
PA-RISC (LVM only) mirrored root disk, HP-UX versions 11.11, 11.23, 11.31 Use pvchange –a N /dev/dsk/cxtxdx before removing the disk. -a N will remove all the paths to the PV. If this doesn`t work use pvchange –a n /dev/dsk/cxtxdx to stop I/Os to the PV....
SSH Public Keys do not work Q: I am trying to make a public key allow password-less logins. I have added the public key to the authorized_keys file but ssh still asks for a password. A. The most common problem that causes public keys to...
To audit user creation and modification (via sam, chfn, chsh, usermod, useradd, userdel), the following should work very well. This was tested on HP-UX 11.31. This does NOT require the new Auditing System Extensions bundle available for HP-UX 11.31. This relies on the 'self-auditing' functions,...
I just finished a conference call with HP to talk about the Forums replacement, the HP Communities. I too, have had many of the above concerns about moving to a very different user interface and possibly losing the some two decades of irreplaceable information. From...
Q: How can I create version 2.x volume groups on my old copy of 11.31? The man pages do not have options for version 2.1. Do I have to purchase something? A: No. The latest LVM code is free and you can upgrade by...
Q: I need to sleep in my script for less than a second. How can this be done? A: While you might perform some calculation a million times, your script will run slow on older systems and too fast on new systems. perl is your...
Q: When I copy files to another directory, the inode usage and the size of the copied directories are different. What is happening? A: When you copy files from one filesystem to another you will almost *ALWAYS* have a different amount of space occupied as...