vSphere PowerCLI Reference

Get-ScsiController

Synopsis

Retrieves the virtual Scsi controllers assigned to the specified HardDisk, VirtualMachine, Template, and Snapshot objects.

Syntax

Get-ScsiController [-HardDisk <HardDisk[]>] [[-VM] <VirtualMachine[]>] [[-Template] <Template[]>] [[-Snapshot] <Snapshot[]>] [-Id <String[]>] [-Name <String[]>] [-Server <VIServer[]>] [<CommonParameters>]

Related Commands

Online version
New-ScsiController
Set-ScsiController

Detailed Description

Retrieves the virtual Scsi controllers assigned to the specified HardDisk, VirtualMachine, Template, and Snapshot objects.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
VMVirtualMachine[]Filter the SCSI controllers by the virtual machines they belong to.falsetrue (ByValue)
TemplateTemplate[]Filter the SCSI controllers by the virtual machine templates they belong to.falsetrue (ByValue)
SnapshotSnapshot[]Filter the SCSI controllers by the snapshots they belong to.falsetrue (ByValue)
HardDiskHardDisk[]Filter the SCSI controllers by the hard disks they belong to.falsetrue (ByValue)
IdString[]Specify the Ids of the SCSI controllers you want to retrieve.falsefalse
NameString[]Specify the names of the SCSI controllers you want to retrieve.falsefalse
ServerVIServer[]Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.falsefalse

Return Type

ScsiController

Notes

Examples

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

Get-VM VM1, VM2 | Get-ScsiController

Retrieves the SCSI controllers of the VM1 and VM2 virtual machines.

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

Get-VM VM | Get-Snapshot Snapshot | Get-ScsiController

Retrieves the SCSI controllers of a virtual machine snapshot.

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

$disk = Get-VM VM | Get-HardDisk | Select -First 2  Get-ScsiController -HardDisk $disk

Retrieves the SCSI controllers of the first two hard disks of a virtual machine.


Copyright © 1998 - 2011 VMware, Inc. All rights reserved.