Operating System - Linux
1827857 Members
1470 Online
109969 Solutions
New Discussion

System and OS information

 
Cliff Lim Kok Hwee
Regular Advisor

System and OS information

Gd Day Forum,

I will need to gather the following system information from a Linux box.

Kernel version :
Linux type :
glib version :
h/w type :
OS :

Query: How am I able to retrieve the required information?

This is what I had gather from uname -a command.

uname -a
Linux serverA.nt.com 2.4.9-vmnix2 #1 Wed Dec 4 16:21:45 PST 2002 i686

Thanks for the help in advance/cliff
4 REPLIES 4
renarios
Trusted Contributor

Re: System and OS information

Hi Cliff,

uname -a returns the following information:
System type (name).
Host name (Nodename).
Software release.
Software date.
Machine type.
Domainname.

To query the glib version use rpm -qi glib
Information about hardware can be found issuing the dmesg command or 'vi /var/log/dmesg'

Hope that helps.

Cheerio,

Renarios
Nothing is more successfull as failure
Cliff Lim Kok Hwee
Regular Advisor

Re: System and OS information

thanks for the help guy!
Ross Minkov
Esteemed Contributor

Re: System and OS information


For the hardware info:

$ less /var/log/dmesg
$ dmesg | less

$ cat /proc/cpuinfo
$ cat /proc/meminfo
$ cat /proc/scsi/scsi
$ cat /proc/pci
etc.

lspci will list all PCI devices; lspci is a utility for displaying information about all PCI buses in the system and all devices connected to them.

lshw (Hardware Lister) is a small tool to extract detailed information on the hardware configuration of the machine. It can report exact memory configuration, firmware version, mainboard configuration, CPU version and speed, cache configuration, bus speed, etc. Information can be output in plain text, XML or HTML. You can install lshw from LinuxCOE using apt-get install lshw. URL: http://ezix.sourceforge.net/software/lshw.html

cfg2html-linux

Config to HTML tool. Gets the necessary information to plan an update, to perform basic troubleshooting or performance analysis. As a bonus cfg2html creates a nice HTML and plain ASCII documentation from Linux system, cron and at, installed hardware, installed software, filesystems, dump- and swap configuration, LVM, network settings, kernel, system enhancements and applications, subsystems.

URL: http://www.cfg2html.com/

dmidecode -- comes with kernel-utils rpm

dmidecode reports information about your system's hardware as described in your system BIOS according to the SMBIOS/DMI standard.

URL: http://www.nongnu.org/dmidecode/


For the Linux version try:

$ cat /etc/redhat-release
$ cat /etc/debian_version
$ cat /etc/SuSE-release
$ cat /proc/version
$ cat /etc/issue

At least one of those will tell you... :)


HTH,
Ross

Sivasingam Santhakumar
Frequent Advisor

Re: System and OS information

Just traverse the /proc directory:
ex /proc/cpuinfo gives you cpu info