NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Software Development Kit (SDK) and API Discussions

PowerShell Toolkit - Get-NcVol - Get Properties for Thin Provisiong and Style.

McGill
4,745 Views

Looking for the property values for 'Thin Provisioned' and 'Style' under the cmdlet Get-NcVol, that are displayed in the GUI/WEB under Volumes.  Below is what I have so far for the data I want to pull/display.  Any assistance would be appreciated, cheers

 

$NcVolInfo = Get-NcVol -Name *$VolumeName*
$NcVolInfo | 
    Select-Object @{n='VolumeName';e={$_.Name}},
                  State,
                  Aggregate,
                  @{n='Available Space';e={convertto-formattednumber $_.available datasize "0.00"}},
                  @{n='Total Space';e={convertto-formattednumber $_.TotalSize datasize "0.00"}},
                  @{n='Used Space';e={convertto-formattednumber ($_.VolumeSpaceAttributes).sizeused datasize "0.00"}},
                  @{n='Type';e={($_.VolumeIdAttributes).Type}},
                  Dedupe,
                  Vserver,
                  IsInfiniteVolume | Format-Table -AutoSize
1 ACCEPTED SOLUTION

donny_lang
4,663 Views

Based on your example code, "$_.VolumeSpaceAttributes.SpaceGuarantee" will get you the volume provisioning type (options are "none", "volume", or "file").

 

"$_.VolumeIdAttributes.Style" will get you the volume style. 

 

Hope that helps!  

 

Donny

View solution in original post

1 REPLY 1

donny_lang
4,664 Views

Based on your example code, "$_.VolumeSpaceAttributes.SpaceGuarantee" will get you the volume provisioning type (options are "none", "volume", or "file").

 

"$_.VolumeIdAttributes.Style" will get you the volume style. 

 

Hope that helps!  

 

Donny

Public