Please find below my working code for Monitoring Dell 7 iDRAC in Home Assistant, used with my Dell PowerEdge R720 server.
Click the link below to visit the page with my code
…
I have added sensors for the things I’m interested in monitoring however you can add as many senses as you wish.
I found the documentation from Dell was rather poor and I didn’t really understand what I was doing, so I ended up discovering the Baseoid’s in a comparative manner, running two scans and looking at what value is changed in order to identify things I wanted to monitor. This trial and error approach was helped massively by the free scanning tool Paessler SNMP Tester. Debug your SNMP configuration with SNMP Tester
Installation:
Copy the dell_server
folder and all of its contents into your Home Assistant’s packages folder This is often located inside of your /config folder. If you are running Hass.io , use SAMBA to copy the folder over. If you are running Home Assistant Supervised, the packages folder might be located at /usr/share/hassio/homeassistant. It is possible that your packages folder does not exist. If that is the case, create the folder in the proper location, and then copy the dell_server
folder and all of its contents inside the newly created packages folder.
Add the link to the Package to your configuration.yaml
file, to the “homeassistant:” section. For me, I use:
packages: !include_dir_named packages/
Within my provided packages folder there is currently only one file.
Simply modify as follows:
- Enter the IP address of your server iDRAC interface. If needed, amend the “Port” and “Community”
- Ensure SNMP is enabled on your server iDRAC (See Tutorial iDRAC - Configure SNMP [ Step by step ])
- Add the sensors to your Lovelace interface. E.G.
type: entities
entities:
- entity: sensor.server_power
- entity: sensor.server_inlet_temperature
- entity: sensor.server_exhaust_temperature
- entity: sensor.server_cpu1_temperature
- entity: sensor.server_cpu2_temperature
- entity: sensor.server_fans_speed_avg
title: Dell Server
type: history-graph
entities:
- entity: sensor.server_inlet_temperature
- entity: sensor.server_cpu2_temperature
- entity: sensor.server_cpu1_temperature
- entity: sensor.server_exhaust_temperature
hours_to_show: 24
refresh_interval: 0
title: Thermals 24 Hours
type: history-graph
entities:
- entity: sensor.server_power
- entity: sensor.dell_server_energy
hours_to_show: 24
refresh_interval: 0
title: Power 24 Hours
- If desired add the Integration (Riemann sum integral) cumulative energy sensor to the energy dashboard.
That should be everything.
UPDATE 2023
- Make sure you have the SNMP Agent enabled on the Dell iDrac 7 settings (Overview, iDrac Settings, Network, Service tab), ensure the Home Assistant Config “community” name matches
whatever you have in the iDRAC “SNMP Community Name”, i.e. “public”.
- See these lists for what is a apparent fully inventory of all the sensors:
https://mibs.observium.org/mib/IDRAC-MIB/
https://mibs.observium.org/mib/IDRAC-MIB-SMIv2/
UPDATE 2025
Moved to gist as I no longer have a Dell Server to test this with.
Includes modifcation from iDrac Module. · Issue #3 · genestealer/Home-Assistant-Configuration · GitHub