<?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: Netapp Voume Tagging in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Netapp-Voume-Tagging/m-p/163361#M6333</link>
    <description>&lt;P&gt;&lt;STRONG&gt;VolumeIdAttributes is a powershell hash table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS C:\Users\jocolon&amp;gt; Get-NcVol -Name DATA1 | select name,@{N='Comment';E={$_.VolumeIdAttributes.Comment}}&lt;/P&gt;&lt;P&gt;Name Comment&lt;BR /&gt;---- -------&lt;BR /&gt;DATA1 tag.Department=HR,tag.Owner=SUPERDuper_SAN_Admin&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PS C:\Users\jocolon&amp;gt; Get-NcVol -Name *DATA*| select name,@{N='Comment';E={$_.VolumeIdAttributes.Comment}}&lt;/P&gt;&lt;P&gt;Name Comment&lt;BR /&gt;---- -------&lt;BR /&gt;vol_DATA TEST : 192.168.5.103 : vfiler0 : vol_DATA&lt;BR /&gt;DATA1 tag.Department=HR,tag.Owner=SUPERDuper_SAN_Admin&lt;BR /&gt;DATA2 tag.Department=Finance,tag.Owner=Ugly&lt;BR /&gt;DATA3 tag.Department=Finance,tag.Owner=Hateit&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PS C:\Users\jocolon&amp;gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2021 22:12:56 GMT</pubDate>
    <dc:creator>jcolonfzenpr</dc:creator>
    <dc:date>2021-01-26T22:12:56Z</dc:date>
    <item>
      <title>Netapp Voume Tagging</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Netapp-Voume-Tagging/m-p/163334#M6330</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I try to find a way to tag netapp volumes and after it to get a report of all Volumes with Tag information as well.&lt;/P&gt;&lt;P&gt;In the Gui, it looks like there is no way to modify volumes with tag Information.&amp;nbsp; Powershell or Netappcli ? Is there a good option to to this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tanks for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;Get-NCvol | ?{ $_.Aggregate -like "*$filer*" } | ForEach-Object {
    $x = "" | Select Name,State ,TotalSizeGB,Dedup,UsedPercent,AvailableGB,Aggregate,SVM,NCcontroller,Tag
    $x.name = $_.Name
    $x.Aggregate = $_.Aggregate
    $x.TotalSizeGB= [Math]::Round($_.TotalSize / 1GB)
    $x.Dedup = $_.Dedupe
    $x.UsedPercent = $_.Used
    $x.state = $_.state
    $x.SVM = $_.Vserver
    $x.AvailableGB = [Math]::Round($_.Available / 1GB)
    $x.NCcontroller = $_.NcController
    $x.Tag = $_.TAG # I dont know?

    $mycol += $x


 
}&lt;/LI-CODE&gt;&lt;P&gt;a&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:37:14 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Netapp-Voume-Tagging/m-p/163334#M6330</guid>
      <dc:creator>sudoline</dc:creator>
      <dc:date>2025-06-04T10:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Netapp Voume Tagging</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Netapp-Voume-Tagging/m-p/163335#M6331</link>
      <description>&lt;P&gt;you can use the comment field&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Check this post with similar interests.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.netapp.com/t5/ONTAP-Discussions/Adding-Custom-Metadata-to-Volumes/td-p/104860" target="_blank"&gt;https://community.netapp.com/t5/ONTAP-Discussions/Adding-Custom-Metadata-to-Volumes/td-p/104860&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 13:23:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Netapp-Voume-Tagging/m-p/163335#M6331</guid>
      <dc:creator>jcolonfzenpr</dc:creator>
      <dc:date>2021-01-26T13:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Netapp Voume Tagging</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Netapp-Voume-Tagging/m-p/163341#M6332</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now I know how to get the comments.&amp;nbsp; But how could I do set-ncvol? for example&amp;nbsp; to "TESTCommentName"&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; $x.comment = $_.VolumeIdAttributes.Comment

