The user may be locked out of the iDRAC and need to set the iDRAC IP address or set the password for the iDRAC. They may need the status of the power supply or a full inventory of all components. This is a list of useful commands to get or set values like ip address, username, and password.
How do I reset the iDRAC password from the command line?
NOTE: First set the path for bash to find the racadm command
Set PATH for racadm to /opt/dell/srvadmin/sbin/racadm
export PATH=$PATH:/opt/dell/srvadmin/sbin/
Much like a Security Analytics CSR with the configuration and logs but for the Dell Hardware.
/opt/dell/srvadminsbin/racadm techsupreport collect (This will return a job ID, like JID_040217680352)
/opt/dell/srvadminsbin/racadm jobqueue view -i JID_040217680352 (watch for the job to complete)
/opt/dell/srvadminsbin/racadm jobqueue view (Shows all jobs and their status)
/opt/dell/srvadminsbin/racadm techsupreport export -f TSR_date_file.zip
racadm jobqueue help
racadm jobqueue help delete
racadm jobqueue delete --all
racadm set iDRAC.Users.2.Password new_password_here
racadm get iDRAC.Users.2.UserName
Or for all of the User 2 details
racadm get iDRAC.Users.2
racadm getniccfg
Using set Syntax
racadm get iDRAC.Nic
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
Using config Syntax:
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
(These should be Present)
racadm get system.power.supply.1
racadm get system.power.supply.2
racadm hwinventory > /root/hwinventory.out
OR
racadm getsensorinfo
racadm racreset soft
racadm help set
racadm help get
racadm get
Documentation: https://topics-cdn.dell.com/pdf/idrac_v4-20_cliguide_en-us.pdf
Cheat sheet - https://www.gooksu.com/2015/04/racadm-quick-dirty-cheatsheet/
RACADM Download: https://www.dell.com/support/home/en-us/drivers/driversdetails?driverid=0992n
Other useful articles:
Using RACADM or iDRAC to generate a Dell TSR
How do I collect hardware logs for Dell head units?