Skip to content

Instantly share code, notes, and snippets.

@andrewspiers
Last active October 22, 2018 07:30
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save andrewspiers/10225981 to your computer and use it in GitHub Desktop.
Save andrewspiers/10225981 to your computer and use it in GitHub Desktop.
Change iDRAC password using OpenManage

How to change an iDRAC password using Racadm for a Dell R720 and similar servers.

TLDR:

#  racadm config -g cfgUserAdmin -o cfgUserAdminPassword -i 2 <newpassword>

This guide assumes you have OpenManage installed. It was tested with the following version of OpenManage:

# omreport about

Product name : Dell OpenManage Server Administrator
Version      : 7.3.0-1
Copyright    : Copyright (C) Dell Inc. 1995-2013 All rights reserved.
Company      : Dell Inc.

and the following version of idRac:

# racadm getconfig -g idRacInfo

# idRacType=16
# idRacProductInfo=Integrated Dell Remote Access Controller
# idRacDescriptionInfo=This system component provides a complete set of remote management functions for Dell PowerEdge Servers
# idRacVersionInfo=1.40.40
# idRacBuildInfo=17
# idRacName=idrac

racadm is the remote access controller administration command line interface. The official documentation for this interface is the "RACADM Command Line Reference Guide for iDRAC7". Versions 1.40.40 and 1.50.50 of this guide were available at http://downloads.dell.com/Manuals/all-products/esuprt_software/esuprt_remote_ent_sys_mgmt/esuprt_rmte_ent_sys_rmte_access_cntrllr/ as of 9th April 2014. iDRAC has room for up to 16 users. To obtain information about users you need to specify the user you are interested in by index. I do not know of a command to dump information about all the users. The factory default is for one user to be set up with username 'root' at index 2. Here is how to find out about that default user:

# racadm getconfig -g cfgUserAdmin -i 2 

This gives output like this:

cfgUserAdminUserName=root
# cfgUserAdminPassword=******** (Write-Only)
cfgUserAdminEnable=1
cfgUserAdminPrivilege=0x000001ff
cfgUserAdminIpmiLanPrivilege=4
cfgUserAdminIpmiSerialPrivilege=4
cfgUserAdminSolEnable=1

The AdminPrivilege value is a mask indicating what the user is permitted to do.

Now that we have confirmed the index of the root user we can change its password:

#  racadm config -g cfgUserAdmin -o cfgUserAdminPassword -i 2 <newpassword>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment