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.
When running the PSTK cmdlet get-ncnetinterface from version 9.12.1 against an ONTAP 9.12 cluster, it leaves the vserver value null for intercluster LIFs. I'm trying to set the intercluster interfaces to admin down, but set-ncnetinterface requires a value for vserver. When I provide the value manually, taking it from what's displayed on the CLI, I get a rather vague error: " WARNING: Record doesn't exist" for each intercluster LIF. Here's the cluster output: Logical Status Network Current Current Is Vserver Interface Admin/Oper Address/Mask Node Port Home ----------- ---------- ---------- ------------------ ------------- ------- ---- gsdc-aut-ontap912-1 gsdc-aut-ontap912-1-01_inter1 up/up 10.216.51.169/24 gsdc-aut-ontap912-1-01 e0c true gsdc-aut-ontap912-1-02_inter1 up/up 10.216.51.170/24 gsdc-aut-ontap912-1-02 e0c true Here's the loop I'm running: Get-NcNetInterface |% { if ( $_.ServicePolicy -eq 'default-intercluster' ) { Set-NcNetInterface -Controller $ClusterConnection -Vserver gsdc-aut-ontap912-1 -Name $_.InterfaceName -AdministrativeStatus down -Confirm:$false $_.Vserver } } Output for the vserver property is null. All of this works just fine on ONTAP 9.7 which is before the introduction of the Service Policy property. Regardless of how I run get-ncnetinterface, I get a null vserver property. How can I run set-ncnetinterface without the required vserver parameter? Even if I manually insert the vserver displayed on the command line, I get the error message mentioned above.
... View more
Recently, I have performed testing to get our current set of Powershell scripts working with REST API. I would like to share some of my results, in the spirit of trying to improve the product and ease our transition from ONTAPI to REST API I tested a number of existing Powershell scripts which my team has developed over the years. I tested with PSTK v9.13.1.2306 and OnTAP v9.10.1p12 On the positive side, the very basic functionality is there. You can "drop in" the new PSTK package into Windows, use the same cmdlets with REST and ONTAPI, and they work at a basic level. PSTK hides the complexity of the underlying calls and provides a consistent set of cmdlets. On the not-so-great side, many common cmdlets (get-ncvol, get-ncvserver, et-ncsnapshot to name a few) do not return all of the properties with REST which they do with ONTAPI. Since my scripts require these properties to be returned, I am unable to use the REST API and have to specify -ONTAPI for many of my calls. There are other issues with REST, among them: REST calls in some cases are much slower than the same call with ONTAPI, The help pages for the cmdlets in many cases have not been fully updated to match the cmdlet (example the -ONTAPI option is not even mentioned), Some cmdlets behave differently with REST than with ONTAPI. I have seen the REST flavor return a Warning message that the ONTAPI flavor does not. While this is not a functional issue, it requires me to change my code to suppress or handle the warning message. I would be happy to share specific cmdlets which I have tested and which are inconsistent between REST and ONTAPI I call on the PSTK maintainers to continue to improve and evolve the toolkit to provide consistent functionality, behavior, and performance between REST and ONTAPI flavors of their cmdlets. I would encourage other users to post their replies here, regarding their experience in migrating to REST with PSTK.
... View more
Hi everyone, I need help here… but first let me explain; Environment: ONTAP HA-Cluster hosted in Azure Cloud as Cloud Volumes ONTAP (v 9.13.1) Using Powershell where I need to define a ‘probe-port’ while creating an DataLIF because its required using CVO in Azure with his Loadbalancer. Question: Using New-NcNetInterface this parameter ‘probe-port’ cannot be found/ is missing. How can I add a probe-port using Powershell on a new network interface? Many thanks!
... View more
Hello Community, We currently try to update to PSTK 9.12.1.2302. But when you use Get-NcSnapshot -volume $volume You get an exception: Object reference not set to an instance of an object. Same when you use New-NcSnapshot command. Did anyone here get a solution or is PSTK only usable with "-zapi" legacy switch? Regards Dennis
... View more
Hello together, we have a problem with the PowerShell Kit and Session IDs for CIFS. We are running PowerShell Kit 9.13.1.2306 and OnTAP Version 9.12.1P3 We have a two node cluster and one SVM running on Node A have the problem when the corresponding LIF is also on Node A. The error: When we try to run the cmdlet "Get-NcCifsSessionFile -Vserver xxx" we encounter an error, that the Session ID is out of range from INT64. Workaround: When we move the LIF of the SVM to Node B, there is no error anymore. Back to Node A, the Session ID is again greater than INT64. On the OnTAP CLI the session ID can be checked with: vserver cifs session show Does anyone knows about that behaviour or has a solution? Maybe it is possible to decrease the range for CIFS session ids?
... View more