VMware Cloud Community
pabloramos
Enthusiast
Enthusiast

Calling a Perl script from a Vco workflow

I have seen examples on how to call a Perl script located locally on the vCO server: http://www.vcoteam.info/articles/learn-vco/265-how-to-run-a-perl-script-from-a-vcenter-orchestrator-... Has anyone figured out a way to call a Perl script on another host (not on Vco) and pass it the appropriate inputs? Can this be done via ssh plugin? Perhaps someone can share a workflow that has done this?

0 Kudos
5 Replies
Burke-
VMware Employee
VMware Employee

Sure, click the Documents tab of this community and look at the Guest Script Manager package Smiley Happy

Additionally, if that is not an option, you could SSH to the host then issue your perl commands that way.

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 vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter
0 Kudos
tschoergez
Leadership
Leadership

Yes, SSH plugin and the "Run SSH command" workflow are the way to go.

It's quite straight forward to use, you just have to make sure that "render" the command line properly, with all the proper escaping and  blanks for the parameters.

Google for "vco run ssh command" and you can find quite a lot examples, like http://www.vmwarebits.com/content/orchestrator-workflow-register-ssh-public-key-esxi-host

Regards,

Joerg

0 Kudos
tschoergez
Leadership
Leadership

damn, to slow (once again) 🙂 ...and I forgot the guest operations, that's indeed an alternative.

0 Kudos
pabloramos
Enthusiast
Enthusiast

Thanks Burke. I am aware of the Guest Script Manager pkg. My understanding was that it could only handle Script type (bash, batch, Powershell). Since I didn't see Perl I assumed that ssh was better option.

0 Kudos
Burke-
VMware Employee
VMware Employee

ah, those were just examples... anything that can be run unattended on a guest should be able to be run with that package. And Christophe has already done a lot of the important waiting and parsing of results with that package so its just a matter of adding your own commands/scripts that call your perl line with the required params.

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 vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter
0 Kudos