ONTAP Discussions

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

DidierW
3,288 Views

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
3,197 Views

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
3,198 Views

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

Public