Microsoft Virtualization Discussions

Invoke-NcCli: is that a valid command?

dmauro
356 Views

PS C:\Windows\system32> Connect-NcController 192.168.0.111

Name Address Vserver Version
---- ------- ------- -------
192.168.0.111 192.168.0.111 NetApp Release Clawhammer__9.14.1: Tue Mar 19 18:52:51 U...


PS C:\Windows\system32> Invoke-NcCli
Invoke-NcCli : The term 'Invoke-NcCli' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Invoke-NcCli
+ ~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Invoke-NcCli:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

 

 

but according to the documentation:

"Can I send CLI commands to the controller from PSTK?
Yes. Use the cmdlet: Invoke-NcSSH, Invoke-NcCli

"

from NetApp PowerShell Toolkit 9.15.1.2407 Installation Guide taken from https://mysupport.netapp.com/site/tools/tool-eula/ontap-powershell-toolkit/download

2 REPLIES 2

Sanaman
281 Views

It works on PSTK 9.13.1.2306

 

Invoke-Ncssh "system node show -fields uptime"

NcController : ontapclup06
Value :
Last login time: 10/2/2024 12:40:59
node uptime
----------- -------------
ontapclup06a 93 days 00:46
ontapclup06b 93 days 01:09
2 entries were displayed.

dmauro
264 Views

I mentioned Invoke-NcCli and not Invoke-Ncssh;

 

Public