Operating System - Linux
1827439 Members
5420 Online
109965 Solutions
New Discussion

System Configuration Collection Command?

 
zhwpeng
Occasional Advisor

System Configuration Collection Command?

Hi, guys,

is there a command or tool that can be used to collect system configuration info? i.e. installed software, file system...

6 REPLIES 6
Stuart Browne
Honored Contributor

Re: System Configuration Collection Command?

There is no single command, but there are a collection of commands.

If using a RH or SuSE distribution, the following is good for you:

df -vh
rpm -qa
lspci
cat /proc/meminfo
cat /proc/scsi/scsi

This gives disk space, installed software, installed PCI hardware, memory information, and SCSI Bus information.

You might also want to include the contents of '/etc/sysconfig/hwconf' (from a RH system).

Is there any specific information you need from such an audit?
One long-haired git at your service...
Steven E. Protter
Exalted Contributor

Re: System Configuration Collection Command?

You either write it yourself, or use the GUI that comes with Gnome. There is a pretty substantial abound of information that can be gathered together in that way.

I had to do the same thing for HP-UX, so its not just Linux.

I would say however its been done.

Why not offer a 10 point reward to one who can attach a script that does what you wish.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Gopi Sekar
Honored Contributor

Re: System Configuration Collection Command?


i am not sure whether there is single program which can dump the system information in to a text file. you can write your own script to collect the required information.

df, /etc/sysconfig/hwconf and files in /proc directory might be of useful to you.

if you are looking for GUI based tool, there is on kinfocenter (for KDE) which can give all the details that you are looking for. but there is no option to export these information to a text file

Regards,
Gopi
Never Never Never Giveup
Huc_1
Honored Contributor

Re: System Configuration Collection Command?

If you are running a RedHat distribution chance are you have sysreport install

do a
#rpm -qla sysreport

This will extract lots of information from your system and ask you if you want to mail this to reahat in case they need this to help you solve a problem (or check your config)

On one of my system's I have this version (I used Yum tolls to keep up to date)

# yum info sysreport
Setting up Repos
extras 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
updates-released 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
extras : ################################################## 937/937
base : ################################################## 2622/2622
updates-re: ################################################## 885/885
Installed Packages
Name : sysreport
Arch : noarch
Version: 1.3.13
Release: 1
Size : 20 k
Repo : installed
Summary: Gathers system hardware and configuration information.

Description:
Sysreport is a utility that gathers information about a system's
hardware and configuration. The information can then be used for
diagnostic purposes and debugging. Sysreport is commonly used to help
support technicians and developers by providing a "snapshot" of a
system's current layout.

Hope this helps everybody that may read this ;)

Jean-Pierre Huc
Smile I will feel the difference
Huc_1
Honored Contributor

Re: System Configuration Collection Command?

I should also have added that I use this as part of contigency in case of disaster

Zero point for this add on to previous reply.

Thanks,

Jean-Pierre Huc
Smile I will feel the difference
Ross Minkov
Esteemed Contributor

Re: System Configuration Collection Command?

Trying not to repeat anything from previous posts, check out also these tools:

cfg2html
lshw
dmidecode


Regards,
Ross