Microsoft Virtualization Discussions

Column "Used" is empty at PowerShell get-NcAggr

StefanB_RDM_IT
810 Views

SInce Upgrading NetApp.ONTAP PowerShell Toolkit to 9.16 the Used (Percent) column is empty.

example:

PS > Get-NcAggr -Controller $na33 aggr_data_n12

Name State TotalSize Used Available Disks RaidType RaidSize Volumes
---- ----- --------- ---- --------- ----- -------- -------- -------
aggr_data_n12 online 69,2 TB 12,6 TB 46 23

PS > Get-NcAggr aggr_data_n12 |gm -Name Used
TypeName: DataONTAP.C.Types.Aggr.AggrAttributes

Name MemberType Definition
---- ---------- ----------
Used ScriptProperty System.Object Used {get=try { $this.AggrSpaceAttributes.PercentUsedCapacity } catch [Exception] ...

Other columns are also empty (RaidType, Volumes). 

1 ACCEPTED SOLUTION

sanmonkey
262 Views

The future EOS for Zapi is murky at best, but try using -Zapicall or -ONTAPI at the end of any get-ncaggr or get-ncvol 

 

get-ncaggr aggregate_name -Zapicall

Name State TotalSize Used Available Disks RaidType RaidSize Volumes
---- ----- --------- ---- --------- ----- -------- -------- -------
aggr4_XXX_CLUSTER_01 online 371.7 TB 47% 197.9 TB 50 raid_tec, norm… 25 15

 

View solution in original post

1 REPLY 1

sanmonkey
263 Views

The future EOS for Zapi is murky at best, but try using -Zapicall or -ONTAPI at the end of any get-ncaggr or get-ncvol 

 

get-ncaggr aggregate_name -Zapicall

Name State TotalSize Used Available Disks RaidType RaidSize Volumes
---- ----- --------- ---- --------- ----- -------- -------- -------
aggr4_XXX_CLUSTER_01 online 371.7 TB 47% 197.9 TB 50 raid_tec, norm… 25 15

 

Public