Category: Integrated Dell Remote Access Controller 8

Integrated Dell Remote Access Controller 8 – Get IP Address

Have you ever connected to a remote server but didn’t know what it’s Integrated Dell Remote Access Controller 8 (iDRAC8) Internet Protocol (IP) address was?

Well, you may use the following command to get the IP address of an iDRAC8.

racadm getniccfg

Additionally, more information may be found here.

Scripting – Dell iDRAC 8 User

You may use the script below to delete a user account from an Integrated Dell Remote Access Controller 8 (iDRAC8). I would like to acknowledge that I did not write this script and the original link may be found here.

Removes a DRAC user.
Removes a DRAC user. Requires Dell’s RACADM.EXE utility, which is distributed as part of the Dell DRAC Tools kit.
.PARAMETER TargetSystem
The IP address or hostname of the target system.
The numerical index of the user to remove.
Remove-DRACUser -TargetSystem -Index 4

[CmdletBinding(SupportsShouldProcess=$true, ConfirmImpact=”High”)]
[Parameter(Mandatory=$true, HelpMessage=”Enter the hostname or IP address of the target”)]

[Parameter(Mandatory=$true, HelpMessage=”Enter the index of the user to remove”)]
[ValidateRange(3, 16)]

New-Variable -Name RACADMExe -Value “C:\Program Files\Dell\SysMgt\rac5\racadm.exe”
New-Variable -Name RACRootUser -Value “root” -Option Constant
New-Variable -Name RACRootUserPass -Value “7Re`$rupU” -Option Constant
$UserToRemove = “”
Write-Verbose “Checking for existence of racadm.exe”
if(!(Test-Path -Path $RACADMExe))
Write-Error “Run this script from the folder that contains racadm.exe”

Write-Verbose “Attempting to connect to $TargetSystem”
[String[]]$RawResult = & $RACADMExe -r $TargetSystem -u $RACRootUser -p $RACRootUserPass getconfig -g cfgUserAdmin -i $Index 2>&1

foreach($RawLine in $RawResult)
if($RawLine -cmatch “^ERROR”)
Write-Error $RawLine
elseif($RawLine -match “^cfgUserAdminUserName=(.*)”)
$UserToRemove = $Matches[1]
Write-Error “No user found at index $Index”
if($PSCmdlet.ShouldProcess($UserToRemove, “Remove DRAC user”))
Write-Verbose “Attempting delete…”
[String[]]$RawDeleteResult = & racadm -r $TargetSystem -u $RACRootUser -p $RACRootUserPass config -g cfgUserAdmin -o cfgUserAdminUserName -i $Index `”`” 2>&1
foreach($RawDeleteLine in $RawDeleteResult)
if($RawDeleteLine -cmatch “^ERROR”)
Write-Error $RawDeleteLine
return # only necessary for future-proofing, in case other script is added beyond this
if($RawDeleteLine -match “successfully”)
Write-Verbose “Deletion of $UserToRemove was successful.”
END {}

Integrated Dell Remote Access Controller 8 – Command Line Reset

You may use the following (2) commands from a Microsoft Windows Server command prompt or Microsoft Windows PowerShell to remotely  reset an Integrated Dell Remote Access Controller 8 (iDRAC8).

racadm racreset soft
racadm racreset hard –f