When running the following: Set-NcAutoSupportConfig -node $_.node -IsEnabled $true -IsSupportEnabled $true -Transport "https" -MailHosts "mail.domain.tst" -From $autoSupportEmail -To "support@netapp.com" I get an error stating that the 'To' parameter specified, which is not supported for REST call, even though it is in the help file. If I take the 'To' parameter out, everything else works perfectly. Why would that one important piece not be working?
... View more
Does the powershell toolkit have the ability to enable storage failover and disable auto-giveback? Similar to these commands: storage failover modify -node nodename -enabled true storage failover modify -node nodename -auto-giveback false storage failover modify -node nodename -auto-giveback-after-panic false
... View more
Trying to update all of our Powershell scripts using the PSTK to use REST, and ran across the following inconsitency: Get-NcQuotaReport is returning KiloByte Values when making a Ontapi call, yet it returns Byte values when making a REST call. And this is a problem, as ocassionally it will silently fallback to using Ontapi if not disabled. PS d:\pstkscripts> get-NaToolkitVersion Major Minor Build Revision ----- ----- ----- -------- 9 18 1 2601 PS d:\pstkscripts> Get-NcQuotareport QuotaType QuotaTarget Volume Qtree DiskUsed FilesUsed Vserver --------- ----------- ------ ----- -------- --------- ------- tree adglbnpmshrd pilotosm 170196221952 200344 filer1d tree adukrpweb1 rpweb 4977668096 7201 filer1d tree afidubfs1 profiles 4326468419584 15963217 filer1f PS d:\pstkscripts> Get-NcQuotareport -ontapi QuotaType QuotaTarget Volume Qtree DiskUsed FilesUsed Vserver --------- ----------- ------ ----- -------- --------- ------- tree /vol/adglbnpmshrd/pilotosm adglbnpmshrd pilotosm 166207252 200344 filer1d tree /vol/adukrpweb1/rpweb adukrpweb1 rpweb 4861020 7201 filer1d tree /vol/afidubfs1/profiles afidubfs1 profiles 4225067908 15963222 filer1f
... View more
I am working on some automation using powershell and the powershell toolkit. After creating a qtree and then its share, I am trying to set the 'ShareProperties' parameter, "browsable", which correlates to the checkbox in the UI for "allow client access to snapshot copies directory". It fails saying, "ShareProperties parameter specified, which is not supported for REST call". I have tried it with Set-NcCifsShare and Add-NcCifsShare. I am running the powershell module for NetApp.ONTAP Version: 9.16.1.2501 in PowerShell 7.5.1. An example of the script. If I take out the shareproperties piece, it works perfectly. Set-NcCifsShare -Name $shareName -SymlinkProperties enable -AccessBasedEnumeration $true -ShareProperties "browsable" -VserverContext $storageVM Is there any way to set that option via PowerShell?
... View more
I am using Netapp.Ontap module version 9.16.1.2501. I would like to collection fractional reserve settings for volumes. When ontapi is disabled, the Get-NcVolOption fails. PS X:\SCRIPTS> Get-NcVol | Get-NcVolOption | ?{ $_.Name -eq "fractional_reserve" } Get-NcVolOption: API invoke failed:The remote server returned an error: (404) Not Found. When ontapi is enabled, the cmdlet works. vserver services web modify -vserver [CLUSTER]-name ontapi -enabled true My question is: are some cmdlets in the powershell toolkit not compatible with REST? and if so, is there a list?
... View more