Managing the iDRAC from the Security Analytics command line
search cancel

Managing the iDRAC from the Security Analytics command line


Article ID: 227300


Updated On:


Security Analytics


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/

Get a TSR

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

Clean out the jobqueue

racadm jobqueue help 
racadm jobqueue help delete
racadm jobqueue delete --all

Set the root account password on the iDRAC

racadm set iDRAC.Users.2.Password new_password_here

Get the root account name (User 2)

racadm get iDRAC.Users.2.UserName

Or for all of the User 2 details

racadm get iDRAC.Users.2

Get the IP address

racadm getniccfg

Set the iDRAC IP

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

Get the power supply 1 status

(These should be Present)
racadm get
racadm get

Get the full hardware inventory and status

racadm hwinventory > /root/hwinventory.out


racadm getsensorinfo

Reboot the iDRAC

racadm racreset soft

Get help for racadm commands.  In this case, for the jobqueue

racadm help set
racadm help get
racadm get

Additional Information

Cheat sheet -
RACADM Download:

Other useful articles:
Using RACADM or iDRAC to generate a Dell TSR
How do I collect hardware logs for Dell head units?