Data ONTAP Discussions

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

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 REPLY 1

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

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

Forums