ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Managing the iDRAC from the Security Analytics command line

book

Article ID: 227300

calendar_today

Updated On:

Products

Security Analytics

Issue/Introduction

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?

Resolution

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  TSR_date_file.zip

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

Get the power supply 1 status

(These should be Present)
racadm get system.power.supply.1
racadm get system.power.supply.2

Get the full hardware inventory and status

racadm hwinventory > /root/hwinventory.out

OR

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

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?