Data ONTAP® PowerShell Toolkit

Cmdlet: Set-NaLunComment


NAME
Set-NaLunComment

SYNOPSIS
Set the optional descriptive comment for a LUN.

SYNTAX
Set-NaLunComment [-Path] <String> [-Comment] <String> [-Controller <NaContro
ller>] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<Com
monParameters>]


DESCRIPTION
Set the optional descriptive comment for a LUN.


PARAMETERS
-Path <String>
Path of the LUN.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-Comment <String>
Comment to set for given LUN.

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-comment

-------------- Example 1 --------------

C:\PS>Set-NaLunComment /vol/vol2/lun2 "Virtual machine 1 (Exchange)"


Sets the comment on lun 'lun2'.


BackingSnapshot :
Mapped : True
MultiprotocolType : windows_gpt
Online : True
Path : /vol/vol2/lun2
ReadOnly : False
ShareState : none
Size : 21476206080
Uuid : 533b7c84-0f63-11de-b807-00a09806c227



RELATED LINKS
Get-NaLunComment







 Data ONTAP® PowerShell Toolkit