Get-EmcVirtualMachineHypervisor

Gets the virtual machine hypervisor.

 

Syntax

 

Parameters

-VirtualMachineConfiguration <VirtualMachineConfiguration>

Attributes: Required, Position: 1

Specifies the ESI virtual machine configuration object, which you can get from the ESI hypervisor host system object VirtualMachinesConfigurations parameter or by using the Get-EmcVirtualMachineConfiguration cmdlet. This cmdlet encapsulates the virtual machine configuration information such as status, MAC addresses, GUID, attached file-based disks, and pass-through disks.

 

-VirtualMachine <IHostSystem>

Attributes: Required, Position: 1

Specifies the ESI virtual machine host system object, which is derived from the host system. A virtual machine can be added to ESI using the Get-EmcHostSystemCredential and Connect-EmcSystem cmdlets just like the host system. A virtual machine (host system) object can be obtained by using the Get-EmcHostSystem cmdlet.

 

-Silent <SwitchParameter>

Attributes: Optional, Position: named

Turns off all the informational and verbose messages. However, it still displays errors.

 

<CommonParameters>

This cmdlet supports these common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. Type get-help about_commonparameters for more details.

 

Examples

-------------- Example 1 --------------

C:\PS>Get-EmcVirtualMachineConfiguration

C:\PS>Get-EmcHostSystem | Update-EmcSystem -Silent

C:\PS>$vm = Get-EmcHostSystem *.148

C:\PS>$vm.model

Virtual Machine

C:\PS>$h = $vm | Get-EmcVirtualMachineHypervisor

C:\PS>$h.Model

Hyper-V, PowerEdge R710

C:\PS>

This example gets the hypervisor from the virtual machine.

 

------------- Example 2 --------------

C:\PS>Get-EmcVirtualMachineConfiguration

C:\PS>Get-EmcHostSystem | Update-EmcSystem -Silent

C:\PS>$vm = Get-EmcHostSystem *.148

C:\PS>$vm.model

Virtual Machine

C:\PS>$vmconfig = $vm | Get-EmcVirtualMachineConfiguration

C:\PS>$vmconfig.status

Running

C:\PS>$h = $vmconfig | Get-EmcVirtualMachineHypervisor

C:\PS>$h.Model

Hyper-V, PowerEdge R710

C:\PS>

This example gets the hypervisor from the virtual machine configuration and the status of the hypervisor.