WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
    • VMware Cloud Foundation 9
  • VKS
  • Homelab
    • Hardware Options
    • Hardware Reviews
    • Lab Deployment Scripts
    • Nested Virtualization
    • Homelab Podcasts
  • VMware Nostalgia
  • Apple
You are here: Home / ESXi / Auditing ESX DCUI Logins

Auditing ESX DCUI Logins

11.10.2025 by William Lam // Leave a Comment

For troubleshooting purposes, users may need to access the ESXi Direct Console User Interface (DCUI), either remotely through an out-of-band system like an iDRAC or iLO, or directly from the physical server.


For auditing purposes, all login methods to ESXi (SSH, API, Host Client, and DCUI) are recorded, and a corresponding vSphere Event called UserLoginSessionEvent is generated for easy filtering.

Like all vSphere Events, you can either view them directly on an ESX host or centrally using vCenter Server or even VCF Operations.


We can also use the vSphere API via PowerCLI to quickly filter out the DCUI specific login events using the following snippet:

$dcuiLogins = Get-VIEvent -User "dcui" -MaxSamples 1000 | Where { $_.GetType().Name -eq "UserLoginSessionEvent" -and $_.FullFormattedMessage -match "[email protected] logged in as VMware-client/9"}

$results = @()
foreach ($dcuiLogin in $dcuiLogins) {
    $tmp = [pscustomobject] [ordered]@{
        Cluster = $dcuiLogin.ComputeResource.Name
        Host = $dcuiLogin.Host.Name
        Date = $dcuiLogin.CreatedTime
    }
    $results += $tmp
}

$results | Sort-Object -Property Date -Descending

Here is an example output where we retrieve the latest 1000 events and then output the vSphere Cluster and ESX host, sorted by the latest login time.

Categories // ESXi Tags // dcui

Thanks for the comment!Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Thank Author

Author

William is Distinguished Platform Engineering Architect in the VMware Cloud Foundation (VCF) Division at Broadcom. His primary focus is helping customers and partners build, run and operate a modern Private Cloud using the VMware Cloud Foundation (VCF) platform.

Connect

  • Bluesky
  • Email
  • GitHub
  • LinkedIn
  • Mastodon
  • Reddit
  • RSS
  • Twitter
  • Vimeo

Recent

  • VCF 9.0 Fleet Latency Diagram 12/11/2025
  • Quick Tip - Downloading VMware Cloud Foundation (VCF) Consumption CLI for Air-Gapped Environments 12/10/2025
  • Automating VCF Operations Objects & Metrics Reporting 12/08/2025
  • Quick Tip - Using VCF CLI to login to vSphere Supervisor when configured with VCF Automation 12/05/2025
  • Automating the Reporting of VCF Workload Domain Import Pre-Check Validations 12/04/2025

Advertisment

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.

To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2025

 

Loading Comments...