< Back

Get-InStorHost

Wed Jan 15, 2020 4:11 am

NAME Get-InStorHost



SYNOPSIS

Retrieves the Host(s) from MCS storage.





SYNTAX

Get-InStorHost [-Conn] <InStorConnection> [[-Opts] <String>] [<CommonParameters>]



Get-InStorHost [-Conn] <InStorConnection> [-HostID] <String> [[-Opts] <String>] [<CommonParameters>]



Get-InStorHost [-Conn] <InStorConnection> [-HostName] <String> [[-Opts] <String>] [<CommonParameters>]



Get-InStorHost [-Conn] <InStorConnection> [-Initiator] <String[]> [<CommonParameters>]





DESCRIPTION

Retrieves the Host(s) from MCS storage.





PARAMETERS

-Conn <InStorConnection>

The Connection to MCS Storage, returned by cmdlet New-InStorConnection.



Required? true

Position? 0

Default value

Accept pipeline input? false

Accept wildcard characters? false



-HostID <String>

ID of Inspur MCS Storage Host.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-HostName <String>

Name of Inspur MCS Storage Host.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Initiator <String[]>

Initiator of Host.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Opts <String>

Optional parameter for special purpose.



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Management.Automation.PSObject

returns a PSObject Object.



System.Array

returns a Array of Management.Automation.PSObject.





-------------------------- EXAMPLE 1 --------------------------



Get-InStorHost $conn



Retrieves hosts from MCS Storage.







id name status

-- ---------- ------



0 iscsi_180 online



-------------------------- EXAMPLE 2 --------------------------



Get-InStorHost $conn -HostId "0"



Retrieves host from MCS Storage which has a id of "0".







id name status

-- ---------- ------



0 iscsi_180 online



-------------------------- EXAMPLE 3 --------------------------



Get-InStorHost $conn -HostName "iscsi_180"



Retrieves host from MCS Storage which has a name of "iscsi_180".







id name status

-- ---------- ------



0 iscsi_180 online





RELATED LINKS