VMware Actions

I am trying to create a small backup script for our virtual machines on a VMWare Server. What I want to do is get a list of VMs that are on from the server, suspend them, back them up and then restart them. I started with the ‘VMWare Server List VMs’ action to save the machine names to a variable. I am trying to use that variable with the '‘VMWare Server Suspend VMs’ action to suspend the machines that are on. This doesn’t work as the action interprets the whole string as one VM name. I have tried inserting various delimiters but that doesn’t work. Is there a way to do this?

Hi Larry,

You should be able to use a List Iterator on the full VM list to set a second variable to each VM name in turn. Then run VMWare Server Suspend VMs on each individual name.

Regards,


Angus

Angus,

Thanks for the reply. When I get the list of VMs from the VMWare Server List VMs all of the VM names are in one big string. Is there a way to seperate these out to individual VM names? All of the machines names end with ‘.vmx’. I thought there was some kind of search and replace action in FB. I believe I would need to place a CRLF between the machine names. Do you have any ideas?

Figured it out with a script - thanks Angus

Hi Larry,

As far as I can see, the list of VMs is built as a CRLF delimited list (ie each vmx path on a new line.)

I’m glad you’ve sorted it out, at any rate.

- Angus