Can you share the adapter request.
the error is pointing out that the system cannot find the file, therefore you should supply the relative path to the file that you are attempting to execute.
Appreciate your help.
We have tried working with Windows command adapter but its failing while executing cmd.exe.
<error>Error executing command /debugMode cmd.exe /C ipconfig. Error: Message[summary=Exception occurred in WindowsCommandAdapter. Cannot run program "/debugMode": CreateProcess error=2, The system cannot find the file specified, detail=Exception occurred in WindowsCommandAdapter. Cannot run program "/debugMode": CreateProcess error=2, The system cannot find the file specified]</error>
Though we could see the Adapter is Enabled in LAP2 in the Grid log we could find the below error which is contradicting.
Summary: no peer with a running instance of WindowsCommandAdapter found
Please help us on this and let me know if you need any more details from my end.
1 of 1 people found this helpful
Based on the command output I suspect you are not providing any remote target in adapter request and in adapter configuration, the debugMode is switch for xCMD utility to execute command remotely, you might have enabled "debug utility" option in adapter configuration which is prefixed while command formation. Please un-check this option from adapter configuration and see if that works.
Since the request is executed and you are getting the error on LAP-2 peer, in this case either adapter is in fault state or not enabled, and this adapter is enabled on other peers as well when request is executed on adapter and you get the error response.
Could you please check in the below path, whether xCmd.exe present or not?
<BAO LAP installation path>\server\grids\<Your Grid Name>\library\adapters\implementations\ro-adapter-windows-command_<Version>\xCmd.exe
If not present, then issue is because of this.