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
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
Hi all, I'm trying to retrieve performance counters with cmdlet get-ncperfdata (PSTC 9.14.1). Connected to the ONTAP cluster (ontap 9.12.1) with switch '-ONTAPI' gives me many huge values (without this switch there are no values at all, names only). example: Get-NcPerfData -name resource_headroom_cpu -Instance * | select -ExpandProperty counters output (first lines only): NcController Name Value ------------ ---- ----- 10.10.10.1 archive_uuid_hi 1291860897976488975 10.10.10.1 archive_uuid_lo 9065273166377547423 10.10.10.1 current_intercluster_ops 71181521 10.10.10.1 current_latency 37044145714 10.10.10.1 current_ops 372875157 10.10.10.1 current_utilization 10033535085 10.10.10.1 current_utilization_total 67350009003 ... 10.10.10.1 service_time 22830412177 ... How to get values like "latency: 2 ms" or "utilization: 20%"? I was trying to calculate the values by "service_time", but the values will not become useable (or they do not match to values seen in Unified Manager). How to do that? How to get a value for "performance capacity used"? And what about the error using REST-API (connect-nccontroller without switch -ONTAPI)? Kind regars, Holger
... View more