Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Get-NcVol & Set-NcVol - how to set and display the volume COMMENT
2019-09-13
11:43 AM
3,589 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! See The Solution
1 ACCEPTED SOLUTION
DidierW has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
1 REPLY 1
DidierW has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
