Get-EmcVirtualMachineScsiController

Gets the SCSI controllers from the virtual machine configurations.

 

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 VirtualMachinesConfigurations parameter or by using the Get-EmcVirtualMachineConfiguration cmdlet. It 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>$hyperv = Get-EmcHostSystem *133

C:\PS>$hyperv | Update-EmcSystem -Silent

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

C:\PS>$vm.model

Virtual Machine

 

C:\PS>$scsi = $vm | Get-EmcVirtualMachineScsiController

C:\PS>$scsi.ScsiControllerIndex

0

C:\PS>$scsi.ScsiControllerId

{9052A0C0-C066-4C6E-95EC-A66CF32336A3}

C:\PS>

This example gets the SCSI controllers from the virtual machine.

 

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

C:\PS>$hyperv = Get-EmcHostSystem *133

C:\PS>$hyperv | 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>$scsi = $vmconfig | Get-EmcVirtualMachineScsiController

C:\PS>$scsi.ScsiControllerIndex

0

C:\PS>$scsi.ScsiControllerId

{9052A0C0-C066-4C6E-95EC-A66CF32336A3}

This example gets the SCSI controllers from the virtual machine configuration.

 

-------------- Example 3 --------------

C:\PS>$h = Get-EmcHostSystem *.133

C:\PS>$h.model

Hyper-V, PowerEdge R710

C:\PS>$scsi = $h.VirtualMachinesConfigurations | Get-EmcVirtualMachineScsiController

C:\PS>$scsi.count

12

C:\PS>$scsi[10].ScsiControllerIndex

2

C:\PS>$scsi[10].ScsiControllerId

{4DCFAEF8-A85A-4641-9322-BB9A5A1CE923}

C:\PS>$scsi[11].ScsiControllerId

{CF06199A-D7C0-4CEE-A87D-FC81A5D96078}

C:\PS>$scsi[11].ScsiControllerIndex

3

C:\PS>

This example gets the SCSI controllers from the virtual machine configurations.