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.
I have a script that runs get-ncvol ...the connect... and get-ncvol work fine. I want to get some snapmirror info with "get-nasnapmirrorschedule" Seems it requires credentialsparameter??!. Does anyone know what the format of get-nassnapmirrorschedule is? $username = "xxxxx" $pwdTxt = Get-Content "C:\Scripts\Storage\xxxxx.txt" $securePwd = $pwdTxt | ConvertTo-SecureString $credObject = New-Object System.Management.Automation.PSCredential -ArgumentList $username, $securePwd $global:CurrentNcController = $null connect-nccontroller $cluster -credential $credObject get-ncvol ********************************************** I tried to use "get-nasnapmirrorschedule -Controller xxxx" and it errors...wanting credentials. get-nasnapmirrorschedule : Incorrect credentials for xxxxx At C:\scripts\storage\testing-snapmirror\Snapmirror-check.ps1:32 char:1 + get-nasnapmirrorschedule -Controller xxxxx + CategoryInfo : InvalidOperation: (bmina:NaController) [Get-NaSnapmirrorSchedule], NaAuthException + FullyQualifiedErrorId : ApiException,DataONTAP.PowerShell.SDK.Cmdlets.Snapmirror.GetNaSnapmirrorSchedule
... View more
When I use command to know the disk's aggregate name but it have nothing and I can't find any information about which partitions is use been create in a aggregate How to find these information? Thanks
... View more
After searching the PowerShell Toolkit/module and forums, I've been unable to find this one. Is there a command that performs the equivalent of this CLI command? vserver cifs domain discovered-servers discovery-mode [modify|show] ... Can you point me to a definitive answer? Thanks!
... View more
Trying to use PS Toolkit to create FPolicy on several svms across multiple clusters. Stuck on new-NcFpolicyPolicy -Name ransomwarePolicy -Event cifsEvent, nfsV3Event, nfsV4Event -EngineName native -VserverContext svm_1 new-NcFpolicyPolicy : [400]: Failed to create policy "ransomwarePolicy". Reason: scope is a required field. At line:1 char:1 + new-NcFpolicyPolicy -Name ransomwarePolicy -Event cifsEvent, nfsV3Eve ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [New-NcFpolicyPolicy], Exception + FullyQualifiedErrorId : 400,DataONTAP.C.PowerShell.SDK.Cmdlets.Fpolicy.NewNcFpolicyPolicy I can use the new-NC-FpolicyScope to create a scope, but it fails as the noted 'ransomwarePolicy' has not been created yet. Does anyone know what the -scope parameter is used for? Cannot find any examples and it's not shown in the help for the command. Powershell says it's not a required parameter. Using 9.14.1 PS Toolkit Powershell 7.4.1.0 connecting to a cluster running 9.10.1p10
... View more