I have a couple of HP servers in 2 offices. They have iLO interfaces and i can read the temperature from there.
How can i read this temperature automaticaly over the network ? does iLO have any sort of API ??
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
HP makes a lot of software available for managing their servers, you just have to look a bit for it. They used to have a page where all of their Linux software was in one place, but they seem to have rearranged their site a bit. I found the software by going to their support site and drilling down to the server model I was looking for (though most of the software you're looking for will work on any ProLiant server, which I'm assuming you have).
You'll see tons of software. Most of it was probably included on one or more CDs that came with the server if you bought it new. At my company, we use HP System Health Application and Insight Management Agents, also known as
hpasm. It provides agents that can poke the hardware sensors directly, so we can see things like temperature, fan status, power supplies, and disk failures from inside the OS. It's integrated into Net-SNMP (or Windows SNMP) as a subagent, which we monitor with Nagios. On Linux, it's just an RPM/DEB package you install.
To control the iLO directly over the network, look on the software page for HP Lights-Out Configuration Utility. I've never used it, so I don't know what level of control it gives you, but this is the only software I'm aware of for remotely controlling the iLO. Short of that, there is also an XML interface that you can access locally on the same server that the iLO is in.
Spent quite a bit of time trying to find "HP System Health Application and Insight Management Agents" so I thought you should know what you need for Windows SNMP-ing of HP server temperatures is:
Dell provide a WMI interface as part of their OpenManage software so you can read data from their BMC using WMI from VBScript, Powershell or whatever. I've looked for something similar for the half a dozen HPs we have, but so far failed to find anything. Do any of you big HP users out there in Serverfault land know of any WMI software for the HPs?
If there is WMI software for the iLOs it is a very easy way to do what you want.
Which iLO? Original iLO, iLO2 or iLO3 (probably not given the date of the question)? If it's iLO2/3 they both support IPMI, either from the host OS or, to address your original intent over the network. Note that iLO2 needs the latest firmware (2.00 at time of writing) to fully support IPMI features over the LAN.
If it's original iLO then there's little/no support for IPMI sadly, however as others have said, you can use SNMP to query agents running on the host OS which query iLO/2/3 via "host channel" (this fails if the host OS is broken/rebooting). There's ssh, though the "DMTF SMASH" CLI syntax is a little odd. There's a way of pushing/pulling data in some XML format to/from iLO, but it again requires in-band access, i.e. not what you're looking for.