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.
In the past, I've used Invoke-NcSSH to administer Ontap clusters from a central location. i.e. I could pull the aggregate list from a cluster using a command like this: Invoke-NcSSH -Controller ClusterName -Command "aggr show" I also created a function to make the command shorter and allow me to run any OnTap CLI command on any cluster from a PowerShell window. The problem is that it requires Putty >0.70 to be installed (no big deal), but it's really really slow. I thought that Posh-SSH might work better, but you first have to establish a session, find the session ID, invoke a session to that session ID, then parse the output to get the data that I need. This is what a Posh-SSH session looks like to do the same as what I'm doing with Invoke-NcSSH: New-SSHSession -ComputerName ClusterName Get-SSHSession $var = Invoke-SSHCommand -SessionId 0 -Command "aggr show" $var.Output Does anyone have any fancy ways to make Posh-SSH work more like the way I was using Invoke-NcSSH above? Essentially, I'd like to be able to run an OnTap CLI command from PowerShell using a single PS command. Thanks in advance for any hints anyone can give me!
... View more
We are working on powershell automation script for the volume provisioning where we found we are unable to add access to the service account as part CIFS share creation by using powershell . but where we are able to provide the access to the service account manually through CLI command.
... View more
Deal All, I have installed ONTAP PowerShell Toolkit 9.15.1 to automate health check report. Executing below command does not show used space both for aggregates and volumes get-ncaggr get-ncvol I m using ONTAP version 9.12.x but the ONTAP PowerShell Toolkit is at 9.15.1. m i missing anything ? Appreciate you guidance.
... View more
I change the data svm's root volume by these command $rootaggrsize = Get-Ncaggr aggr0_cluster1_01 | Select-Object -ExpandProperty TotalSize $rootvolsize = $rootaggrsize*0.93 Set-NcVolSize svm1_root -VserverContext svm1 -NewSize $rootvolsize The data svm's root volume is been resize But when I use the same command in the Node svm's root volume, It show me error Set-NcVolSize vol0 -VserverContext cluster1-01 -NewSize $rootvolsize How can I use powershell to modify Node svm's root volume? Thanks
... View more
Hi All, Since update from 9.1.15.2407 to 2410 there is a failure of the first cmdlet following 'connect-controller', example : #Import-Module -force DataONTAP
$Credential = Import-Clixml $CredentialXmlNetappPath -ErrorAction SilentlyContinue
$ncController = Connect-NcController $ClusterName -Credential ($Credential) -Timeout 600000
PS C:\Windows\system32> Get-NcAggr
Get-NcAggr : Le serveur distant a retourné une erreur : (400) Demande incorrecte.
Au caractère Ligne:1 : 1
+ Get-NcAggr
+ ~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-NcAggr], WebException
+ FullyQualifiedErrorId : System.Net.WebException,DataONTAP.C.PowerShell.SDK.Cmdlets.Aggr.GetNcAggr
PS C:\Windows\system32> Get-NcAggr
Name State TotalSize Used Available Disks RaidType RaidSize Volumes
---- ----- --------- ---- --------- ----- -------- -------- -------
fp_004TB_dpa1nc01_1 online 153,9 TB 110,0 TB 51 17 thanks in advance powershell 5.1 Windows 2019 Ontap 9.14.1P8 regards, Yannick
... View more