This blog post was originally written by Aditi Satam and Syama Poluri.

The Dell VRTX Chassis is a converged infrastructure solution that includes four separate compute nodes, network infrastructure, and a shared storage subsystem. Dell Chassis Management Controller (CMC) helps manage, monitor, configure and deploy different hardware components in the Dell PowerEdge VRTX Solution.

The VRTX platform offers a robust mechanism of monitoring and troubleshooting the chassis. You can retrieve event information from the hardware logs that are available from within CMC User interface. If you want to access any chassis logs you would need to log in to CMC and then save an xml file. Alternatively, if you would like to access these logs directly from Windows operating system, instead of saving a separate file from CMC, you can do so using Windows PowerShell and WSMAN CIM capability. Step one would be to establish a CIM Session to the CMC. Once the session is established, you can retrieve the logs. You can then pipe these logs and save them as an XML or in clear text format.

The PowerShell commands below walk you through all the steps – Establishing a CMC session, retrieving the chassis, hardware and software logs and clearing the logs.

#Enter the CMC IP Address

$ipaddress=Read-Host -Prompt "Enter the CMC IP Address"

#Enter the Username and password

$username=Read-Host -Prompt "Enter the Username"

$password=Read-Host -Prompt "Enter the Password" -AsSecureString 

$credentials = new-object -typename System.Management.Automation.PSCredential -argumentlist $username,$password 

# Setting the CIM Session Options

$cimop=New-CimSessionOption -SkipCACheck -SkipCNCheck -Encoding Utf8 -UseSsl

$session=New-CimSession -Authentication Basic -Credential $credentials -ComputerName $ipaddress -Port 443 -SessionOption $cimop -OperationTimeoutSec 10000000

echo $session

Fig 1. CIM Session Established


# Retrieve Chassis, Hardware and Software logs 

$chassislogentry=Get-CimInstance -CimSession $session -ResourceUri "" -Namespace root/dell/cmc -ErrorAction Stop


($chassislogentry | ConvertTo-Xml).Save(".\chassislog.xml" 


$hwlogEntry=Get-CimInstance -CimSession $session -ResourceUri "" -Namespace root/dell/cmc -ErrorAction Stop



$swlogEntry=Get-CimInstance -CimSession $session -ResourceUri "" -Namespace root/dell/cmc -ErrorAction Stop


Fig 2. CMC Hardware (CEL) Logs


#Clear Chassis and Hardware Log 

$chassisrecordlog=Get-CimInstance -CimSession $session -ResourceUri "" -Namespace root/dell/cmc -ErrorAction Stop


Invoke-CimMethod -InputObject $chassisrecordlog -ResourceUri "" -CimSession $session -MethodName ClearChassisLog  


$hwlog = Get-CimInstance -CimSession $session -ResourceUri "" -Namespace root/dell/cmc -ErrorAction Stop

Invoke-CimMethod -InputObject $hwlog -ResourceUri "" -CimSession $session -MethodName ClearLog

Additional Resources:

Using Microsoft Windows PowerShell CIM Cmdlets with Dell iDRAC

For more related articles visit Managing Dell PowerEdge VRTX using Windows PowerShell