Category: Dell

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.


Dell – Get Service Tag Remotely

You may use the Microsoft Windows PowerShell script below to get the service tag of a Dell server, remotely.

<#
.SYNOPSIS
This script will automate the process of determining the service tag of a Dell server.
.DESCRIPTION
This script will query the server you specificy for it’s service tag.
.EXAMPLE
wmic /user:administrator /node:hostname bios get serialnumber.
.AUTHOR
Written by Noel Enrique Alvarez on Monday, December 05, 2016.
#>

#Request the domain name
$– USERNAME = Read-Host “What is the username of the administrator account?”

#Request the hostname of the server
$HOSTNAME = Read-Host “What is hostname of the server?”

#Get the service tag
wmic /user:$– USERNAME /node:$HOSTNAME bios get serialnumber

#End of script


Dell Compellent – Verify Front and Back End Ports

You may use the Dell Enterprise Manager Data Collector Manager to configure the SMTP settings of a Dell Compellent Storage Area Network (SAN) and provide you with alerts. In addition to this you may manually verify that the front and back end ports of the storage array are Up. To do so navigate to Dell Storage > Storage CentersStorage Center > Fault Domains. As you can see from the output below all of the ports are Up.

01

02


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.

<#
.SYNOPSIS
Removes a DRAC user.
.DESCRIPTION
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.
.PARAMETER Index
The numerical index of the user to remove.
.EXAMPLE
Remove-DRACUser -TargetSystem 192.168.100.20 -Index 4
#>

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

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

BEGIN
{
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 = “”
}
PROCESS
{
$Error.Clear()
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”
return
}

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
return
}
elseif($RawLine -match “^cfgUserAdminUserName=(.*)”)
{
$UserToRemove = $Matches[1]
}
}
if([String]::IsNullOrEmpty($UserToRemove))
{
Write-Error “No user found at index $Index”
return
}
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 {}


Dell OpenManage Essentials 2.1 – Configure Email Server Settings

Dell OpenManage Essentials 2.1 may be configured to provide email alerts for hardware failures and loss of network connectivity to the servers is manages. The email settings may be found below.

 

01


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

 


Dell – Get Service Tag

You may use the command below, from Microsoft Windows Powershell or command prompt, to retrieve the service tag of a Dell device.

wmic bios get serialnumber