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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
do someone use the NetApp PowerShell Toolkit for ONTAP 9.6 and can tell me, over which Cmdlet I can set the volume options for the Logical Space Reporting and the Logical Space Entformcement?
I'm searching the toolkit for the right option but I'm not able to find the right option.
Thanks Pascal
Solved! See The Solution
1 ACCEPTED SOLUTION
PMensing has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think you'll have to build out an attribute object and use Update-NcVol for this... Something like:
$q = Get-NcVol -Template Initialize-NcObjectProperty $q VolumeIdAttributes $q.VolumeIdAttributes.Name = "<VOLUME>" $q.VolumeIdAttributes.OwningVserverName = "<SVM>" $a = Get-NcVol -Template Initialize-NcObjectProperty $a VolumeSpaceAttributes $a.VolumeSpaceAttributes.IsSpaceReportingLogical = 'true' $a.VolumeSpaceAttributes.IsSpaceEnforcementLogical = 'true' Get-NcVol -Query $q Update-NcVol -Query $q -Attributes $a
2 REPLIES 2
PMensing has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think you'll have to build out an attribute object and use Update-NcVol for this... Something like:
$q = Get-NcVol -Template Initialize-NcObjectProperty $q VolumeIdAttributes $q.VolumeIdAttributes.Name = "<VOLUME>" $q.VolumeIdAttributes.OwningVserverName = "<SVM>" $a = Get-NcVol -Template Initialize-NcObjectProperty $a VolumeSpaceAttributes $a.VolumeSpaceAttributes.IsSpaceReportingLogical = 'true' $a.VolumeSpaceAttributes.IsSpaceEnforcementLogical = 'true' Get-NcVol -Query $q Update-NcVol -Query $q -Attributes $a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
that works perfectly. Thanks for your help.
