dell: idrac useful commands – racadm

power actions
racadm -r IDRAC_IP -u USERNAME -p PASSWORD serveraction powerstatus hardreset powercycle powerdown powerup graceshutdown -f

get fibre channel info
racadm -r IDRAC_IP -u USERNAME -p PASSWORD hwinventory FC

soft reset idrac
racadm -r IDRAC_IP -u USERNAME -p PASSWORD racreset soft

reset all lifecycle jobs
racadm -r IDRAC_IP -u USERNAME -p PASSWORD jobqueue delete -i JID_CLEARALL_FORCE

view job queue
rem racadm -r IDRAC_IP -u USERNAME -p PASSWORD jobqueue view

change root password
racadm -r IDRAC_IP -u USERNAME -p calvin config -g cfgUserAdmin -o cfgUserAdminPassword -i 2 PASSWORD

enable snmp/ipmi alerts
racadm -r IDRAC_IP -u USERNAME -p PASSWORD config -g cfgIpmiLan -o cfgIpmiLanAlertEnable 1
racadm -r IDRAC_IP -u USERNAME -p PASSWORD set lifecyclecontroller.lcattributes.lifecyclecontrollerstate 1
racadm -r IDRAC_IP -u USERNAME -p PASSWORD config -g cfgIpmiLan -o cfgIpmiLanEnable 1
racadm -r IDRAC_IP -u USERNAME -p PASSWORD config -g cfgRacTuning -o cfgRacTunePluginType 2

update dns servers
racadm -r IDRAC_IP -u USERNAME -p PASSWORD config -g cfgLanNetworking -o cfgDNSServer2 IPADDRESS
racadm -r IDRAC_IP -u USERNAME -p PASSWORD config -g cfgLanNetworking -o cfgDNSServer1 IPADDRESS

set time servers
racadm -r IDRAC_IP -u USERNAME -p PASSWORD set idrac.NTPConfigGroup.ntp1 SERVER1
racadm -r IDRAC_IP -u USERNAME -p PASSWORD set idrac.NTPConfigGroup.ntp2 SERVER2
racadm -r IDRAC_IP -u USERNAME -p PASSWORD set idrac.NTPConfigGroup.ntp3 SERVER3
racadm -r IDRAC_IP -u USERNAME -p PASSWORD set idrac.NTPConfigGroup.NTPEnable Enabled

get xml config
racadm -r IDRAC_IP -u USERNAME -p PASSWORD get -t xml -f d:\filename.xml

set xml config and force reboot
racadm -r IDRAC_IP -u USERNAME -p PASSWORD set -t xml -f d:\filename.xml -b forced