A view of a VM host gives me the field .Config.ConsoleReservation, but ESXi doesn't have the console any more. The vSphere GUI shows total memory and system memory for ESXi hosts.

How can I get an ESXI host's system (vmkernel) memory?


This appears to work:

$totalmemoryB = $view.Hardware.MemorySize
$totalmemoryMB = [Math]::Round($totalmemoryKB / 1024 / 1024)
$limitmemoryMB = $view.SystemResources.Config.MemoryAllocation.Limit
$systemmemoryMB = $totalmemoryMB - $limitmemoryMB

Get-Stat -Entity hostname -memory

  • This shows statistics for memory usage. It does not give me the number for the system memory. According to the vSphere GUI it's 322.4 MB for the VM host in question. – Andrew J. Brehm Jun 27 '13 at 6:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.