System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to know about System Configuration??

SOLVED
Go to solution
monu_1
Regular Advisor

How to know about System Configuration??

Hi all,

Is there any utilities or command or package avilable in linux to get all about system configuration.
I am using Fedora 8.

Thanks,
MKS
14 REPLIES
Matthias Wies
Occasional Contributor

Re: How to know about System Configuration??

Hi Manoj,

since Fedora is redhat based, most of the configuration can be found in the /etc/sysconfig directory.

Also check some documentation you can find here :

http://www.centos.org/docs/4/html/rhel-sag-en-4/

good luck,

Regards Matthias
skt_skt
Honored Contributor

Re: How to know about System Configuration??

Also you can install lshw rpm and run the executable

#rpm -qa|grep -i lshw
lshw-2.05.01-1.0.el2.rf

# whereis lshw
lshw: /usr/sbin/lshw /usr/share/lshw /usr/share/man/man1/lshw.1.gz
Ivan Ferreira
Honored Contributor
Solution

Re: How to know about System Configuration??

You can use cfg2html.

http://come.to/cfg2html
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ross Minkov
Esteemed Contributor

Re: How to know about System Configuration??

Manoj,

To get the right answer you need to ask a more specific question. "System configuration" is not very specific.

Regards,
Ross

monu_1
Regular Advisor

Re: How to know about System Configuration??

Thanks to all,

basically i am searching
hardisk capacity(free and used)
motherboard information
ram, rom, other information regarding machine level etc.
and what is currently third party application installed?

Regards,
MKS
Vitaly Karasik_1
Honored Contributor

Re: How to know about System Configuration??

I almost sure that already suggested lshw and cfg2html will be enough for you, but I'd like to add redhat's "sysreport" utility anyway.
Rob Leadbeater
Honored Contributor

Re: How to know about System Configuration??

Hi,

You can get a lot of information by looking at the output of dmesg. It will take a bit of effort to extract the data you want though...

Cheers,

Rob
Maaz
Valued Contributor

Re: How to know about System Configuration??

on suse, there is a superb utility "siga".
hope you can download the same for redhat/fedora.

Ralph Grothe
Honored Contributor

Re: How to know about System Configuration??

If you are really using Fedora 8
I would say you are pretty bleeding-edge.
Afaik, Fedora 7 is current while 8 should be released somewhere late in fall.
I wouldn't recommend a prerelease candidate for someone who doesn't yet know where to find configuration files and how to query the hardware inventory.

For disks you can run (as root) "fdisk -l"
This will show you how your disks are partitioned and if there are still unused blocks.
It also depends how you are using your disks.
I think these days the Fedora distros set up LVM volumes even for guided installations.
So you should also get acquainted with the LVM commands pvscan, vgscan, lvscan, vgdisplay, lvdisplay (those to just view the usage and config).

As for RAM you can

# less /proc/meminfo

Swap

# swapon -s

CPU

# less /proc/cpuinfo

If you have configured any MD devices
(but I doubt) you can run

# mdadm -QDs

For PCI devices run lspci
similarily for USB lsusb

As said, RH (derived) distros have most of their config files beneath /etc/sysconfig


Madness, thy name is system administration
Steven E. Protter
Exalted Contributor

Re: How to know about System Configuration??

Shalom,

If its still in there, I would used sysreport

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
Ross Minkov
Esteemed Contributor

Re: How to know about System Configuration??

Looks like hardware configuration information was already covered by others; for installed software use rpm -qa.

-Ross
skt_skt
Honored Contributor

Re: How to know about System Configuration??

"Dmidecode" displays information about the dmi supported devices. I had seen it displasy some BIOS information.And also shows failed CPU information as "unpopulated". It is a bonus agian.
Sac_3
Frequent Advisor

Re: How to know about System Configuration??

Hi Manoj,

Just want to add few more points:

To check free disk Space:
=========================

Red Hat Linux provides a utility called diskcheck that monitors the amount of free disk space on the system. Based on the configuration file, it will send email to the system administrator when one or more disk drives reach a specified capacity. To use this utility, you must have the diskcheck RPM package installed.

This utility is run as an hourly cron [1] task.

The following variables can be defined in /etc/diskcheck.conf:


defaultCutoff â When disk drives reach this percent capacity, it will be reported. For example, if defaultCutoff = 90, an email will be sent when the monitored disk drives reach 90% capacity.

cutoff[/dev/partition] â Override the defaultCutoff for the partition. For example, if cutoff['/dev/hda3'] = 50 is specified, diskcheck will alert the system administrator when the partition /dev/hda3 reaches 50% capacity.

cutoff[/mountpoint] â Override the defaultCutoff for the mount point. For example, if cutoff['/home'] = 50 is specified, diskcheck will alert the system administrator when the mount point /home reaches 50% capacity.

exclude â Specify one or more partitions for diskcheck to ignore. For example, if exclude = "/dev/sda2 /dev/sda4" is specified, diskcheck will not alert the system administrator if /dev/sda2 or /dev/sda4 reaches the specified cutoff percentage.

ignore â Specify one or more file system types to ignore in the format -x filesystem-type. For example, if ignore = "-x nfs -x iso9660" is specified, the system administrator will not be alerted about nfs or iso9660 file systems reaching capacity.

mailTo â Email address of the system administrator to alert when partitions and mount points reach the specified capacity. For example, if mailTo = "webmaster@example.com" is specified, webmaster@example.com will be emailed alerts.

mailFrom â Specify the identity of the email sender. This is useful if the system administrator wants to filter the mail from diskcheck. For example, if mailFrom = "Disk Usage Monitor" is specified, email will be sent to the system administrator with the sender Disk Usage Monitor.

mailProg â Specify the mail program to use to send email alerts. For example, if mailProg = "/usr/sbin/sendmail" is specified, Sendmail will be used as the mail program.

You do not have to restart a service if you change the configuration file because it is read each time the cron task is run. You must have the crond service running for cron tasks to be executed. To determine if the daemon is running, use the command /sbin/service crond status. It is recommended that you start the service at boot time. Refer to Chapter 13 for details on starting the cron service automatically at boot time.

Hardware info:
==============

If you are having trouble configuring your hardware or just want to know what hardware is in your system, you can use the Hardware Browser application to display the hardware that can be probed. To start the program from the desktop, select Main Menu Button => System Tools => Hardware Browser or type hwbrowser at a shell prompt. As shown in Figure 25-3, it displays your CD-ROM devices, floppy disks, hard drives and their partitions, network devices, pointing devices, system devices, and video cards. Click on the category name in the left menu, and the information will be displayed.

Regards,
SaC

PS: Best way to thank in this forum is to Assign points.........................



VK2COT
Honored Contributor

Re: How to know about System Configuration??

Hello,

Many nice scripts and utilities exist to
summarize status of a Linux server. Some
of them were mentioned in other posts.

For very specific reasons, I wrote a Perl script that utilises many commands and gives
me details I need when I am called to work
on projects.

I have similar scripts for Solaris, HP-UX and Linux:

http://www.circlingcycle.com.au/Unix-sources/

Cheers,

VK2COT
VK2COT - Dusan Baljevic