racadm cheatsheet - dell iDRAC

racadm cheatsheet - dell iDRAC

Get all iDRAC settings in a file

1
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

1
racadm set iDRAC.Users.2.Password PASSWORD"

List all ssh keys for root user

1
racadm sshpkauth -i 2 -v -k all

Add ssh key to root user

1
racadm sshpkauth -i 2 -k 1 "CONTENTS OF PUBLIC KEY"

Delete ssh key for root user

1
racadm sshpkauth -i 2 -d -k 1

Get iDRAC IP config

1
2
racadm getniccfg
racadm get iDRAC.NIC

Set iDRAC IP Using config command:

1
2
3
4
5
6
7
8
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:

1
2
3
4
5
6
7
8
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

1
racadm set iDRAC.NIC.DNSRacName iDRACNAME

Set iDRAC domain name

1
racadm set iDRAC.NIC.DNSDomainName DOMAIN.NAME

Set iDRAC DNS Server

1
2
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

1
racadm set System.LCD.Configuration 16

Reset iDRAC to factory defaults

1
racadm racresetcfg

Reset/Reboot iDRAC

1
racadm racreset OPTIONS

Options : soft, hard, cold or

1
racadm serveraction powercycle

Get Serial number (service tag)

1
racadm getsvctag

Get current system information

1
racadm getsysinfo

Configure one-time-boot to PXE

1
2
racadm set BIOS.OneTimeBoot.OneTimeBootMode OneTimeBootSeq
racadm set BIOS.OneTimeBoot.OneTimeBootSeqDev NIC.Integrated.1-1-1

Configure persistent Boot Device

1
2
racadm config -g cfgServerInfo -o cfgServerBootOnce 0
racadm config -g cfgServerInfo -i cfgServerFirstBootDevice HDD

Check boot order list

1
racadm get BIOS.BiosBootSettings.bootseq

Disable HyperThreading

1
racadm set BIOS.ProcSettings.LogicalProc Disabled

Disable OS to iDRAC pass-thru for iDRAC service module (automatically create a pseudo NIC in OS)

1
racadm set iDRAC.OS-BMC.AdminState Disabled

Change SNMP public community string

1
racadm set iDRAC.SNMP.AgentCommunity NEW STRING

Disable ASR

1
racadm config -g cfgRacTuning -o cfgRacTuneAsrEnable 0

Configure Serial redirection

1
2
3
4
5
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

1
racadm config -g cfgImpiSol -o cfgIpmiSolEnable 0

Change Power Profile

1
racadm set BIOS.SysProfileSettings PerfPerWattOptimizedOs

Set AC Power Recovery

1
2
racadm set BIOS.SysSecurity.AcPwdRcvry Last
racadm set BIOS.SysSecurity.AcPwdRcvryDelay Immediate

Get RAID physical Disk information

1
2
3
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

1
racadm raid get vdisks