automatic get server temperature via HP iLO

Solution 1:

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).

  1. Go to their software and drivers download page.
  2. Click on Servers.
  3. Click on ProLiant/tc Series Servers.
  4. Drill down to your series (DL/ML/etc.), model (360/380/etc.) and generation (G3/G4/etc.).
  5. Click on the OS closest to what you have. For Ubuntu, choose Debian. For CentOS, choose RedHat.

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.

Solution 2:

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:

  1. Install SNMP (in Turn Windows features on/off)
  2. Configure it
    1. services.msc->SNMP Service->Security tab->Add "public" community
    2. Add hostnames allowed to access the SNMP service (in the same tab)
  3. Install HP Insight Management agents
  4. Configure which agents to install (defaults)
  5. Use SNMP to poll temperature e.g. 1.3.6.1.4.1.232.6.2.6.8.1.4 for sensor 1.