Software Development Kit (SDK) and API Discussions

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

McGill
3,703 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
3,621 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
3,622 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