Category Archives: HP-UX general

Running a cronjob on the last day of the month

Although in cron one doesn’t have the ability to specify the last day of the month (for e.g. generating monthly reports) one can easily achieve it with this workaround. Now I show you the idea: This is today: # date +’%d’

Sparse files and how to create them

First of all, let’s clear the definition of the “sparse file”. It is – as the name suggest – a file with “holes” in it. If a file anyhow doesn’t contain any data at some places, the system won’t allocate disk space for that part of the file. A good example for a sparse file [...]

TAR tricks & tips

This is how to tar a bunch of files and send it over network to another machine over SSH, in one turn: # cd /etc; tar cf – passwd | ssh hp01a01.w1 “cd /root;tar xf – passwd”

HP terms – supported vs. unsupported

In HP speak, “supported” and “works” are not synonymous. They have different meanings: Supported, known to work –> warm fuzzies all around Supported, not known to not work –> an HPite may be in trouble Supported, known to not work –> an HPite is in trouble Unsupported, known to work –> lucky today, unlucky tomorrow? [...]

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 [...]

Correct usage of ulimit

The “ulimit” and “limit” commands are often built into the shell, but there may exist some binaries with the same name. For example: # /usr/local/bin/bash bash> type ulimit ulimit is a shell builtin bash> which ulimit /usr/bin/ulimit

Firewall in HP-UX

In most datacenters it is very uncommon to use a firewall directly on the server. However, in HP-UX it is on as a default. To check the status of the firewall: # ipfstat dropped packets:        in 0    out 0 non-data packets:       in 0    out 0 no-data packets:        in 0    out 0 non-ip packets:         in 0    [...]

Sticky revealed – difference between rws and rwS

This will be a short one. I just wanted to make myself a short reminder about Unix permissions. The theory about SUID/SGID/Sticky bits are already clear. But there is a slight difference between SUID and SUID (sic!): # ll test -rwxr-xr-x 1 root root 0 Jul 20 16:56 test # chmod u+s test # ll [...]

Differences between shells

Here is a comparison matrix I’ve found on www.faqs.org: sh csh ksh bash tcsh zsh rc es Job control N Y Y Y Y Y N N Aliases N Y Y Y Y Y N N Shell functions Y(1) N Y Y N Y Y Y “Sensible” Input/Output redirection Y N Y Y N Y [...]

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 [...]