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.
Hello *, after upgrading NetApp PSTK to latest version 9.12.1.2302 on our win 2012R2 script host and running some dr scripts i noticed a possible error/bug in "New-NcVol" command. When using the parameter -language PS runs the new new-ncvol command without any errors but no volume will be created. I tried every possible combination but no volume wil be created. When leaving out the parameter volume will be created but we need to have a different language from svm root volume. Can anyone confirm the same problem when using -language? Currently it seems like every version of PSTK has its own big bugs which leaves them nearly unusable.
... View more
I'm trying to port an old NetApp PowerShell Toolkit script running on an old server that is managing our home directory quota to the current version of the NetApp PowerShell Toolkit (9.14.1.2401) on an up-to-date server. First strange effect: Unless I specify -ZapiCall, the Get-NcQuota and Get-NcQuotaReport are useless for me, as the QuotaTarget fields come up blank. So -ZapiCall it must be, even if that interface is deprecated. Next problem: I have a quota entry, that clearly exists: > Get-NcQuota -Type User -Target AD\ratzka_t -Volume vol_HRZ_H -VserverContext vsrz001 -Qtree "" QuotaType QuotaTarget Volume Qtree DiskLimit FileLimit Vserver --------- ----------- ------ ----- --------- --------- ------- user AD\ratzka_t vol_HRZ_H 36909875 - vsrz001 But trying to remove it gives me a confusing error message: > Remove-NcQuota -Type User -Target AD\ratzka_t -Volume vol_HRZ_H -VserverContext vsrz001 -Qtree "" Remove-NcQuota : Group parameter neither specified nor set At line:1 char:1 + Remove-NcQuota -Type User -Target AD\ratzka_t -Volume vol_HRZ_H -Vser ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Remove-NcQuota], ArgumentException + FullyQualifiedErrorId : Group is empty,DataONTAP.C.PowerShell.SDK.Cmdlets.Quota.RemoveNcQuota Incidentally, searching for this error message turns up a suggestion to just do REST directly. So is there anybody out there who is successfully using the NcQuota-cmdlets? Kind Regards, Wolfgang Ratzka
... View more
Hi Team, I am creating a Ansible playbook for NetApp Health check and started with basic. I am able to get volume and svm info for offline volumes and i get output like [vol1, svm1, vol2, svm2, vol3, svm3]. When i am putting this into CSV its going in single row. Need help to be able to split this into multiple rows.
... View more
We're migrating our datacenters to Hyper-V/SCVMM from VMware and through this process we started using the SMI-S Provider with SCVMM 2022. I noticed today that all easy to find references to SMI-S Provider are missing from the NetApp Support site... They can still be found through search, but are all marked as "Legacy". Given that SCVMM only supports SAN Arrays through either SMI-S or SMP, what is the plan moving forward for this, given how many orgs are moving away from VMWare and into Hyper-V/Azure Stack HCI as a solution? Presumably the way to go would be SMB shares, but given that the SMI-S provider is still required to be able to add NetApp hosted SMB shares (No WSMAN on NetApp so the "Add File Share" option fails), this leaves me in a bit of a predicament.
... View more
Hi everyone, I am using the Get-NcCifsSession from the Powershell Toolkit to get the number of sessions connected to a Vserver on an AFF with FlexCache configuration. However, most of the time, only a few sessions are displayed (occasionally, a larger number is displayed). When I get the session information using the ONTAP CLI at the same time, a larger number of sessions are displayed. - Number of sessions gotten using ONTAP CLI: 1226 -------------------- vserver cifs session show -Vserver vserver_name -------------------- - Number of sessions gotten using PowerShell Toolkit: 4 -------------------- vserver cifs session show -Vserver vserver_name -------------------- Our environment: Configuration: FlexCache configuration AFF (cache)--- CVO (origin) ONTAP version: 9.14.1 P1 Toolkit version: 9.14.1P1 Code for getting sessions: $cvo_mgmt_param = @{ 'ip_addr' = 'AFF IP Address' 'username' = 'admin'; 'password' = 'admin password'; } $password = ConvertTo-SecureString $cvo_mgmt_param['password'] -AsPlainText -Force $cred = New-Object System.Management.Automation.PSCredential $cvo_mgmt_param['username'],$password Connect-NcController $cvo_mgmt_param['ip_addr'] -credential $cred Get-NcCifsSession -Vserver <vserver-name> (Get-NcCifsSession -Vserver <vserver-name> | Measure-Object).Count ----- Example output: LifAddress SessionId ConnectionId ConnectedTime ProtocolVersion Address Vserver ---------- --------- ------------ ------------- --------------- ------- ------- XXX.XXX.XXX.XXX ...540379279 2633504152 15h 47m 5s smb3_1 XXX.XXX.XXX.XXX XXX.XXX.XXX.XXX ...540379280 2633504153 15h 47m 10s smb3_1 XXX.XXX.XXX.XXX XXX.XXX.XXX.XXX ...540379285 2633504161 15h 47m 10s smb3_1 XXX.XXX.XXX.XXX XXX.XXX.XXX.XXX ...540379287 2633504163 15h 47m 6s smb3_1 XXX.XXX.XXX.XXX 4
... View more