iDRAC racadm quick and dirty cheatsheet. racadm command can be issues via iDRAC/CMC/OS if svradmin-racadm is installed. Also you can specify -h
% Get all iDRAC settings in a file
racadm get -f config.txt
If you like you can change the contents of config.txt and apply it back to iDRAC
racadm set -f config.txt
% Set password for root user
racadm set iDRAC.Users.2.Password PASSWORD"
% List all ssh keys for root user
racadm sshpkauth -i 2 -v -k all
% Add ssh key to root user
racadm sshpkauth -i 2 -k 1 "CONTENTS OF PUBLIC KEY"
% Delete ssh key for root user
racadm sshpkauth -i 2 -d -k 1
% Get iDRAC IP config
racadm getniccfg
racadm get iDRAC.NIC
% set iDRAC IP
Using config command:
racadm config -g cfgLanNetworking -o cfgNicEnable 1
racadm config -g cfgLanNetworking -o cfgNicIpAddress x.x.x.x
racadm config -g cfgLanNetworking -o cfgNicNetmask 255.255.255.0
racadm config -g cfgLanNetworking -o cfgNicGateway x.x.x.x
racadm config -g cfgLanNetworking -o cfgNicUseDHCP 0
racadm config -g cfgLanNetworking -o cfgDNSServersFromDHCP 0
racadm config -g cfgLanNetworking -o cfgDNSServer1 y.y.y.y
racadm config -g cfgLanNetworking -o cfgDNSServer2 y.y.y.y
• Using set command:
racadm set iDRAC.Nic.Enable 1
racadm set iDRAC.IPv4.Address x.x.x.x
racadm set iDRAC.IPv4.Netmask 255.255.255.0
racadm set iDRAC.IPv4.Gateway x.x.x.x
racadm set iDRAC.IPv4.DHCPEnable 0
racadm set iDRAC.IPv4.DNSFromDHCP 0
racadm set iDRAC.IPv4.DNS1 y.y.y.y
racadm set iDRAC.IPv4.DNS2 y.y.y.y
% Set iDRAC DNS Name
racadm set iDRAC.NIC.DNSRacName iDRACNAME
% Set iDRAC domain name
racadm set iDRAC.NIC.DNSDomainName DOMAIN.NAME
% Set iDRAC DNS Server
racadm config -g cfgLanNetworking -o cfgDNSServer1 x.x.x.x
racadm config -g cfgLanNetworking -o cfgDNSServer2 y.y.y.y
% Set Front LCD to hostname
racadm set System.LCD.Configuration 16
% Reset iDRAC to factory defaults
racadm racresetcfg
% Reset/Reboot iDRAC
racadm racreset OPTIONS
Options : soft, hard, cold
or
racadm serveraction powercycle
% Get Serial number (service tag)
racadm getsvctag
% Get current system information
racadm getsysinfo
% Configure one-time-boot to PXE
racadm set BIOS.OneTimeBoot.OneTimeBootMode OneTimeBootSeq
racadm set BIOS.OneTimeBoot.OneTimeBootSeqDev NIC.Integrated.1-1-1
% Configure persistent Boot Device
racadm config -g cfgServerInfo -o cfgServerBootOnce 0
racadm config -g cfgServerInfo -i cfgServerFirstBootDevice HDD
% Check boot order list
racadm get BIOS.BiosBootSettings.bootseq
% Disable HyperThreading
racadm set BIOS.ProcSettings.LogicalProc Disabled
% Disable OS to iDRAC pass-thru for iDRAC service module (automatically create a pseudo NIC in OS)
racadm set iDRAC.OS-BMC.AdminState Disabled
% Change SNMP public community string
racadm set iDRAC.SNMP.AgentCommunity NEW STRING
% Disable ASR
racadm config -g cfgRacTuning -o cfgRacTuneAsrEnable 0
% Configure Serial redirection
racadm config -g cfgSerial -o cfgSerialConsoleEnable 1
racadm config -g cfgSerial -o cfgSerialBaudRate 115200
racadm config -g cfgSerial -o cfgSerialCom2RedirEnable 1
racadm config -g cfgSerial -o cfgSerialTelnetEnable 0
racadm config -g cfgSerial -o cfgSerialSshEnable 1
to access console via ssh console com2
% Disable Serial On Lan
racadm config -g cfgImpiSol -o cfgIpmiSolEnable 0
% Change Power Profile
racadm set BIOS.SysProfileSettings PerfPerWattOptimizedOs
% Set AC Power Recovery
racadm set BIOS.SysSecurity.AcPwdRcvry Last
racadm set BIOS.SysSecurity.AcPwdRcvryDelay Immediate
% Get RAID physical Disk information
racadm raid get pdisks
racadm raid get pdisks -o (all information)
racadm raid get pdisks -o -p state,size (specific information)
% Get RAID Virtual Disk Information
Racadm raid get vdisks
Justin – Best Cheat Sheet Ever! great work putting these together. Thank you.
I will need racadm command for setting snmp community
I want to run a script for multiple IDRACs
Thanks Great page !
I need to do below changes in bios reqmotely
Set Bios password
Disable VT-D in bios
Disable all the USB ports in the system
Thanks your for this! VERY helpful!
it appears lots of the commands stopped working with iDRAC 8….wonder why Dell does this…. any update will be appreciated
this is a good link for idrac7/8 and idrac8 seems to have tab completion!
http://www.dell.com/support/manuals/us/en/19/idrac7-8-lifecycle-controller-v2.30.30.30/iDRAC_RACADM_Pub/config?guid=GUID-881D7860-CE0E-48C4-A1B5-0E7C7F5C37AE&lang=en-us
Hi,
Newbie here. Is it possible to use this to completely reinstall the OS on the system? I would prefer not to have to pay $300+ for the virtual console. If the answer is yes, any idea how to go about doing it from CD? Many thanks!
Thanks Justin!
Is there a way where I can change boot settings to boot from other source rather than Local Boot.
Basically, my system is unable to send F8 through expect script, so is there a way to avoid F8 press and set option with racadm command line?
I have read some excellent stuff here. Certainly price bookmarking for revisiting.
I surprise how so much attempt you place to make such a wonderful informative site.
“% Reset/Reboot iDRAC
racadm racreset OPTIONS
Options : soft, hard, cold
or
racadm serveraction powercycle”
serveraction will not reboot iDrac but rather the OS installed.
Nice sheet, however there is a typo in:
racadm set BIOS.SysSecurity.AcPwdRcvry Last
and
racadm set BIOS.SysSecurity.AcPwdRcvryDelay Immediate
should be:
racadm set BIOS.SysSecurity.AcPwrRcvry Last
racadm set BIOS.SysSecurity.AcPwrRcvryDelay Immediate
Another useful one I have needed to use more than once is this one, which lets you reset the OS name displayed in the iDRAC:
racadm config -g ifcRacManagedNodeOs -o ifcRacMnOsHostname
Thank you for this. I know it is eight years on but I am finding it very useful.
You are missing the -t option on your racadm sshpkauth -i 2 -k 1 “CONTENTS OF PUBLIC KEY” command.
It should be:
racadm sshpkauth -i 2 -k 1 -t “CONTENTS OF PUBLIC KEY”