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?
Sure, click the Documents tab of this community and look at the Guest Script Manager package
Additionally, if that is not an option, you could SSH to the host then issue your perl commands that way.
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
damn, to slow (once again) 🙂 ...and I forgot the guest operations, that's indeed an alternative.
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.
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.