As you might know, it stands for Dell Remote Access Card. Working on Dell servers, this tool could be very handy if you are working with hundreds to thousands of server in a day. Here I will share few important and commonly use DRAC CLI commands:

  1. racadm get BIOS.BiosBootSettings.bootseq  ⇒ Gets you the boot sequence
  2. racadm set BIOS.BiosBootSettings.bootseq HardDisk.List.1-1,NIC.Integrated.1-1-1 ⇒ Set boot sequence as per your requirement. In this example, HDD then NIC is set.
  3. racadm get iDRAC.ServerBoot.FirstBootDevice ⇒ Shows you the next boot device. If you want to boot via Network for one time(say for installation purpose), and subsequently you want to boot normally i.e., HDD, then you can use this option. Check the next command for this.
  4. racdm set iDRAC.ServerBoot.FirstBootDevice PXE ⇒ Sets to PXE mode for next boot

  5. racadm serveraction powercycle ⇒ Restarts your server. Also helpful to apply any pending jobs.

  6. racadm raid get vdisks ⇒ Gets all the Virtual Disks(raided)
  7. racadm raid get pdisks ⇒ Gets all the Physical Disks
  8. racadm raid get pdisks -o ⇒ Gets all the Physical Disks with additional information
  9. racadm raid clearconfig:RAID.Integrated.1-1 ⇒ Clears/resets all RAID configurations(PERC)
  10. racadm jobqueue view ⇒ Lists all jobs
  11. racadm jobqueue create RAID.Integrated.1-1 ⇒ Lets you create job under RAID category

If you are handling scale of thousands of servers, setting up servers could be painful and time consuming. One of the easy method that I would suggest is setup one server properly and once done, import its DRAC setting in XML file and apply on other servers(iDRAC templates). Check out the following commands:

  1. racadm get -t xml -f server-1.xml -l 10.10.10.2:/srv/configs ⇒ Will import all DRAC settings in server-1.xml file and put it in a NFS location provided by -l option
  2. racadm set -t xml -f server-1.xml -l 10.10.10.2:/srv/configs ⇒ Apply the template 

Leave a Reply