Operating System - Linux
1820643 Members
1894 Online
109626 Solutions
New Discussion юеВ

Re: finding out server info from a running linux

 
SOLVED
Go to solution
Loic Domaigne
Occasional Advisor

finding out server info from a running linux

Hello Everybody,

Is there a programmatic way to find the server information like product name (e.g. DL585 G1), serial number etc.? Of course, I can just look at the "server information" on the ILO... But I am looking for scripts, or C/C++ programs that could retrieve this information directly from a running Linux environment.

Alternatively, are there any free HP tools that would give such information?

We are first targeting SuSE Linux (Professional or SLES), but if it would apply to a wider range of distributions, this would be even better.

Thanks in advance,
Loic.
8 REPLIES 8
David Child_1
Honored Contributor

Re: finding out server info from a running linux

I'm not sure of a way to get the kind of detail you want from the OS.

You could try using the iLO scripting tools;
http://h18023.www1.hp.com/support/files/lights-out/us/download/25349.html

HP Insite Manager may also get you what you want;

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPSIM-Linux

David
man ku
New Member
Solution

Re: finding out server info from a running linux

dmidecode
Jean-Yves Picard
Trusted Contributor

Re: finding out server info from a running linux

Hello,

hpdiag from Prolian Support Pack should do the work.

you end whith a xsl file that can be coverted to a text file including any information tou want.

Jean-Yves Picard
Heironimus
Honored Contributor

Re: finding out server info from a running linux

If you want to read them remotely I think you can also get those via SNMP, as long as you have all the HP agents installed on the server.
Rick Garland
Honored Contributor

Re: finding out server info from a running linux

There is the "cfg2html" script. This is a free tool provided by an employee of HP - but there is no connection between HP and this script.

Works on multiple flavors of linux.
Loic Domaigne
Occasional Advisor

Re: finding out server info from a running linux

Hello everybody!

Thanks for all your answers. dmidecode is exactly what I was looking for. cfg2html could be also interesting for other purposes; thanks for raising my attention on that tool.

I'd like to investigate the possibility to query those server characteristics remotely using SNMP. Where Do I find the corresponding SNMP Agent?

Thanks in advance,
Loic.
Heironimus
Honored Contributor

Re: finding out server info from a running linux

If you install the HP Insight Manager agents (free download from the "drivers and software" part of HP's support page) it'll add the necessary SNMP subagents. Just about anything you can see in the Systems Management Homepage can be read through SNMP. Unfortunately I think you will have to go through the MIBs or just run snmpwalk and look for the data, I never could find any official documentation on the OIDs and I'm not sure where my own notes on it are.
Loic Domaigne
Occasional Advisor

Re: finding out server info from a running linux

Thanks everybody for your great answers.