New-UnityHostIPPort
SYNOPSIS
Create a host IP Port configuration.
SYNTAX
New-UnityHostIPPort [-session <Object>] [-host] <Object> -address <String> [-netmask <String>]
[-v6PrefixLength <String>] [-isIgnored <Boolean>] [-WhatIf] [-Confirm]
DESCRIPTION
Create a host IP Port configuration. You need to have an active session with the array.
EXAMPLES
-------------------------- EXAMPLE 1 --------------------------
New-UnityHostIPPort -host 'Host_1' - address 192.0.2.1 -netmask 255.255.255.0
Create Host IP Port for the host with ID 'Host_1'.
PARAMETERS
-session
Specify an UnitySession Object.
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true})
Accept pipeline input: False
Accept wildcard characters: False
-host
Host ID or Object
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-address
IP address or network name of the port.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-netmask
(Applies to IPV4 only.) Subnet mask for the IP address, if any.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-v6PrefixLength
(Applies to IPV6 only.) Subnet mask length.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-isIgnored
(Applies to NFS access only.) Indicates whether the port should be ignored when storage access is granted to the host
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf
Indicate that the cmdlet is run only to display the changes that would be made and actually no objects are modified.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Confirm
If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
INPUTS
OUTPUTS
NOTES
Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE