Posts Tagged HP-UX

Check powerpath links in HP-UX

To check if the powerpath links are up in HP-UX, you can use the following command:

powermt display dev=all

, , ,

No Comments

Lock an user account in HP-UX

To lock an user account in HP-UX, you can use the following command:

/usr/lbin/modprpw -m alock=YES USER

, ,

No Comments

Merge many depots

When you have many depot files, you can create a single big depot and install it instead of install one by one.

Let’s assume that you need install the following depots, and they are all located in the directory /tmp/install/depots:

autoconf-2.64-hppa-11.11.depot
bison-2.4.1-hppa-11.11.depot
gawk-3.1.7-hppa-11.11.depot
sed-4.2.1-hppa-11.11.depot
tcltk-8.5.7-hppa-11.11.depot
texinfo-4.13-hppa-11.11.depot
zip-3.0-hppa-11.11.depot

To create a single depot, run the follow commands:

cd /tmp/install/
for i in `ls depots/*.depot` ;do swcopy -s /tmp/install/$i \* @/tmp/install/big;done

Now, to install it, you can use:

swinstall -s /tmp/install/big

, , ,

No Comments

Listing installed packages in HP-UX

To list all installed packages on HP-UX, you can use the following command:

swlist -l

,

No Comments