<?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 using -template switch with get-nc commands in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/using-template-switch-with-get-nc-commands/m-p/15906#M3219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone used the -template switch with the nc-get commands?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use get-ncvserver -template to retrieve only cluster and data vservers, not node vservers. I tried using the exact syntax from the posh documentation as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; $v = Get-NcVserver -Template&lt;/P&gt;&lt;P&gt;&amp;nbsp; $v.State = "running"&lt;/P&gt;&lt;P&gt;&amp;nbsp; $v.VserverType = "cluster"&lt;/P&gt;&lt;P&gt;&amp;nbsp; Get-NcVserver -Query $v&lt;/P&gt;&lt;P&gt;&amp;nbsp; Get-WFALogger -Info -message $("Vservers : "+$v)&lt;/P&gt;&lt;P&gt;However, the only thing returned is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vservers : DataONTAP.C.Types.Vserver.VserverInfo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect this might be a usage problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 05:40:35 GMT</pubDate>
    <dc:creator>stephen2</dc:creator>
    <dc:date>2025-06-05T05:40:35Z</dc:date>
    <item>
      <title>using -template switch with get-nc commands</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/using-template-switch-with-get-nc-commands/m-p/15906#M3219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone used the -template switch with the nc-get commands?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use get-ncvserver -template to retrieve only cluster and data vservers, not node vservers. I tried using the exact syntax from the posh documentation as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; $v = Get-NcVserver -Template&lt;/P&gt;&lt;P&gt;&amp;nbsp; $v.State = "running"&lt;/P&gt;&lt;P&gt;&amp;nbsp; $v.VserverType = "cluster"&lt;/P&gt;&lt;P&gt;&amp;nbsp; Get-NcVserver -Query $v&lt;/P&gt;&lt;P&gt;&amp;nbsp; Get-WFALogger -Info -message $("Vservers : "+$v)&lt;/P&gt;&lt;P&gt;However, the only thing returned is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vservers : DataONTAP.C.Types.Vserver.VserverInfo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect this might be a usage problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:40:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/using-template-switch-with-get-nc-commands/m-p/15906#M3219</guid>
      <dc:creator>stephen2</dc:creator>
      <dc:date>2025-06-05T05:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: using -template switch with get-nc commands</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/using-template-switch-with-get-nc-commands/m-p/15912#M3222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found the answer - you don't need to use -template.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just test the result&amp;nbsp; $vserver.vservertype&amp;nbsp; - it will return admin, data, node&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 20:16:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/using-template-switch-with-get-nc-commands/m-p/15912#M3222</guid>
      <dc:creator>stephen2</dc:creator>
      <dc:date>2014-03-17T20:16:04Z</dc:date>
    </item>
  </channel>
</rss>

