WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
    • VMware Cloud Foundation 9.1
    • VMware Cloud Foundation 9.0
  • 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

  • Quick Tip: Resolving OVFTool "Failed to Send File" Errors on macOS 06/13/2026
  • VCF 9.1 - Are You Using the Correct ESXCLI Command to Enable NVMe Tiering? 06/12/2026
  • VCF 9.1 - OCuLink External Graphics (eGPU) Passthrough with vSphere Kubernetes Service (VKS) 06/12/2026
  • VCF 9.1 - Quick Tip: Uninstalling Optional Day-N Components 06/11/2026
  • VCF 9.1 - Deploying VCF Operations for Networks to non-Management Network 06/10/2026
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 © 2026

Loading Comments...