1752679 Members
5650 Online
108789 Solutions
New Discussion юеВ

Re: Collect info

 
Nair1980
Frequent Advisor

Collect info

Hi all

I want to collect some information from Linux server

#uname -a is giving the bellow o/p
Linux xxxx.xxx.xxx 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 i686 i386 GNU/Linux
#

Information needed are

1 --> How many lan card are there in server(total #)
2 --> How many fiber cards are there in server
3 --> how many power source is there and all are working fine or not?

I donтАЩt have physical access to server / no console or management port available...

Could any one help how to get this information from OS with root login

Thanks in advance
Damu
5 REPLIES 5
KnutH
New Member

Re: Collect info

Hi,

Try and see if cfg2html will give you what you need: download and install from www.cfg2html.com
It gives all kinds of OS and HW config info
~sesh
Esteemed Contributor

Re: Collect info

Most of the device information is stored the /proc directory.

You can use the cat, more, less, vi command(s) to view any file related to your requirements.
Vitaly Karasik_1
Honored Contributor

Re: Collect info


1 --> How many lan card are there in server(total #)

ifconfig -a

2 --> How many fiber cards are there in server
3 --> how many power source is there and all are working fine or not?

For 2 and 3, AFAIK, you cannot fetch the info without drivers/modules from the hardware provider.
skt_skt
Honored Contributor

Re: Collect info

Look at /etc/sysconfig/hwconf

Make use of /usr/sbin/lshw(lshw-2.05.01-1.0.el2.rf) .

Interms of identifying the power source.

i would recommend to looks at h/w wendor site( like ibm.com ,put the Xseries 346, 8840 model, they will display the std config) Normally the power sources are NOT customised..
Ivan Ferreira
Honored Contributor

Re: Collect info

>>> How many fiber cards are there in server
>>> how many power source is there and all are working fine or not?


Hardware vendors sometimes provides specific software to obtain this information.

You can check the output of "dmesg" to identify the number of HBAs. If you use qlogic for example you can also check /proc, like this example:

ls /proc/scsi/qla2xxx/
0 1

This server has 2 HBAs.

If the server is HP, you can use the "hpasmcli" tool, for example:

#hpasmcli
hpasmcli> show POWERSUPPLY
Power supply #1
Present : Yes
Redundant: Yes
Condition: Ok
Hotplug : Supported

Power supply #2
Present : Yes
Redundant: Yes
Condition: Ok
Hotplug : Supported


This is provided by hpasm package.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?