|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Set-NaLunAttribute
NAME
Set-NaLunAttribute
SYNOPSIS
Set a named attribute for a given LUN.
SYNTAX
Set-NaLunAttribute [-Path] <String> [-Name] <String> [-Value] <String> [-Con
troller <NaController>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Set a named attribute for a given LUN. Attributes are arbitrary key/value pa
irs for application-defined use.
PARAMETERS
-Path <String>
Path of the LUN.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Name <String>
Application-defined attribute to set. In order to prevent conflicts betw
een separate applications, it is recommended that applications prefix at
tribute names with their registered Internet domain name reversed compon
ent by component, and an application identifier. For example: "com.examp
le.widgetapp.attribute". The following attributes are reserved by the sy
stem and may not be set: "custom", "cylinder_size", "dev_id", "enabled",
"extent_size", "host_stamp", "path_last", "pserial", "pSerial", "serial
", "snapshot", "snapshot_path_last", "type". In older versions of Data O
NTAP, attempting to set a system-reserved attribute may adversely affect
data integrity and availability of the storage system. Clients of this
API must therefore take special care to not use any system-reserved attr
ibute names.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Value <String>
Value to set the attribute to.
Required? true
Position? 3
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
-WhatIf
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm
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
DataONTAP.PowerShell.SDK.Cmdlets.Lun.LunAttribute
NOTES
Category: lun
API: lun-set-attribute
-------------- Example 1 --------------
C:\PS>Set-NaLunAttribute /vol/vol1/testlun is_crazy no
Set the 'is_crazy' attribute on the given LUN to 'no'.
Name Value
---- -----
is_crazy no
RELATED LINKS
Get-NaLunAttribute
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|