简体   繁体   中英

System Center Service Management Automation (SMA) PowerShell Runbook Invoke-NcSsh : The system cannot find the file specified

Tried to run a powershell script inside System Center Service Management Automation (SMA) to query some informations from NetApp. The following command was used:

Invoke-NcSsh -Command "node run -node $Node sysconfig -a"

I was able to run the command successfully directly inside the PowerShell ISE on the runbook workers (NetApp_PowerShell_Toolkit_9.6.0 and putty-64bit-0.73 installed). But as soon as I was running the runbook as a SMA job it failed with the following error:

Invoke-NcSsh: The system cannot find the file specified + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo: NotSpecified: (:) [Invoke-NcSsh], Win32Exception + FullyQualifiedErrorId: System.ComponentModel.Win32Exception,DataONTAP.C.PowerShell.SDK.Cmdlets.Toolkit.Ssh.InvokeNcSsh

procmon.exe was showing that Orchestrator.Sandbox.exe was looking for the plink.exe (from putty used for sending ssh command) inside the following folders: 在此处输入图像描述

Solution: Copy plink.exe to one of this folders.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM