Tag Archives: HP-UX

How to get a CDE login to the VGA console

“I have a display attached to the rear of an rx2660, to the VGA port. How can I get a CDE login?” Here is the solution: in the /etc/dt/config/Xservers file, check the following line: # * Local local@console /usr/bin/X11/X :0 uncomment this line, and restart dtlogin: # /sbin/init.d/dtlogin.rc stop # /sbin/init.d/dtlogin.rc start

Find out the disk we were booted from

Here is a quick way to read directly from the running kernel from which disk the system was started: # echo “boot_string/S” | adb /stand/vmunix /dev/kmem boot_string: boot_string:    disk(0/1/1/0.0.0.0.0.0.0;0)/stand/vmunix # ioscan -H 0/1/1/0.0.0 H/W Path     Class                   Description ================================================ 0/1/1/0.0.0                  disk    HP 73.4GMAS3735NC #

LVM tricks – determine the age of the system

After some researching and reading some ITRC, I found a way to get the age of the system. This is done with reading and decrypting the LVM header from the system disks. At first, we need to find out which disks are in vg00: # vgdisplay -v vg00 | grep “PV Name” PV Name                     /dev/dsk/c2t0d0 [...]

HSSM CIM extension install

This guide about installing HP Storage Essentials CIM Extension on HP-UX 11i v1. The following patches are the minimum prerequisites you need to have installed on the system, it may vary depending on the version of your OS. It may be that these are now obsoleted by newer patches, so it might worth a look [...]

Bug in userdel found – affects all 11i v1,v2,v3

This is my first bug I’ve found in HP-UX. In the following story I modified some data to protect our customers privacy. According to the white book of our customer, a user integrated into a HA package need to be created with a symlinked home directory like this: # ll -d /home/user1 lrwxr-xr-x 1 root [...]

Displaying the FC load per card

Here is a nice script for displaying the load of each FC HBA. It collects the data via sar and then summarize it for every FC HBA. It helps you loadbalance the traffic. #!/bin/sh # # get_fcload – mm 2005 # Copyright (C) mm 2005 # # display the throughput per fc-adapter # sar -d [...]

Licensing under HP-UX

Here is a list of the various license files under HP-UX: /opt/sva/etc/license/SVA.lic /etc/update.lib/codeword /var/adm/sw/.codewords /etc/vx/elm/*.lic VxVM and VxFS /var/opt/perf/gkey Glance /var/opt/perf/pvkey PerfView /var/opt/perf/pvanalyzerkey PerfView /var/opt/perf/mwakey MeasureWare /var/opt/OV/HPOvLIC/LicFile.txt Network Node Manager /etc/opt/OV/HPOvLIC/.license Network Node Manager /etc/opt/OV/HPOvLIC/.license LDAP /opt/ansic/newconfig/ansic.cwd ANSI C some commands regarding licensing: # x25checklicense X25 # omnicc -check_licenses -detail Data Protector # bpminlicense -list_keys [...]

Loadbalancing VGs manually

Yes, I know that HP-UX 11i v3 is capable of native multipathing by default, but not every customer can afford the expenses and risks to migrating to a newer OS. So here are a few sample scripts just to show how you can automatize the hard work of doing repeatly vgreduce/vgextend to organize the paths [...]

Reorganizing IO tree – general steps

Make a system recovery tape Collect IO trees from all nodes concerned Decide on the format of the standardized IO tree Document the current device file – HW path mapping Establish which system and user applications use current device files Create an ASCII file representing the new IO tree Shut down the system(s) to single [...]