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 I use powershell to remove port from Default Broadcast Domain, it show me an error message But I can do the same thing in ontap cli Is any thing I miss in powershell environment? Thanks
... View more
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