Unsolved

This post is more than 5 years old

181572

December 13th, 2012 17:00

How to get vm OS version

hi,

i'm trying to get the OS versions of my vm's but get N/A no matter what i select under host. i'm on 6.7 now. Does anyone have a step by step on this?

thanks.

Scott.

December 13th, 2012 18:00

hi thanks for reply but I'm trying to get the vm's OS version so appear in a report I am generating.

I edit the table to get host/os/version and it says N/A on the column

and get N/A. should be a lot easier than this IMO.

Additional Attachments:

94 Posts

December 13th, 2012 18:00

Hello Scott,

The important thing is to ensure that Vmware tools are up to date and running on your VMs. Assuming that is the case, you can see the guest OS information for any VM in vmExplorer dashboard under Summary and Resource Information pane:

VM_OS.png

If you are looking for the Report then there is an OOTB report Virtual Machines Configurations that will provide the information as well.

Hope this helps.

Sincerely

132 Posts

December 13th, 2012 19:00

osDisplayName is a hidden property on the VM topology object

a function which accepts a vm and returns a string, using the following code, will display the OS Name.

return args['vm']?.get("osDisplayName");

I've submitted this as a bug report.  Version of vFoglight doesn't matter.  VMWare Tools being up to date doesn't matter.

December 14th, 2012 13:00

thanks for reply jon, but I created a definition for a report to get all c drive info on vm's. I'm looking for the vm's OS in there. where in here I can find the OS version, that works, I don't know.

59 Posts

December 18th, 2012 20:00

Hi Scott,

Your screenshot shows a report based on LogicalDisk objects, which are in the Host model.

From there, you can get to monitoredHost/os/name and monitoredHost/os/type and monitoredHost/os/version, but you can't get to the VM to get the "osDisplayName" as suggested by John without a query (which is not available in a drag and drop dashboard/report).

But if you base your report on VMWVirtualMachineLogicalDisk, then you can path to virtualMachine/vOSDisplayName as well as hostLogicalDisk for the LogicalDisk metrics.

Regards,

Brian Wheeldon

59 Posts

December 19th, 2012 12:00

Something like this should work:

Query Name: Virtual_C_Drives

Select objects of type VMware Virtual Machine Logical Disk from the "(Default)" datasource (of type foglight-5)

    from Root of (foglight-5:default)/VMWModel/virtualCenters/virtualMachineCollection/virtualMachines/storage/logicalDisks

    where:

        /name equals "C:\"

Regards,

Brian Wheeldon

December 19th, 2012 12:00

All I am trying to do is get a list of all vm’s that have a c drive with less than 3 gig available, the name of the vm and the OS version.

December 19th, 2012 12:00

Thanks brian I set the object type but what is the path exactly?

December 19th, 2012 12:00

This is what I created

December 19th, 2012 12:00

Thanks,

But seeing this…uhhhgg

59 Posts

December 19th, 2012 12:00

The screenshot indicates that the paths are incorrect for some of the columns (e.g. "[DataObject]"), but the column titles are clipped off, so it's not possible to determine what you intended to display.

Perhaps you should post a more complete description of what you are trying to accomplish here?

Regards,

Brian Wheeldon

December 19th, 2012 13:00

Latest/value did it!

Thanks a million!

December 19th, 2012 13:00

virtualMachine/vOSDisplayName this does not give me anything.

Additional Attachments:

59 Posts

December 19th, 2012 13:00

OK,

My last post on this thread for the day:

To get the C drives with less than 3GB available, you can use a query like:

Name: Virtual_C_Drives_with_less_than_3GB_available

Select objects of type VMware Virtual Machine Logical Disk from the "(Default)" datasource (of type foglight-5)

    from Root of (foglight-5:default)/VMWModel/virtualCenters/virtualMachineCollection/virtualMachines/storage/logicalDisks

    where:

            (/name equals "C:\" And

            /hostLogicalDisk/spaceAvailable/current/average less "3036")

Then, you can use a table definition like this (WCF Row-Oriented Table Config Wizard) to display these results:

vLogicalDiskConfigureColumns.png

Result:

vLogicalDiskCDrivesWithLessThan3GBAvailable.png

Your vOSDisplayName configuration didn't work because this is an observation; you must select the latest value of this observation.

Regards,

Brian Wheeldon

59 Posts

January 7th, 2013 20:00

That's great, Scott.

Could you please mark this thread as "Answered" to increase the accuracy of future searches?

Thanks,

Brian Wheeldon

No Events found!

Top