or 
(get-ncvol  testvol | select -ExpandProperty VolumeIdAttributes).comment&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 14:37:22 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Netapp-Voume-Tagging/m-p/163341#M6332</guid>
      <dc:creator>sudoline</dc:creator>
      <dc:date>2021-01-26T14:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Netapp Voume Tagging</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Netapp-Voume-Tagging/m-p/163361#M6333</link>
      <description>&lt;P&gt;&lt;STRONG&gt;VolumeIdAttributes is a powershell hash table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS C:\Users\jocolon&amp;gt; Get-NcVol -Name DATA1 | select name,@{N='Comment';E={$_.VolumeIdAttributes.Comment}}&lt;/P&gt;&lt;P&gt;Name Comment&lt;BR /&gt;---- -------&lt;BR /&gt;DATA1 tag.Department=HR,tag.Owner=SUPERDuper_SAN_Admin&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PS C:\Users\jocolon&amp;gt; Get-NcVol -Name *DATA*| select name,@{N='Comment';E={$_.VolumeIdAttributes.Comment}}&lt;/P&gt;&lt;P&gt;Name Comment&lt;BR /&gt;---- -------&lt;BR /&gt;vol_DATA TEST : 192.168.5.103 : vfiler0 : vol_DATA&lt;BR /&gt;DATA1 tag.Department=HR,tag.Owner=SUPERDuper_SAN_Admin&lt;BR /&gt;DATA2 tag.Department=Finance,tag.Owner=Ugly&lt;BR /&gt;DATA3 tag.Department=Finance,tag.Owner=Hateit&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PS C:\Users\jocolon&amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 22:12:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Netapp-Voume-Tagging/m-p/163361#M6333</guid>
      <dc:creator>jcolonfzenpr</dc:creator>
      <dc:date>2021-01-26T22:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Netapp Voume Tagging</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Netapp-Voume-Tagging/m-p/163366#M6334</link>
      <description>&lt;P&gt;HI and Thanks for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;but how would I be able to SET the comment field over powershell to a certian volume?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;something like SET-NCvol&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 07:39:14 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Netapp-Voume-Tagging/m-p/163366#M6334</guid>
      <dc:creator>sudoline</dc:creator>
      <dc:date>2021-01-27T07:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Netapp Voume Tagging</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Netapp-Voume-Tagging/m-p/163373#M6335</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Not simple set-ncvol&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS C:\Users\jocolon&amp;gt; Get-NcVol -Name *DATA*| select name,@{N='Comment';E={$_.VolumeIdAttributes.Comment}},vserver&lt;/P&gt;&lt;P&gt;Name Comment Vserver&lt;BR /&gt;---- ------- -------&lt;BR /&gt;vol_DATA TEST : 192.168.5.103 : vfiler0 : vol_DATA NAS&lt;BR /&gt;&lt;STRONG&gt;DATA1 tag.Department=HR,tag.Owner=SUPERDuper_SAN_Admin&lt;/STRONG&gt; SAN&lt;BR /&gt;&lt;STRONG&gt;DATA2 tag.Department=Finance,tag.Owner=Ugly&lt;/STRONG&gt; SAN&lt;BR /&gt;DATA3 tag.Department=Finance,tag.Owner=Hateit SAN&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PS C:\Users\jocolon&amp;gt; &lt;STRONG&gt;$vol = Get-NcVol -Template&lt;/STRONG&gt;&lt;BR /&gt;PS C:\Users\jocolon&amp;gt;&lt;STRONG&gt; Initialize-NcObjectProperty $vol VolumeIdAttributes&lt;/STRONG&gt;&lt;BR /&gt;PS C:\Users\jocolon&amp;gt; &lt;STRONG&gt;$vol.VolumeIdAttributes.Name = "DATA1|DATA2"&lt;/STRONG&gt;&lt;BR /&gt;PS C:\Users\jocolon&amp;gt; &lt;STRONG&gt;$comment = Get-NcVol -Template&lt;/STRONG&gt;&lt;BR /&gt;PS C:\Users\jocolon&amp;gt;&lt;STRONG&gt; Initialize-NcObjectProperty $comment VolumeIdAttributes&lt;/STRONG&gt;&lt;BR /&gt;PS C:\Users\jocolon&amp;gt; &lt;STRONG&gt;$comment.VolumeIdAttributes.Comment = "tag.Department=IT,tag.Owner=Jonathan,tag.Project=OracleMigration"&lt;/STRONG&gt;&lt;BR /&gt;PS C:\Users\jocolon&amp;gt; &lt;STRONG&gt;Update-NcVol -Query $vol -Attributes $comment&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;NcController : 192.168.7.63&lt;BR /&gt;SuccessCount : 2&lt;BR /&gt;FailureCount : 0&lt;BR /&gt;&lt;STRONG&gt;SuccessList : {DATA1, DATA2}&lt;/STRONG&gt;&lt;BR /&gt;FailureList : {}&lt;/P&gt;&lt;P&gt;PS C:\Users\jocolon&amp;gt; Get-NcVol -Name *DATA*| select name,vserver,@{N='Comment';E={$_.VolumeIdAttributes.Comment}}&lt;/P&gt;&lt;P&gt;Name Vserver Comment&lt;BR /&gt;---- ------- -------&lt;BR /&gt;vol_DATA NAS TEST : 192.168.5.103 : vfiler0 : vol_DATA&lt;BR /&gt;DATA1 SAN &lt;STRONG&gt;tag.Department=IT,tag.Owner=Jonathan,tag.Project=OracleMigration&lt;/STRONG&gt;&lt;BR /&gt;DATA2 SAN &lt;STRONG&gt;tag.Department=IT,tag.Owner=Jonathan,tag.Project=OracleMigration&lt;/STRONG&gt;&lt;BR /&gt;DATA3 SAN tag.Department=Finance,tag.Owner=Hateit&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PS C:\Users\jocolon&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 12:59:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Netapp-Voume-Tagging/m-p/163373#M6335</guid>
      <dc:creator>jcolonfzenpr</dc:creator>
      <dc:date>2021-01-27T12:59:30Z</dc:date>
    </item>
  </channel>
</rss>

