|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Add-NaIscsiInterfaceAccess
NAME
Add-NaIscsiInterfaceAccess
SYNOPSIS
Add the named network interfaces to the accesslist for the specified initiat
or.
SYNTAX
Add-NaIscsiInterfaceAccess [-Initiator] <String> [-Interface] <String[]> [-C
ontroller <NaController>] [<CommonParameters>]
Add-NaIscsiInterfaceAccess [-Initiator] <String> [-All] [-Controller <NaCont
roller>] [<CommonParameters>]
DESCRIPTION
Add the named network interfaces to the accesslist for the specified initiat
or. If there is no accesslist, one will be created.
Creating or modifying an accesslist may require shutting down existing iSCSI
sessions associated with network interfaces that no longer appear on the ac
cesslist. For example, creating a new accesslist via the add operation may c
ause sessions to be shut down on network interfaces that are not in the new
accesslist. Likewise, removing network interfaces from an existing accesslis
t via the remove operation may also cause sessions to be shut down. Note th
at adding all interfaces (using -All) and removing all interfaces (using -Al
l) will not affect any iSCSI sessions.
PARAMETERS
-Initiator <String>
The initiator for which to add to the accesslist.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Interface <String[]>
One or more interfaces to add to the accesslist.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Controller <NaController>
The Data ONTAP controller object, embodied by an NaController object. T
his parameter is returned by the Connect-NaController cmdlet. If not sp
ecified, the value in the global variable CurrentNaController is used.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-All
If specified, all the interfaces will be added to the accesslist.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".
INPUTS
OUTPUTS
NOTES
Category: iscsi
API: system-cli
Privilege: security-priv-admin, cli-iscsi-interface-accesslist-add
-------------- Example 1 --------------
C:\PS>Add-NaIscsiInterfaceAccess -Initiator (Get-NaHostIscsiAdapter).Iqn -In
terface ns0
Add the interface "ns0" to the accesslist for the local host's initiator.
RELATED LINKS
Remove-NaIscsiInterfaceAccess
| Copyright © 2013 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|