Get-IscsiServerTarget

Get-IscsiServerTarget

Obtains iSCSI targets and their associated properties.

Sintaxis

Parameter Set: Target
Get-IscsiServerTarget [[-TargetName] <String> ] [-ClusterGroupName <String> ] [-ComputerName <String> ] [-Credential <PSCredential> ] [ <CommonParameters>]

Parameter Set: Device
Get-IscsiServerTarget [-ClusterGroupName <String> ] [-ComputerName <String> ] [-Credential <PSCredential> ] [-Path <String> ] [ <CommonParameters>]

Parameter Set: Initiator
Get-IscsiServerTarget [-ClusterGroupName <String> ] [-ComputerName <String> ] [-Credential <PSCredential> ] [-InitiatorId <InitiatorId> ] [ <CommonParameters>]

Descripción detallada

The Get-IscsiServerTarget cmdlet obtains iSCSI targets and their associated properties from the local server or specified computer.

Parámetros

-ClusterGroupName<String>

Specifies the name of the resource group or network within the resource group on which this cmdlet should be run.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-ComputerName<String>

Specifies the computer name, or IP address, of the remote computer, if this cmdlet is run on a remote computer.
Specifies the cluster resource group network name, or cluster node name, if this cmdlet is run on a cluster configuration.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Credential<PSCredential>

Specifies the credentials when connecting to a remote computer.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-InitiatorId<InitiatorId>

Specifies the iSCSI initiator identifiers (IDs) to which the iSCSI target is assigned.
Use this parameter to filter out the iSCSI Server Target object which can be accessed by the given iSCSI initiator.
The format of this parameter is IdType:Value.
Los valores aceptables para este parámetro son los siguientes: DNSName, IPAddress, IPv6Address, IQN, or MACAddress.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Path<String>

Specifies the path of the virtual hard disk (VHD) file that is associated with the iSCSI virtual disk.
Use this parameter to filter the iSCSI Target object that is associated with the virtual disks.

Alias

DevicePath

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-TargetName<String>

Specifies the name of the iSCSI target.
Use this parameter to filter out the iSCSI Target object.

Alias

ninguno

¿Requerido?

false

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

  • Microsoft.Iscsi.Target.Commands.IscsiServerTarget

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • Microsoft.Iscsi.Target.Commands.IscsiServerTarget

Ejemplos

EXAMPLE 1

This example gets the iSCSI targets on the local server.

PS C:\> Get-IscsiServerTarget

EXAMPLE 2

This example gets all of the iSCSI targets on the remote server named fs1.contoso.com.

PS C:\> Get-IscsiServerTarget -ComputerName "fs1.contoso.com"

EXAMPLE 3

This example gets all of the iSCSI targets in the resource group named target1group on the cluster named fscluster.contoso.com.

PS C:\> Get-IscsiServerTarget -ComputerName "fscluster.contoso.com" -ClusterGroupName "target1group"

EXAMPLE 4

This example gets the iSCSI target associated with the VHD with the path "E:\temp\test.vhdx"

PS C:\> Get-IscsiServerTarget -Path "E:\temp\test.vhdx"

EXAMPLE 5

This example gets all of the iSCSI targets that have been assigned to the initiator with type DNSName, and value TargetSvr.contoso.com.

PS C:\> Get-IscsiServerTarget -InitiatorId "DNSName:TargetSvr.Contoso.com"

Temas relacionados

New-IscsiServerTarget

Remove-IscsiServerTarget

Set-IscsiServerTarget