VMware Cloud Community
thakala
Hot Shot
Hot Shot

Screen capture of VM console using vCO? / SOLVED

Hello all,

Anyone know a way to make a screen capture of VM console screen (MKS) from vCO workflow?

I am working on a ESXi host stress test workflow and before I power off memtest86+ VMs I would like to make an screen capture of VM console and send this capture as part of an email report.

Tomi http://v-reality.info
0 Kudos
2 Replies
thakala
Hot Shot
Hot Shot

I spotted CreateScreenshot_Task() method under a VM property, but when I try to invoke this method from vCO I get an error:

TypeError: Cannot find function CreateScreenshot_Task in object DynamicWrapper (Instance) : [VcVirtualMachine]-[class com.vmware.vmo.plugin.vi4.model.VimVirtualMachine] -- VALUE : VirtualMachine<vm-2483>'memtest12'.

This method however works fine from Managed Object Browser.


Any ideas why I cannot call this method from vCO?

Tomi http://v-reality.info
0 Kudos
thakala
Hot Shot
Hot Shot

OK, solved. For some reason this method is in vCO API as "createScreenshot_Task" and not "CreateScreenshot_Task" as in MOB and vSphere 5.1 API reference. Live and learn.

Tomi http://v-reality.info
0 Kudos