|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Get-NaFileFingerprint
NAME
Get-NaFileFingerprint
SYNOPSIS
Get the fingerprint or digest of a file.
SYNTAX
Get-NaFileFingerprint [-Path] <String> [-Scope <String>] [-Algorithm <String
>] [-Controller <NaController>] [<CommonParameters>]
DESCRIPTION
Get the fingerprint or digest of a file. Fingerprint is calculated using md5
or sha-256 digest algorithm depending on the algorithm specified. Fingerpri
nt is calculated over the file data or metadata or on both data and metadata
depending on the scope selected. Data fingerprint is calculated over file c
ontents. Metadata fingerprint is calculated over the selected attributes of
the file. Attributes used for metadata fingerprint calculations are file typ
e (file-type), file size (file-size), file crtime (creation-time), file mtim
e (modified-time), file ctime (changed-time), file retention time (retention
-time, is-wraparound), file uid (owner-id), file gid (group-id). File retent
ion time is applicable to worm protected files only. The fingerprints are ba
se64 encoded.
PARAMETERS
-Path <String>
Path of the file, i.e. /vol/<volumename>/<filename>.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Scope <String>
Part of the file for which fingerprint is computed. Possible values: "me
tadata_only", "data_only", "data_and_metadata".
Required? false
Position? named
Default value data_and_metadata
Accept pipeline input? false
Accept wildcard characters? false
-Algorithm <String>
Digest algorithm used for fingerprint computation. Possible values: "sha
-256" or "md5".
Required? false
Position? named
Default value sha-256
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.File73.FingerprintInfo
NOTES
Category: file
API: file-get-fingerprint
-------------- Example 1 --------------
C:\PS>Get-NaFileFingerprint /vol/vol0/etc/hosts
Get fingerprint info for the /etc/hosts file.
AggregateUuid : 31d60ef0-6a41-11dd-8d86-00a09806c227
FilerId : 118044195
FilerName : dunn
FingerprintAlgorithm : sha-256
FingerprintEndTime : 1287529445
FingerprintEndTimeDT : 10/19/2010 11:04:05 PM
FingerprintInputPath : /vol/vol0/etc/hosts
FingerprintScope : data_and_metadata
FingerprintStartTime : 1287529445
FingerprintStartTimeDT : 10/19/2010 11:04:05 PM
FingerprintVersion : 1
IsVolumeExpiryDateWraparound :
MetadataFiles : {sH36/f8m+/xmp5X4vN4JEFsjLYv932Fzzb7
oews0uu4=}
SnaplockComplianceClock :
SnaplockComplianceClockDT :
SnaplockLicense :
VolumeContainingAggregate : aggr0
VolumeExpiryDate :
VolumeExpiryDateDT :
VolumeName : vol0
VolumeSnaplockType :
VolumeType : flexible
VolumeUuid : 336bf130-6a41-11dd-8d86-00a09806c227
IsVolumeExpiryDateWraparoundSpecified : False
SnaplockComplianceClockSpecified : False
VolumeExpiryDateSpecified : False
RELATED LINKS
Get-NaFile
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|