lunes, 3 de diciembre de 2018

PowerCLI: HotAdd: CPU & MEMORY



CPU AND MEMORY: HOT ADD

Hello Guys,

In this post I'm going to show how to get the feature Hot Add in which one virtual machines is enable true:

First you need to connect to the VMware vCenter Server:

$server1=Connect-VIServer -Server 10.60.105.77 -User administrator@vsphere.local -Password VMwar3!! 

After that you need to execute the next command:

Get-Datacenter | Get-VM | Select Name,  @{N="CpuHotAddEnabled";E={$_.ExtensionData.Config.CpuHotAddEnabled}},  @{N="MemoryHotAddEnabled";E={$_.ExtensionData.Config.MemoryHotAddEnabled}} 

Result:



But if you need to save the report in your computer, use the next command:


Get-Datacenter | Get-VM | Select Name,  @{N="CpuHotAddEnabled";E={$_.ExtensionData.Config.CpuHotAddEnabled}},  @{N="MemoryHotAddEnabled";E={$_.ExtensionData.Config.MemoryHotAddEnabled}} |Export-csv /Users/vicentemeneses/Desktop/HotaddNAP.csv -NoTypeInformation -UseCulture 


Result:


Thanks for visiting my Blog.

Share and be sociable!!!



No hay comentarios:

Publicar un comentario

Installing Kubernetes on RHEL 9

  Hello Guys, In this post I will show you how to install a Kubernetes cluster on RHEL8. Let's Start: Disablle Swapp: sudo swapoff -a Co...