voblinks is a script to ease the maintenance of HP-UX in the context of our using significant portions of it from a ClearCase vob.
The problem is of course that at boot time, ClearCase is not available before late in runlevel 2 (?). This is a problem e.g. for installing patches, which may need an automatic reboot, or even a recompilation of the kernel.
This script allows thus an installer to restore a standard situation (all of HP-UX found from standard unix directories), before performing a maintenance task, then to set back our default configuration.
Obviously, the vob copies of the HP-UX components should be upgraded separately in case they have been modified.
The script is intended to be used (first opiton) through soft links, the name of which selects the desired function. Three functions are provided:
The script may also (second option) be used as voblinks with one argument: set, reset or check.
It is written to support sirion, feanor and mahtan. It may be extended for our old hosts later.
Ideally. it shouldn't rely on anything not in /sbin (of course, it could be run first in normal mode, but this may be an annoying restriction). Currently it uses uname to check the host, which fails e.g. on sinkku since uname is only found there in /usr/bin... To support mahtan, we had to copy uname to /sbin...
The script currently supports 3 vobs, For simplicity, it relies
upon the convention that the links point to homonymous directories
under the vobs roots (full path appended).
The same links are not visible from all three hosts in the same way.
The flexibility in this respect is very restricted.
It is currently itself found in a vob, but also available from the local unix directories /root/bin. The reasons are: