jacquesperrin
Enthusiast
Enthusiast

How to unzip a file on vRO server

Jump to solution

Hi all

I would like to know how to unzip a file in a folder on vRO server.

I'm able to zip files (with ZipWriter), but I don't know how to unzip, except by running a command "var command = new Command("unzip ...")" but I would like to avoid to do that for security reasons.

Thanks

Jacques

0 Kudos
1 Solution

Accepted Solutions
jacquesperrin
Enthusiast
Enthusiast

Hi

I finaly use a "command.execute" to unzip files, but it will be great if VMware add a ZipWriter function to vRO.

Thanks for your help

View solution in original post

0 Kudos
3 Replies
iiliev
VMware Employee
VMware Employee

Hi,

vRO does not provide a scripting API to work with zip files (apart from the ZipWriter class which you already found out). And I'm not aware of a vRO plug-in that provides such functionality.

0 Kudos
cdecanini_
VMware Employee
VMware Employee

There was indeed a zipReader scripting object as part of the LivecycleManager plug-in part of the LifecycleManager product we got years ago.

I remember requesting this functionality to be merged in the platform since we already got the zip writer but it never made it. This could be a low hanging fruit that would avoid having to use  commands on the appliance or on external hosts.

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
0 Kudos
jacquesperrin
Enthusiast
Enthusiast

Hi

I finaly use a "command.execute" to unzip files, but it will be great if VMware add a ZipWriter function to vRO.

Thanks for your help

View solution in original post

0 Kudos