CPM error message: Trying to open a session while another session already opened is an invalid flow.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CPM error message: Trying to open a session while another session already opened is an invalid flow.

L2 Linker

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.

8 REPLIES 8

L7 Applicator

Maybe provide some info about which type of account you want to manage and how your plugin looks right now.

L2 Linker

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?

L2 Linker

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.

L2 Linker

After fixing my issues, I see that the process is spawned successfully but nothing has been done.

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

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?

Do you have a complete working example with a spawn command?

L2 Linker

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.

  • 332 Views
  • 8 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!