I’m currently using Linux Mint and wanted to communicate with the iDRAC interfaces on Dell servers.
Install racadm:
sudo echo 'deb http://linux.dell.com/repo/community/ubuntu xenial openmanage' | sudo tee -a /etc/apt/sources.list.d/linux.dell.com.sources.list
sudo gpg --keyserver pool.sks-keyservers.net --recv-key 1285491434D8786F
gpg -a --export 1285491434D8786F | sudo apt-key add -
sudo apt-get update
sudo apt-get install srvadmin-idracadm8
Test with:
/bin/racadm -R 192.168.1.10 -u root -p topsecret getniccfg
or if you want to be prompted for login credentials use:
/bin/racadm -R 192.168.1.10 -i getsysinfo
Example racadm commands
Dump lots of info:
racadm -r 192.168.1.10 -u root -p topsecret racdump
Get the status of the PERC/Raid battery:
racadm -r 192.168.1.10 -u root -p topsecret storage get batteries -o
Set the boot mode:
racadm -r 192.168.1.10 -u root -p topsecret set bios.biosbootsettings.BootMode Bios racadm -r 192.168.1.10 -u root -p topsecret jobqueue create BIOS.Setup.1-1
Set the SNMP string:
racadm -r 192.168.1.10 -u root -p topsecret set iDRAC.SNMP.AgentCommunity opensesame
Set the iDRAC user password:
racadm -r 192.168.1.10 -u root -p calvin set iDRAC.Users.2.Password "opensesame"
More example racadm commands can be found here.