VMware Cloud Community
schistad
Enthusiast
Enthusiast

SSH plugin, session variable not serializable, and multi-action SSH sessions

Got a tricky one here: How can I run multiple SSH commands inside a workflow by passing the session variable to each action?

While it would seem obvious to do an initial SSH connect in the first step of the workflow, and use this session for the next steps, the javascript engine is unable to serialize the session object and hence it cannot be passed as a parameter between discrete contexts.

Is there any way around this? Or do I need to run an entire workflow every time?

0 Kudos
1 Reply
cdecanini_
VMware Employee
VMware Employee

There is no way around this. You need to open / close the SSH session in each step of the workflow where you need it. A good way of doing it as you mention is to run an entire workflow every time.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter