<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: error with Get-NcAggr in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/error-with-Get-NcAggr/m-p/446788#M6787</link>
    <description>&lt;P&gt;Great solved !&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks !&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2023 13:50:59 GMT</pubDate>
    <dc:creator>MaurizioTO</dc:creator>
    <dc:date>2023-08-09T13:50:59Z</dc:date>
    <item>
      <title>error with Get-NcAggr</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/error-with-Get-NcAggr/m-p/446639#M6785</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've got an error&lt;/P&gt;&lt;P&gt;Get-NcAggr : Error converting value "inf" to type 'System.Nullable`1[System.Int64]'. Path 'space.efficiency.ratio', line 62,&lt;BR /&gt;position 20.&lt;BR /&gt;At C:\scripts\netapp.ps1:83 char:20&lt;BR /&gt;+ $aggregati=Get-NcAggr | Sort-Object name&lt;BR /&gt;+ ~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : NotSpecified: (:) [Get-NcAggr], ArgumentException&lt;BR /&gt;+ FullyQualifiedErrorId : Error converting value "inf" to type 'System.Nullable`1[System.Int64]'. Path 'space.efficiency.ratio&lt;BR /&gt;', line 62, position 20.,DataONTAP.C.PowerShell.SDK.Cmdlets.Aggr.GetNcAggr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My toolkit version&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS C:\Windows\system32&amp;gt; get-natoolkitversion&lt;/P&gt;&lt;P&gt;Major Minor Build Revision&lt;BR /&gt;----- ----- ----- --------&lt;BR /&gt;9 12 1 2302&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OnTAP version&amp;nbsp;&lt;SPAN&gt;9.12.1P3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can I solve that? I've seen someone talked about ZAPI. I need to force that in the Toolkit?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:46:22 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/error-with-Get-NcAggr/m-p/446639#M6785</guid>
      <dc:creator>MaurizioTO</dc:creator>
      <dc:date>2025-06-04T09:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: error with Get-NcAggr</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/error-with-Get-NcAggr/m-p/446767#M6786</link>
      <description>&lt;P&gt;Hi Maurizio,&lt;/P&gt;&lt;P&gt;Disclosure: I am a netapp employee but work on the PS/MSP side.&lt;/P&gt;&lt;P&gt;I came across this post searching for my own answers and your mention of ZAPI made me wonder if they just forgot to document a switch in the connect-nccontroller help... Sure enough, i found it via Get-Command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="powershell"&gt;((Get-Command Connect-NcController).parametersets).parameters | ft name,parametertype,aliases,helpmessage

Name                ParameterType                                 Aliases       HelpMessage
----                -------------                                 -------       -----------
Name                System.String[]                               {Filer}
Port                System.Nullable`1[System.UInt16]              {}
Credential          System.Management.Automation.PSCredential     {Cred, Creds}
HTTPS               System.Management.Automation.SwitchParameter  {}
HTTP                System.Management.Automation.SwitchParameter  {}
EnableSSLValidation System.Management.Automation.SwitchParameter  {}
Transient           System.Management.Automation.SwitchParameter  {}
Vserver             System.String                                 {}
Timeout             System.Nullable`1[System.Int32]               {}            Connection timeout value in milliseconds.  Only applies to HTTP/HTTPS.
Add                 System.Management.Automation.SwitchParameter  {}
ZapiCall            System.Management.Automation.SwitchParameter  {ONTAPI}      Use this to create Zapi connections to controller. Default would be REST for filers 9.6 and higher
ApplicationName     System.String                                 {AppName}
SSLVersion          System.String                                 {}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So just add the switch -ZapiCall; to your Connect-NcController&amp;nbsp; command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Connect-NcController "&amp;lt;clustername&amp;gt;" -Credential "&amp;lt;credentials&amp;gt;" -ZapiCall&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The difference even when connecting to a 9.12P5 cluster (also im using the same PS module version as your are):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;U&gt;&lt;STRONG&gt;With -ZapiCall&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;Name        State       TotalSize  Used  Available Disks RaidType        RaidSize  Volumes
----        -----       ---------  ----  --------- ----- --------        --------  -------
xxx1a_aggr1 online       272.1 TB   35%   177.3 TB  40   raid_tec, norm…    20          80
xxx1a_aggr2 online       112.0 TB   74%    29.4 TB  17   raid_tec, norm…    21          33
xxx1b_aggr1 online       272.1 TB   54%   124.2 TB  40   raid_tec, norm…    20         113
xxx1b_aggr2 online       112.0 TB    8%   102.7 TB  17   raid_tec, norm…    21          42
xxx1c_aggr1 online       272.1 TB   19%   220.5 TB  40   raid_tec, norm…    20          57
xxx1c_aggr2 online       112.0 TB    9%   101.5 TB  17   raid_tec, norm…    17          30
xxx1d_aggr1 online       272.1 TB   28%   196.7 TB  40   raid_tec, norm…    20          52
xxx1d_aggr2 online       112.0 TB   14%    96.9 TB  17   raid_tec, norm…    17          31&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;Without/Default:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;PRE&gt;Name        State       TotalSize  Used  Available Disks RaidType        RaidSize  Volumes
----        -----       ---------  ----  --------- ----- --------        --------  -------
xxx1a_aggr2 online       112.0 TB          29.4 TB  17                      21
xxx1c_aggr2 online       112.0 TB         101.5 TB  17                      17
xxx1b_aggr1 online       272.1 TB         124.2 TB  40                      20
xxx1a_aggr1 online       272.1 TB         177.3 TB  40                      20
xxx1d_aggr2 online       112.0 TB          96.9 TB  17                      17
xxx1b_aggr2 online       112.0 TB         102.7 TB  17                      21
xxx1d_aggr1 online       272.1 TB         197.4 TB  40                      20
xxx1c_aggr1 online       272.1 TB         220.5 TB  40                      20&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've noticed a lot of other breaking differences as well.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 20:23:25 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/error-with-Get-NcAggr/m-p/446767#M6786</guid>
      <dc:creator>MattS-NA</dc:creator>
      <dc:date>2023-08-08T20:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: error with Get-NcAggr</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/error-with-Get-NcAggr/m-p/446788#M6787</link>
      <description>&lt;P&gt;Great solved !&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks !&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 13:50:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/error-with-Get-NcAggr/m-p/446788#M6787</guid>
      <dc:creator>MaurizioTO</dc:creator>
      <dc:date>2023-08-09T13:50:59Z</dc:date>
    </item>
  </channel>
</rss>

