New-Host

SYNOPSIS

Creates a host.

SYNTAX

New-Host [-Unisphere] <UnisphereServer> [-ArrayId] <String> [-Id] <String> [-InitiatorId] <String[]>
 [-ConsistentLUN <Boolean>] [-VolumeSetAddressing <Boolean>] [-DisableQResetOnUa <Boolean>]
 [-EnvironSet <Boolean>] [-AvoidResetBroadcast <Boolean>] [-OpenVms <Boolean>] [-Scsi3 <Boolean>]
 [-Spc2ProtocolVersion <Boolean>] [-ScsiSupport1 <Boolean>] [-Confirm] [-WhatIf] [<CommonParameters>]

DESCRIPTION

Creates a host and optionally sets host flags. By default, ConsistentLUN will be set to True, other host flags will be set to not override and not enable. To override and enable a flag, set its value to True. To override and disable a flag, set its value to False.

EXAMPLES

Example 1

PS C:\> New-Host -Unisphere $unisphere -ArrayId 000123456789 -Id host1 -InitiatorId initiator1,initiator2

Where $unisphere is a Unisphere server instance. Creates a host host1 with initiators initiator1 and initiator2, and sets ConsistentLUN to True.

Example 2

PS C:\> New-Host -Unisphere $unisphere -ArrayId 000123456789 -Id host1 -InitiatorId initiator1,initiator2 -ConsistentLun $False -EnvironSet $True -OpenVms $False

Where $unisphere is a Unisphere server instance. Creates a host host1 with initiators initiator1 and initiator2, and sets ConsistentLun to False. Also enables EnvironSet flag and disables OpenVms flag.

PARAMETERS

-Unisphere

The Unisphere server object.

Type: UnisphereServer
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-ArrayId

The PowerMax array ID.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-Id

Host ID.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-InitiatorId

A list of initiator IDs.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ConsistentLUN

Consistent LUN host flag.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: True
Accept pipeline input: False
Accept wildcard characters: False

-VolumeSetAddressing

Volume Set Addressing host flag.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DisableQResetOnUa

Disable Q Reset on UA host flag.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-EnvironSet

Environ Set host flag.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-AvoidResetBroadcast

Avoid Reset Broadcast host flag.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-OpenVms

Open VMs host flag.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Scsi3

SCSI3 host flag.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Spc2ProtocolVersion

SPC2 Protocol Version host flag.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ScsiSupport1

SCSI Support 1 host flag.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: True
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

Dell.PowerMax.Management.Model.UnisphereServer

System.String

OUTPUTS

Dell.PowerMax.Management.Model.Host

NOTES