Introduction
Continuing the theme of delving into the information available via the Data ONTAP PowerShell toolkit, as started in the
following posts from December 2013:
Note: To handle
information beyond the first rank (i.e. where there’s attributes beyond the
first rank output) use the:
$volQuery = Get-NcVol
-Template
Initialize-NcObjectProperty
-object $volQuery -name FIRST_RANK_ATTRIBUTE
$volQuery.FIRST_RANK_ATTRIBUTE.SECOND_RANK_ATTRIBUTE
QUERY
{Replace
FIRST_RANK_ATTRIBUTE, SECOND_RANK_ATTRIBUTE, and QUERY as required.}
Get-NcVol
PS
C:\> $volumes = Get-NcVol
PS
C:\> $aVol = $volumes[1]
Note: I picked a
volume that’s a Vserver rootvol (a non-rootvol data volume gives similar output.)
Below is the output from PowerShell for one volume
(highlighted in yellow are first rank attributes and in green second rank
attributes):
PS
C:\> $aVol.Name
rootvol
PS
C:\> $aVol.NcController
Name Address Vserver Version
---- ------- ------- -------
naclu1
10.10.10.110
NASVM1
NetApp Release 8.2.1 Cluster-Mode:
Fri Mar 21 14:25:07 P...
PS
C:\> $aVol.Volume64bitUpgradeAttributes
PS
C:\> $aVol.VolumeAntivirusAttributes
NcController OnAccessPolicy
------------ --------------
naclu1 default
PS
C:\> $aVol.VolumeAutosizeAttributes
GrowThresholdPercent : 85
IncrementPercent :
IncrementSize : 1048576
IsEnabled : False
MaximumSize : 25165824
MinimumSize : 20971520
Mode : off
NcController : naclu1
Reset :
ShrinkThresholdPercent : 50
GrowThresholdPercentSpecified : True
IncrementPercentSpecified : False
IncrementSizeSpecified : True
IsEnabledSpecified : True
MaximumSizeSpecified : True
MinimumSizeSpecified : True
ResetSpecified : False
ShrinkThresholdPercentSpecified : True
PS
C:\> $aVol.VolumeCloneAttributes
PS
C:\> $aVol.VolumeDirectoryAttributes
I2pEnabled : True
IndexDirEnabled :
MaxDirSize :
16681984
NcController : naclu1
RootDirGen :
499592
I2pEnabledSpecified : True
IndexDirEnabledSpecified : False
MaxDirSizeSpecified : True
RootDirGenSpecified : True
PS
C:\> $aVol.VolumeExportAttributes
NcController Policy
------------ ------
naclu1 default
PS
C:\> $aVol.VolumeFlexcacheAttributes
PS
C:\> $aVol.VolumeHybridCacheAttributes
Eligibility NcController WriteCacheIneligibilityReason
-----------
------------ -----------------------------
read_write naclu1
PS
C:\> $aVol.VolumeIdAttributes
Comment :
ConstituentRole :
ContainingAggregateName : aggr1
ContainingAggregateUuid :
33acfe6c-21a4-4647-84d0-1d694f196517
CreationTime : 1402497471
CreationTimeDT : 11/06/2014
15:37:51
Dsid : 1073
Fsid : 1073
InstanceUuid :
85c7a0e7-94a9-42e2-a44b-8c7c62c27d29
JunctionParentName :
JunctionPath : /
Msid : 2147484722
Name : rootvol
NameOrdinal : base
NcController : naclu1
OwningVserverName : NASVM1
OwningVserverUuid :
f59848cb-f175-11e3-a0b3-123478563412
ProvenanceUuid :
85c7a0e7-94a9-42e2-a44b-8c7c62c27d29
Style : flex
Type : rw
Uuid : f7825866-f175-11e3-a0b3-123478563412
CreationTimeSpecified : True
DsidSpecified : True
MsidSpecified : True
PS
C:\> $aVol.VolumeInfinitevolAttributes
PS
C:\> $aVol.VolumeInodeAttributes
BlockType : 64_bit
FilesPrivateUsed : 502
FilesTotal : 566
FilesUsed : 98
InodefilePrivateCapacity : 566
InodefilePublicCapacity : 566
NcController : naclu1
FilesPrivateUsedSpecified : True
FilesTotalSpecified : True
FilesUsedSpecified : True
InodefilePrivateCapacitySpecified : True
InodefilePublicCapacitySpecified : True
PS
C:\> $aVol.VolumeLanguageAttributes
IsConvertUcodeEnabled : True
IsCreateUcodeEnabled : True
Language : C.UTF-8 (POSIX with UTF-8)
LanguageCode : c.utf_8
NcController : naclu1
NfsCharacterSet :
utf-8|utf-8|Thu Oct 1 23:00:53 BST 1998
OemCharacterSet :
ascii|cp1|Thu Oct 1 23:00:53 BST 1998
IsConvertUcodeEnabledSpecified : True
IsCreateUcodeEnabledSpecified : True
PS
C:\> $aVol.VolumeMirrorAttributes
IsDataProtectionMirror : False
IsLoadSharingMirror : False
IsMoveMirror : False
IsReplicaVolume : False
MirrorTransferInProgress : False
NcController : naclu1
RedirectSnapshotId : 0
IsDataProtectionMirrorSpecified : True
IsLoadSharingMirrorSpecified : True
IsMoveMirrorSpecified : True
IsReplicaVolumeSpecified : True
MirrorTransferInProgressSpecified : True
RedirectSnapshotIdSpecified : True
PS
C:\> $aVol.VolumePerformanceAttributes
ExtentEnabled : off
FcDelegsEnabled : True
IsAtimeUpdateEnabled : True
MaxWriteAllocBlocks : 0
MinimalReadAhead : False
NcController :
naclu1
ReadRealloc : off
FcDelegsEnabledSpecified : True
IsAtimeUpdateEnabledSpecified : True
MaxWriteAllocBlocksSpecified : True
MinimalReadAheadSpecified : True
PS
C:\> $aVol.VolumeQosAttributes
PS
C:\> $aVol.VolumeSecurityAttributes
NcController Style VolumeSecurityUnixAttributes
------------
----- ----------------------------
naclu1 ntfs DataONTAP.C.Types.Volume.VolumeSecur...
PS
C:\> $aVol.VolumeSisAttributes
CompressionSpaceSaved : 0
DeduplicationSpaceSaved : 0
DeduplicationSpaceShared : 0
IsSisLoggingEnabled : False
IsSisVolume : False
NcController : naclu1
PercentageCompressionSpaceSaved : 0
PercentageDeduplicationSpaceSaved : 0
PercentageTotalSpaceSaved : 0
TotalSpaceSaved : 0
CompressionSpaceSavedSpecified : True
DeduplicationSpaceSavedSpecified : True
IsSisLoggingEnabledSpecified : True
IsSisVolumeSpecified : True
PercentageCompressionSpaceSavedSpecified : True
PercentageDeduplicationSpaceSavedSpecified : True
PercentageTotalSpaceSavedSpecified : True
TotalSpaceSavedSpecified : True
PS
C:\> $aVol.VolumeSnapshotAttributes
AutoSnapshotsEnabled : True
NcController : naclu1
SnapdirAccessEnabled : True
SnapshotCloneDependencyEnabled : False
SnapshotCount : 6
SnapshotPolicy : default
AutoSnapshotsEnabledSpecified : True
SnapdirAccessEnabledSpecified : True
SnapshotCloneDependencyEnabledSpecified : True
SnapshotCountSpecified : True
PS
C:\> $aVol.VolumeSnapshotAutodeleteAttributes
Commitment : try
DeferDelete :
user_created
DeleteOrder :
oldest_first
DestroyList : none
IsAutodeleteEnabled : False
NcController :
naclu1
Prefix : (not specified)
TargetFreeSpace : 20
Trigger : volume
IsAutodeleteEnabledSpecified : True
TargetFreeSpaceSpecified : True
PS
C:\> $aVol.VolumeSpaceAttributes
FilesystemSize : 20971520
IsFilesysSizeFixed : False
IsSpaceGuaranteeEnabled : True
NcController : naclu1
OverwriteReserve : 0
OverwriteReserveRequired : 0
OverwriteReserveUsed : 0
OverwriteReserveUsedActual : 0
PercentageFractionalReserve : 100
PercentageSizeUsed : 5
PercentageSnapshotReserve : 5
PercentageSnapshotReserveUsed : 39
Size : 20971520
SizeAvailable : 19791872
SizeAvailableForSnapshots :
20430848
SizeTotal : 19922944
SizeUsed : 131072
SizeUsedBySnapshots : 409600
SnapshotReserveSize : 1048576
SpaceFullThresholdPercent : 98
SpaceGuarantee : volume
SpaceMgmtOptionTryFirst :
volume_grow
SpaceNearlyFullThresholdPercent : 95
FilesystemSizeSpecified : True
IsFilesysSizeFixedSpecified : True
IsSpaceGuaranteeEnabledSpecified : True
OverwriteReserveRequiredSpecified : True
OverwriteReserveSpecified : True
OverwriteReserveUsedActualSpecified : True
OverwriteReserveUsedSpecified : True
PercentageFractionalReserveSpecified : True
PercentageSizeUsedSpecified : True
PercentageSnapshotReserveSpecified : True
PercentageSnapshotReserveUsedSpecified : True
SizeAvailableForSnapshotsSpecified : True
SizeAvailableSpecified : True
SizeSpecified : True
SizeTotalSpecified : True
SizeUsedBySnapshotsSpecified : True
SizeUsedSpecified : True
SnapshotReserveSizeSpecified : True
SpaceFullThresholdPercentSpecified : True
SpaceNearlyFullThresholdPercentSpecified : True
PS
C:\> $aVol.VolumeStateAttributes
BecomeNodeRootAfterReboot : False
IgnoreInconsistent : False
InNvfailedState : False
IsClusterVolume : True
IsConstituent : False
IsInconsistent : False
IsInvalid : False
IsJunctionActive :
IsMoving : False
IsNodeRoot : False
IsNvfailEnabled : False
IsQuiescedInMemory : False
IsQuiescedOnDisk : False
IsUnrecoverable : False
IsVolumeInCutover : False
IsVserverRoot : True
NcController : naclu1
State : online
BecomeNodeRootAfterRebootSpecified : True
IgnoreInconsistentSpecified : True
InNvfailedStateSpecified : True
IsClusterVolumeSpecified : True
IsConstituentSpecified : True
IsInconsistentSpecified : True
IsInvalidSpecified : True
IsJunctionActiveSpecified : False
IsMovingSpecified : True
IsNodeRootSpecified : True
IsNvfailEnabledSpecified : True
IsQuiescedInMemorySpecified : True
IsQuiescedOnDiskSpecified : True
IsUnrecoverableSpecified : True
IsVolumeInCutoverSpecified : True
IsVserverRootSpecified : True
PS
C:\> $aVol.VolumeStripingAttributes
PS
C:\> $aVol.VolumeTransitionAttributes
IsCopiedForTransition : False
IsTransitioned : False
NcController : naclu1
TransitionBehavior : none
IsCopiedForTransitionSpecified : True
IsTransitionedSpecified : True
PS
C:\> $aVol.VolumeVmAlignAttributes
PS
C:\> $aVol.Vserver
NASVM1
PS
C:\> $aVol.Aggregate
aggr1
PS
C:\> $aVol.Available
19791872
PS
C:\> $aVol.Dedupe
False
PS
C:\> $aVol.FilesTotal
566
PS
C:\> $aVol.FilesUsed
98
PS
C:\> $aVol.IsInfiniteVolume
False
PS
C:\> $aVol.JunctionPath
/
PS
C:\> $aVol.State
online
PS
C:\> $aVol.TotalSize
20971520
PS
C:\> $aVol.Used
5
Comments
Post a Comment