Discuss NetApp solutions for Microsoft Private Cloud and the Hyper-V platform, including FlexPod Datacenter, OnCommand Plug-in for Microsoft, and ONTAP PowerShell Toolkit.
Discuss NetApp solutions for Microsoft Private Cloud and the Hyper-V platform, including FlexPod Datacenter, OnCommand Plug-in for Microsoft, and ONTAP PowerShell Toolkit.
We have upgraded from ONTAP 9.9.1P10 to 9.11.1P9. We have extensively used the PowerShell Toolkit for automation. After the upgrade many command stopped working, where we received errors that the switch isn't support. We even tried downgrading the toolkit to the previous version but that didn't help against 9.11. Here is one example, where the switch isn't supported: New-NcVol -ExcludedFromAutobalance An example of a switch within command which is no longer working: Get-NcEmsMessage -StartTime We get this error: There was an error Get NcEmsMessage System.ArgumentException: StartTime parameter specified, which is not supported for REST call at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord) At line:526 char:19 For: $Events = Get-NcEmsMessage -StartTime $startdate | Where-Object { $_.MessageName -notin $Ignore } Reason: ArgumentException, Activity: Get-NcEmsMessage, Category: InvalidArgument We see on the site (https://docs.netapp.com/us-en/ontap-restmap-9111/volume.html#volume-encryption-conversion-start) that some of the commands say: No REST Equivalent But we know 100% these commands worked before the upgrade. Has the Toolkit/REST API been limited?
... View more
I created a test share using the powershell module NetApp.ONTAP 9.12.1.2302 against a NetApp running NetApp Release 9.11.1P7. Connect-NcController <NetApp ClusterName> $global:CurrentNcController.Vserver = <VServerName> Add-NcCifsShare -name Test1 -Oplocks $true -AccessBasedEnumeration $true -ChangeNotify $true -Path /<flexGroupName> The share is successfully created, but does not have the three settings set, so I tried to modify them: Set-NcCifsShare -Name Test1 -Oplocks $true When I do that, it does not give me feedback that something went wrong, but it also does not set the OpLocks to be true. Also, if I have manually turned on one of the three mentioned settings, it turns all three off! I tried it by creating the share with Add-NcCifsShare and using -ShareProperties @("oplocks","accessbasedenumberation","changenotify"), then I get this: Add-NcCifsShare: ShareProperties parameter specified, which is not supported for REST call I will have to create a hundred shares in the next few days, and I really REALLY don't want to do it manually. What am I missing?
... View more
Has anybody done SP firmware update with Powershell command? I tried update-ncserviceprocessorimage -node AAA -package http://2.2.2.2/update.ima -updatetype full It keeps giving an error saying "This update-type is unavailable". or Invalid value specified for "update-type" element. This Powershell Toolkit new release is falling into apart, over 90% of commands don't even work. How NetApp allow such buggy software to be released even ??
... View more
I want use powershell to create a snapvault but when I use new-ncsnapmirrorpolicy command to create the policy, I use -type vault parameter, but it response me a error PS C:\File> New-NcSnapmirrorPolicy -Name mysmpolicy1 -VserverContext svm2 -Type vault New-NcSnapmirrorPolicy : [400]: "vault" is an invalid value for field "type" (<async|sync|continuous>) It tell me just can use async ,sync and continuouse not vault option How to create a snapmirrorpolicy for vault ? Thanks
... View more
Trying to use the New-NcCluster cmdlet to start the cluster setup process. The node IP is configured using node setup and the admin password is set.
The next step is to connect to the node IP using Connect-NcController but the connection fails.
Connect-NcController 192.168.137.201 -Credential $cred
Connect-NcController : Could not connect to 192.168.137.201 on port 80 for protocol HTTP.
At line:1 char:1
+ Connect-NcController 192.168.137.201 -Credential $cred
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidResult: (192.168.137.201:NcController) [Connect-NcController], NaConnectionException
+ FullyQualifiedErrorId : HttpConnectionFailed,DataONTAP.C.PowerShell.SDK.ConnectNcController
This shows the connection tried HTTPS then down to HTTP.
Here's an attempt forcing HTTPS
Connect-NcController 192.168.137.201 -Credential $cred -HTTPS
Connect-NcController : database cluster_id_rdb is not open
At line:1 char:1
+ Connect-NcController 192.168.137.201 -Credential $cred -HTTPS
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidResult: (192.168.137.201:NcController) [Connect-NcController], EAPIERROR
+ FullyQualifiedErrorId : HttpConnectionFailed,DataONTAP.C.PowerShell.SDK.ConnectNcController
Without a connection the New-NcCluster is useless (obviously).
Also, the web browser interface to run cluster setup doesn't work either - just get a blank page.
This has been attempted on a FAS2552 running 9.6P4 as well as the latest simulator.
Tried PSTK 9.6 and new 9.7.
BTW - this DID work in older versions - but it's been a while since I've tried it so couldn't say WHEN it broke
Any ideas?
... View more