Get-EmcXenServerStorageRepository

Gets storage repositories from a connected XenServer system.

 

Syntax

 

Parameters

-ID <String>

Attributes: Optional, Position: 1

Specifies the storage repository name or UUID. Wildcards are permitted. It is a positional parameter (position = 1).

 

-XenServer <IXenServer>

Attributes: Optional, Position: named

Specifies the owner of the XenServer host.

 

-Silent <SwitchParameter>

Attributes: Optional, Position: named

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

 

-VirtualDiskImage <VirtualDiskImage>

Attributes: Optional, Position: named

Specifies the virtual disk image object, which you can get by using the Get-EmcXenServerVirtualDiskImage cmdlet

 

-Lun <Lun>

Attributes: Optional, Position: named

Specifies the ESI LUN object, which you can get by using the ESI storage system object or by using the Get-EmcLun cmdlet.

 

<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-EmcXenServerStorageRepository

This example gets all storage repositories of all the connected XenServer systems.

 

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

C:\PS>$xen = Get-EmcXenServerSystem

C:\PS>Get-EmcXenServerStorageRepository -XenServer $xen

This example gets the storage repositories of the specified XenServer system.

 

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

C:\PS>$xen = Get-EmcXenServerSystem

C:\PS>Get-EmcXenServerStorageRepository -XenServer $xen -Id *test*

This example gets storage repositories with the specified ID wildcard character within the specified XenServer system.

 

-------------- Example 4 --------------

C:\PS>$vdi = Get-EmcXenServerVirtualDiskImage testVDI

C:\PS>Get-EmcXenServerStorageRepository -VirtualDiskImage $vdi

This example gets storage repositories with the specified virtual disk image.

 

-------------- Example 5 --------------

C:\PS>$lun = Get-EmcLun repositoryLun

C:\PS>Get-EmcXenServerStorageRepository -Lun $lun

This example gets storage repositories with the specified LUN that the repository resides on.