|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Set-NaLunShare
NAME
Set-NaLunShare
SYNOPSIS
Enables file system protocol-based access to a lun.
SYNTAX
Set-NaLunShare [-Path] <String> [-ShareType] <String> [-Controller <NaContro
ller>] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<Com
monParameters>]
DESCRIPTION
Enables file system protocol-based access to a lun. By default, all accesses
are disallowed. Note that file permissions and ACL entries still apply.
PARAMETERS
-Path <String>
Path of the LUN.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-ShareType <String>
Possible values: all, none, read, write
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Controller <NaController>
The DataONTAP controller object, embodied by an NaController object. Th
is parameter is returned by the Connect-NaController cmdlet. If not spe
cified, the value in the global variable CurrentNaController is used.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WarningAction <ActionPreference>
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WarningVariable <String>
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
NetApp.Ontapi.Filer.Lun.LunInfo
NOTES
Category: lun
API: lun-set-share
-------------- Example 1 --------------
C:\PS>Set-NaLunShare /vol/vol2/lun101 read
Set the share access state of LUN 'lun101' to 'read'.
ackingSnapshot :
apped : False
ultiprotocolType : image
nline : True
ath : /vol/vol2/lun101
eadOnly : False
hareState : read
ize : 2000683008
uid : d87e15a6-142a-11df-9caa-00a09806c227
RELATED LINKS
Get-NaLun
| Copyright © 2010 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|