|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Get-NaSnaplockRetentionTime
NAME
Get-NaSnaplockRetentionTime
SYNOPSIS
Get the SnapLock retention attributes for a file or list of files.
SYNTAX
Get-NaSnaplockRetentionTime [-Pathnames] <String[]> [-Controller <NaControll
er>] [<CommonParameters>]
DESCRIPTION
Get the SnapLock retention attributes for a file or list of files.
PARAMETERS
-Pathnames <String[]>
List of List of pathnames to query. Pathname must be in the form /vol/<
vol-name>/<path>.
Required? true
Position? 1
Default value
Accept pipeline input? false
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
<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.Snaplock810.FileRetentionInfo
NOTES
API: file-snaplock-retention-time-list-info
Category: snaplock
-------------- Example 1 --------------
C:\PS>Get-NaSnaplockRetentionTime /vol/snaplock_vol0/file0.txt
Get the retention time attributes for the file /vol/snaplock_vol0/file0.txt
Pathname SnaplockType Rete
ntionTimeDT
-------- ------------ ----
-----------
/vol/snaplock_vol0/file0.txt SLC 6/11
/2011 4:14:32 AM
-------------- Example 2 --------------
C:\PS>Read-NaDirectory /vol/snaplock_vol0 | %{ if($_.Name -ne "." -and $_.Na
me -ne "..") { Get-NaSnaplockRetentionTime "/vol/snaplock_vol0/$_" }}
Get the retention time attributes for all of the files on the SnapLock volum
e snaplock_vol0.
Pathname SnaplockType Rete
ntionTimeDT
-------- ------------ ----
-----------
/vol/snaplock_vol0/file0.txt SLC 6/11
/2011 4:14:32 AM
/vol/snaplock_vol0/file1.txt SLC 6/10
/2041 3:51:58 PM
/vol/snaplock_vol0/file2.txt SLC 1/19
/2038 3:14:08 AM
/vol/snaplock_vol0/file3.txt SLC 1/19
/2038 3:14:14 AM
/vol/snaplock_vol0/file4.txt SLC 1/19
/2038 3:14:41 AM
/vol/snaplock_vol0/file5.txt SLC 6/10
/2041 6:00:12 PM
/vol/snaplock_vol0/file6.txt SLC 6/10
/2041 6:09:35 PM
/vol/snaplock_vol0/file7.txt SLC 6/10
/2011 6:48:44 PM
RELATED LINKS
Remove-NaSnaplockFile
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|