{Latest update: 22 May 2002}

What is it?

Lhinv is a Perl script that emulates the hinv command from the IRIX operating system used by SGI machines. It provides a hardware inventory of the system by using the /proc filesystem. This particular version of the script (1.1) supports many of the IRIX flags, and it also allows for sending the output to an email address.

All I did in this case was to build the RPM to make it easier to install on Red Hat systems. If you need more information on the current status of the project, documentation, etc. feel free to check out their website.

By the way, the tarball also includes another script named w3hinv that allows you to display the results of the hardware inventory on a web page. I chose not to install it by default because I consider it insecure. Nevertheless, I did configure the RPM spec file so that it gets copied to the documentation directory in case you still want to move it under Apache's root directory. It's your decision.


The script is supposed to work fine with both the 2.2.x and the 2.4.x Linux kernels. I tested it on Red Hat Linux 6.2 and 7.3 (2.4.18 kernel) and could not notice any problem. Nevertheless, due to possible changes in the implementation of the /proc filesystem there is always a chance that something may fail. If you run across a problem, please report it to the maintainers.

How to install and configure

To install the RPM packages I provide here, simply download the file to your hard drive, log in as root, and run:
rpm -Uvh [packagename]

Other information

Go to their website for more information on the different options that you can use with the script, updates on the project, etc. The same page also contains pointers to other similar scripts written by other developers.


v1.1-2  (22 May 2002)
        New RPM build to fix a problem with the previous version where the
        manual page would fail because it was not in the default MANPATH in
        Red Hat systems.

v1.1-1  (19 January 2001)
        First RPM build.


The lhinv script was put together by Daniel Mercer and Daniel Sully and released under the GPL license. I simply put together the RPM package that you can download here. Visit their website if you want to download the tarball.

Here are the latest RPMs I packaged as of May 22, 2002: