1

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?

Andrew J. Brehm
  • 1,611
  • 7
  • 37
  • 57

2 Answers2

1

This appears to work:

$totalmemoryB = $view.Hardware.MemorySize
$totalmemoryMB = [Math]::Round($totalmemoryKB / 1024 / 1024)
$limitmemoryMB = $view.SystemResources.Config.MemoryAllocation.Limit
$systemmemoryMB = $totalmemoryMB - $limitmemoryMB
Andrew J. Brehm
  • 1,611
  • 7
  • 37
  • 57
0

Get-Stat -Entity hostname -memory

Nathan C
  • 15,059
  • 4
  • 43
  • 62
tony roth
  • 3,884
  • 18
  • 14
  • 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 06:06