ONTAP Discussions

Get-NcVol & Set-NcVol - how to set and display the volume COMMENT

DidierW

Hello,

Actually with the Ontap shell client you can set or display a volume's comment.

volume show -volume XYZ 

And you get a list of properties and one of those is a "Comment".

How can you display (or set) a volume comment with the "powershell ontap toolkit 9.6"?

At my knowledge there is no such property in the get-ncvol & set-ncvol CMDLET.

Is it even possible to use that property with the toolkit?

Thank you for your help!

Kind regards,

Didier

 

1 ACCEPTED SOLUTION

DidierW

Found it ... it is in the VolumeIdAttributes hash table.

For the archives, here it is:

Get-NcVol | select name,state,totalsize,used,available,dedupe,aggregate,vserver, @{N='Comment';E={$_.VolumeIdAttributes.Comment}} | ft -autosize

 

Didier

View solution in original post

1 REPLY 1

DidierW

Found it ... it is in the VolumeIdAttributes hash table.

For the archives, here it is:

Get-NcVol | select name,state,totalsize,used,available,dedupe,aggregate,vserver, @{N='Comment';E={$_.VolumeIdAttributes.Comment}} | ft -autosize

 

Didier

View solution in original post

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public