<?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: Get-NcEfficiency vs DataProtection SVM in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcEfficiency-vs-DataProtection-SVM/m-p/140618#M5782</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/9804"&gt;@storageguy&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll want to add an additional filter to your query for the SVM sub-type...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Get-NcVserver -Query @{ VserverType = "data"; "VserverSubtype" = "default" }&lt;/PRE&gt;
&lt;P&gt;There are four possible values for the sub-type:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;default - normal SVMs&lt;/LI&gt;
&lt;LI&gt;dp_destination - SVM-DR destination&lt;/LI&gt;
&lt;LI&gt;sync_source - MetroCluster source SVM&lt;/LI&gt;
&lt;LI&gt;sync_destination - MetroCluster destination SVM&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Add/remove them from your query to get the type needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andrew&lt;/P&gt;</description>
    <pubDate>Thu, 31 May 2018 13:39:18 GMT</pubDate>
    <dc:creator>asulliva</dc:creator>
    <dc:date>2018-05-31T13:39:18Z</dc:date>
    <item>
      <title>Get-NcEfficiency vs DataProtection SVM</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcEfficiency-vs-DataProtection-SVM/m-p/140602#M5778</link>
      <description>&lt;P&gt;Heelo PS Toolkit gurus,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code (browed from here and modified to my purpose).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$DataVservers = Get-NcVserver | Where-Object {$_.VserverType -eq "data"}
ForEach ($Vserver in $DataVservers) {
Get-NcEfficiency -vserver $Vserver | 
Sort-Object vserver | Select-Object Vserver, Name, @{ 'N'="Cpacity"; "E"={ ConvertTo-FormattedNumber -Type DataSize -NumberFormatString "0.00" -Value $_.Capacity }}, @{ 'N'="Used"; "E"={ ConvertTo-FormattedNumber -Type DataSize -NumberFormatString "0.00" -Value $_.Used }}, @{ 'N'="Free"; "E"={ ConvertTo-FormattedNumber -Type DataSize -NumberFormatString "0.00" -Value $_.Free }} |format-table -Autosize
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a dataprotection SVM on the cluster. Script displays ok until hit the DR-SVM. It throws this error and continue with the rest of the SVMs&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Get-NcEfficiency : Object reference not set to an instance of an object.&lt;BR /&gt;At line:2 char:1&lt;BR /&gt;+ Get-NcEfficiency -vserver $Vserver |&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt; + CategoryInfo : InvalidOperation: (xx.xxx.xxx.xxx:NcController) [Get-NcEfficiency], NullReferenceException&lt;BR /&gt; + FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Toolkit.Efficiency.GetNcEfficiency&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any work around to supress this error and display the data for the DR-SVM also?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:40:07 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcEfficiency-vs-DataProtection-SVM/m-p/140602#M5778</guid>
      <dc:creator>storageguy</dc:creator>
      <dc:date>2025-06-04T13:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NcEfficiency vs DataProtection SVM</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcEfficiency-vs-DataProtection-SVM/m-p/140618#M5782</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/9804"&gt;@storageguy&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll want to add an additional filter to your query for the SVM sub-type...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Get-NcVserver -Query @{ VserverType = "data"; "VserverSubtype" = "default" }&lt;/PRE&gt;
&lt;P&gt;There are four possible values for the sub-type:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;default - normal SVMs&lt;/LI&gt;
&lt;LI&gt;dp_destination - SVM-DR destination&lt;/LI&gt;
&lt;LI&gt;sync_source - MetroCluster source SVM&lt;/LI&gt;
&lt;LI&gt;sync_destination - MetroCluster destination SVM&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Add/remove them from your query to get the type needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 13:39:18 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcEfficiency-vs-DataProtection-SVM/m-p/140618#M5782</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2018-05-31T13:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NcEfficiency vs DataProtection SVM</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcEfficiency-vs-DataProtection-SVM/m-p/140650#M5786</link>
      <description>&lt;P&gt;Unfortunatly, that didn't solve the issue. Error message still appearing and I still want my DR SVM volumes also included in the report. BTW: all my SVMs are data and subtype default (except node ones and admin one)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again looking into this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 02:44:23 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcEfficiency-vs-DataProtection-SVM/m-p/140650#M5786</guid>
      <dc:creator>storageguy</dc:creator>
      <dc:date>2018-06-01T02:44:23Z</dc:date>
    </item>
  </channel>
</rss>

