VMware Cloud Community
RoyalFlash
Enthusiast
Enthusiast
Jump to solution

Can’t find ToolsVersionStatus from vCloud VM

Hi all,

I am currently checking some data of our vCloud VMs but I cannot find the current status of VMware Tools.

Checking the "ToolsVersionStatus" on vCenter/vSphere is working fine:

$VMData = Get-View –viewtype VirtualMachine –filter @{“Name”=”VMName”}
$VMData.Guest.ToolsVersionStatus

 

But I cannot find the "ToolsVersionStatus" in vCloud using Get-CIVM

$VM = Get-CIVM VMName
$Tools = Get-CIVM $VM | select extensiondata
$Tools.ExtensionData.Section.vmwaretools.Version

 

How can i get the vCloud VMs ToolsVersionStatus ?

Could somebody help please?

PowerCLI-03.jpg

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

If the output doesn't show the property and value you want, it is not present.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

Reply
0 Kudos
11 Replies
LucD
Leadership
Leadership
Jump to solution

Shouldn't that be

$vm = Get-CIVM VMName
$vm.ExtensionData.Section.VMWareTools.Version


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
RoyalFlash
Enthusiast
Enthusiast
Jump to solution

Hi LucD   🙂

thanks for your quick answer.

Unfortunately not.

This is giving me the version, but not the Status like in vCenter/vSphere PowerCLI

I would need to know if VMwareToolsStatus is current or if need to be updated.

This is for Get-VM

PowerCLI-05.jpg

 

This is for Get-CIVM

PowerCLI-04.jpg

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

What other properties do you see under

$vm.ExtensionData.Section.VMWareTools


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
RoyalFlash
Enthusiast
Enthusiast
Jump to solution

Hi,

this screenshot is a little bigger. Hope you can see everything.

This is the full output of

$VM.ExtensionData.Section

$VM.ExtensionData.Section.vmwaretools

PowerCLI-06.jpg

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

That seems to confirm only the Version is available through Get-CIVm.
Anything more with

Get-CIVM -Name $VMName | Get-CIView


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
RoyalFlash
Enthusiast
Enthusiast
Jump to solution

Hi LucD

this is the full output of:

Get-CIVM -Name $VMName | Get-CIView

 

PowerCLI-07.jpg

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

These are nested properties, you have to go into those.
A simple method, but might produce a lot of output.

Get-CIVm -Name $VMName | Get-CIView | Format-Custom


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
RoyalFlash
Enthusiast
Enthusiast
Jump to solution

Hi LucD 🙂

thanks for your help and your answer. 😊

wow... this is overwhelming me.

This    Get-CIVm -Name $VMName | Get-CIView | Format-Custom     giving me an Output of about 1500 lines of code  😲

Not sure if I understand correctly.

I´ve never worked with Format-Custom before.

I just checked the Output but I can´t find any word with *Tools*

I don't even know where to begin. 😞

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

If the output doesn't show the property and value you want, it is not present.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
RoyalFlash
Enthusiast
Enthusiast
Jump to solution

Ok, thank you very much!!!

hope to get the value from Windows PS maybe or find another way... 😉

Have a nice day LucD

Great support so far.

You helped me to understand PS much better the last few days 👍 

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

You're welcome 


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos