Thursday, May 24, 2007

Getting your system information

You may need to get the system information in testing projects.
There is a tool which gives your system information.

Here are the steps to install the tool and get info
1) Download the rpm suits for your OS
http://dag.wieers.com/rpm/packages/lshw/
2) Login as a superuser (root)
3) Install the rpm
4) type $lshw -html > sysInfo.html to get the system information in HTML format

You can used following commands to get some useful network information of your system .

cat /etc/sysconfig/network-scripts/ifcfg-eth0 | grep IPADDR
cat /etc/sysconfig/network-scripts/ifcfg-eth0 | grep GATEWAY
cat /etc/sysconfig/network-scripts/ifcfg-eth0 | grep NETMASK

There is a utility called 'lshw' that will gather and display this info for you.
It can generate system information in html format too.

(lshw -html > sysInfo.html)


The details of the tool is available @
http://ezix.org/project/wiki/HardwareLiSter

There is a list of rpms which support your OS.

You can get machine architecture by using command

$ arch

No comments: