- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
12-29-2020 09:38 AM
Dear all,
Like many customers I'm trying to spawn a Powershell script to update some credentials on appliance. My issue is that I have the following message on the CPM:
Trying to open a session while another session already opened is an invalid flow.
Invalid transition in plugin flow. Refer to log for more information.
Have you got an idea?
Thanks a lot.
12-30-2020 12:20 AM
Maybe provide some info about which type of account you want to manage and how your plugin looks right now.
12-30-2020 12:27 AM
Yes sorry. I'm using the iDRAC plugin from the Marketplace and I just add a spawn instruction to update the OME appliance with the new credentials.
The Powershell script is working well if I run it manually. It is composed of a wrapper and a script from Dell. The wrapper calls the Dell script.
My assumption is that when I try to insert my state with the 'spawn' instruction. I have got this error, even if I try to call something else. Do you I need to do a (script) close before spawning a new process?
12-30-2020 01:26 AM
Ok, I tested, and it seems that the StartSessionSSH from the plugin with a (spawn) plink was in conflict with my script. It seems that you can run only one spawn command per session.
Thus I added a (script) close before my Powershell script and now the script is correctly spawned.
12-30-2020 03:36 AM
After fixing my issues, I see that the process is spawned successfully but nothing has been done.
12-30-2020 05:24 PM
Does the target system have another way of managing the password? Through SSH or through the web-ui for example? CPM has some robust frameworks for that exact purpose.
This page has some more info about "spawn"ing executables: https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/PASIMP/Plug-in-Terminal-Plugin-Controller.htm
12-31-2020 03:01 AM
Thanks a lot for the info. But If I understand the 'spawn' will run a process on the target machine? if the script is located on the CPM, does-it mean that I must use the exec command from TCL?
12-31-2020 05:45 AM
Do you have a complete working example with a spawn command?
01-22-2021 02:11 AM
It seems that 'spawn' command could also be used one time. The workaround was to use the tcl command exec but without any return information into the CyberArk logs.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

