<?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: Volume information in Diag mode in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Volume-information-in-Diag-mode/m-p/149581#M6025</link>
    <description>&lt;P&gt;I wasn't able to find a way to do this with the CLI natively, but if you don't mind PowerShell, it should be fairly easy to get the output you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;# Open connection to NetApp controller
Connect-NcController &amp;lt;controller hostname&amp;gt;
# Run SSH command and store output as variable named $autostate
$autostate = Invoke-NcSsh -Command "set d; y; vol efficiency status -vserver &lt;SPAN&gt;EU51SVMP016&amp;nbsp;&lt;/SPAN&gt;-volume * -l"
# Output is a multi-line string stored as one large string, so we'll split it into multiple strings delimited by a new line
$autostate = $autostate -split "`n"
# Now we can select the strings we want for the output. I've selected the "Path" and "Auto State" strings
$autostate | Select-String -Pattern "Auto State","Path"&lt;/PRE&gt;
&lt;P&gt;Output looks like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Path: /vol/path1&lt;BR /&gt;Auto State: -&lt;BR /&gt;Path: /vol/path2&lt;BR /&gt;Auto State: -&lt;BR /&gt;Path: /vol/path3&lt;BR /&gt;Auto State: -&lt;BR /&gt;Path: /vol/path4&lt;BR /&gt;Auto State: -&lt;BR /&gt;Path: /vol/path5&lt;BR /&gt;Auto State:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not pretty, but it works!&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jul 2019 14:20:52 GMT</pubDate>
    <dc:creator>donny_lang</dc:creator>
    <dc:date>2019-07-12T14:20:52Z</dc:date>
    <item>
      <title>Volume information in Diag mode</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Volume-information-in-Diag-mode/m-p/149566#M6023</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;I need only the field "Auto State" for all Volumes. Auto State is only showing in diag mode with the parameter -l&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;volume efficiency status -vserver EU51SVMP016 -volume &amp;lt;volume-name&amp;gt; -l&lt;/P&gt;
&lt;P&gt;output:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;Auto State: Deprioritized&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;What is the Attribute for auto state?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your support in advanced.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Volker&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 12:24:06 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Volume-information-in-Diag-mode/m-p/149566#M6023</guid>
      <dc:creator>VolkerJ</dc:creator>
      <dc:date>2025-06-04T12:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Volume information in Diag mode</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Volume-information-in-Diag-mode/m-p/149581#M6025</link>
      <description>&lt;P&gt;I wasn't able to find a way to do this with the CLI natively, but if you don't mind PowerShell, it should be fairly easy to get the output you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;# Open connection to NetApp controller
Connect-NcController &amp;lt;controller hostname&amp;gt;
# Run SSH command and store output as variable named $autostate
$autostate = Invoke-NcSsh -Command "set d; y; vol efficiency status -vserver &lt;SPAN&gt;EU51SVMP016&amp;nbsp;&lt;/SPAN&gt;-volume * -l"
# Output is a multi-line string stored as one large string, so we'll split it into multiple strings delimited by a new line
$autostate = $autostate -split "`n"
# Now we can select the strings we want for the output. I've selected the "Path" and "Auto State" strings
$autostate | Select-String -Pattern "Auto State","Path"&lt;/PRE&gt;
&lt;P&gt;Output looks like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Path: /vol/path1&lt;BR /&gt;Auto State: -&lt;BR /&gt;Path: /vol/path2&lt;BR /&gt;Auto State: -&lt;BR /&gt;Path: /vol/path3&lt;BR /&gt;Auto State: -&lt;BR /&gt;Path: /vol/path4&lt;BR /&gt;Auto State: -&lt;BR /&gt;Path: /vol/path5&lt;BR /&gt;Auto State:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not pretty, but it works!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 14:20:52 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Volume-information-in-Diag-mode/m-p/149581#M6025</guid>
      <dc:creator>donny_lang</dc:creator>
      <dc:date>2019-07-12T14:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Volume information in Diag mode</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Volume-information-in-Diag-mode/m-p/149583#M6026</link>
      <description>&lt;P&gt;This seems to work in 9.6:&lt;/P&gt;
&lt;P&gt;volume efficiency status -fields auto-state&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 14:57:55 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Volume-information-in-Diag-mode/m-p/149583#M6026</guid>
      <dc:creator>cole</dc:creator>
      <dc:date>2019-07-12T14:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Volume information in Diag mode</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Volume-information-in-Diag-mode/m-p/149584#M6027</link>
      <description>&lt;P&gt;Oh yeah, I should have clarified that I wasn't able to find the command in the CLI natively on my systems running 9.3. That command might exist in 9.4 or 9.5 too if you're running that and would be WAY easier than my little script.&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.netapp.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 15:04:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Volume-information-in-Diag-mode/m-p/149584#M6027</guid>
      <dc:creator>donny_lang</dc:creator>
      <dc:date>2019-07-12T15:04:59Z</dc:date>
    </item>
  </channel>
</rss>

