Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-14-2011, 10:29 AM   #1
Senior Member
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,737
Blog Entries: 3

Rep: Reputation: 107Reputation: 107
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

Last edited by SaintDanBert; 06-14-2011 at 10:31 AM.
Old 06-14-2011, 10:37 AM   #2
LQ Newbie
Registered: Sep 2007
Location: UK
Distribution: RedHat Enterprise 5 + 6
Posts: 10

Rep: Reputation: 0
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.
Old 02-08-2012, 05:02 AM   #3
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
seeking "tiny text" page thumbnail utility SaintDanBert Linux - Software 1 01-21-2010 03:34 AM
seeking conversion to/from winXX tablet "journal" and X11 tablet "xournal" ink SaintDanBert Linux - Software 0 01-12-2010 05:14 PM
Seeking for "Synchronise" and "patients" projects/scripts of Visual Basic Programming 2 07-05-2008 07:21 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration