-   Linux - Software (
-   -   seeking linux workstation oriented "audit" or "inventory" utility (

SaintDanBert 06-14-2011 10:29 AM

seeking linux workstation oriented "audit" or "inventory" utility
Does anyone know a utility that consolidates all of the system information details into a common format and creates a report?

I know that there are a dozen utilities -- one tool, one mission -- that will [i]list[/]b various aspects of a running linux workstation.
  • lsmod
  • ls
  • lsattr
  • lscpu
  • lshal
  • lshw, lshw-gtk
  • lsof
  • lspci
  • lspcmcia
  • lspgpot
  • lstat, lstat64
  • lsusb

There are other utilities that will report installed and available packages and other aspects of workstation or system information. The win-dose world has Belarc Advisor that makes an HTML report suitable for filing in electronic or paper form.

In this context, "inventory" refers to a list of the various and several parts of a given workstation rather than something to track the contents of warehouse or other business.

Merci d'avance,
~~~ 0;-Dan

MartinBall 06-14-2011 10:37 AM

I have this small little script which I found somewhere on the interwebs which pulls basic information and puts it into a nice little HTML file, perhaps this could be the basis for someone to expand on?

Basically put this code into a file, chmod it to executable and then run it issuing:


./sysinfo >> system.html


# system_page - A script to produce a system information HTML file

##### Constants

TITLE="System Information for $HOSTNAME"
RIGHT_NOW=$(date +"%x %r %Z")

##### Functions

function system_info
    echo "<h2>System release info</h2>"
    echo "<p>Function not yet implemented</p>"

}  # end of system_info

function show_uptime
    echo "<h2>System uptime</h2>"
    echo "<pre>"
    echo "</pre>"

}  # end of show_uptime

function drive_space
    echo "<h2>Filesystem space</h2>"
    echo "<pre>"
    echo "</pre>"

}  # end of drive_space

function home_space
    # Only the superuser can get this information

    if [ "$(id -u)" = "0" ]; then
        echo "<h2>Home directory space by user</h2>"
        echo "<pre>"
        echo "Bytes Directory"
        du -s /home/* | sort -nr
        echo "</pre>"

}  # end of home_space

##### Main

cat <<- _EOF_

Sorry I can't be much more useful than that.

rigor 02-08-2012 05:02 AM

I realize this is a several month old thread, but just in case it might be useful, the command hwinfo available on some Linux distros, seems to do a fairly comprehensive job.

All times are GMT -5. The time now is 09:27 PM.