<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Invalid property? A Trick With vSphere PropertyCollector</title>
	<atom:link href="http://www.doublecloud.org/2010/04/invalid-property-a-trick-with-vsphere-propertycollector/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.doublecloud.org/2010/04/invalid-property-a-trick-with-vsphere-propertycollector/</link>
	<description>Cutting Edge Technologies to Build DoubleCloud (Private + Public Clouds) with Virtualization</description>
	<lastBuildDate>Fri, 10 Feb 2012 18:12:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Tulsi</title>
		<link>http://www.doublecloud.org/2010/04/invalid-property-a-trick-with-vsphere-propertycollector/comment-page-1/#comment-2986</link>
		<dc:creator>Tulsi</dc:creator>
		<pubDate>Mon, 06 Sep 2010 15:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.doublecloud.org/?p=817#comment-2986</guid>
		<description>Hi Steve,

The project was referring to an older version of the API. It is working now.

Thank you.

Regards,
Tulsi</description>
		<content:encoded><![CDATA[<p>Hi Steve,</p>
<p>The project was referring to an older version of the API. It is working now.</p>
<p>Thank you.</p>
<p>Regards,<br />
Tulsi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tulsi</title>
		<link>http://www.doublecloud.org/2010/04/invalid-property-a-trick-with-vsphere-propertycollector/comment-page-1/#comment-2977</link>
		<dc:creator>Tulsi</dc:creator>
		<pubDate>Mon, 06 Sep 2010 07:06:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.doublecloud.org/?p=817#comment-2977</guid>
		<description>Hi Steve,

Thank you for your response. 

I did that already. However after building the String array of property paths, when I tried to retrieve the property values using PropertyCollectorUtil.retrieveProperties(...) or getPropertiesByPaths(...) it throws InvalidProperty Exception. It may be due to some value related problem (null?) or the version mismatch between the API and server.

That&#039;s why I got the question to see if we can validate whether a given property-path is valid or not. So that, we can avoid asking the value for that property-path when we make a call (to get the retrieveProperties or getPropertiesByPath/s).

In order to do this validation, if we use something like getPropertyByPath to see if it does/doesn&#039;t throw exception then decide that it is a invalid/valid property then that will lot of calls to the server.

In short, I&#039;m trying to do the following

Step-1: /* build property paths array using VI Java + Java-Reflection API */
Step-2: /* send the property paths for HostSystem or VirtualMachine etc., and get the values in one go */
Step-3: /* process the values */

I keep getting InvalidProperty exceptions in Step-2

Regards,
Tulsi</description>
		<content:encoded><![CDATA[<p>Hi Steve,</p>
<p>Thank you for your response. </p>
<p>I did that already. However after building the String array of property paths, when I tried to retrieve the property values using PropertyCollectorUtil.retrieveProperties(&#8230;) or getPropertiesByPaths(&#8230;) it throws InvalidProperty Exception. It may be due to some value related problem (null?) or the version mismatch between the API and server.</p>
<p>That&#8217;s why I got the question to see if we can validate whether a given property-path is valid or not. So that, we can avoid asking the value for that property-path when we make a call (to get the retrieveProperties or getPropertiesByPath/s).</p>
<p>In order to do this validation, if we use something like getPropertyByPath to see if it does/doesn&#8217;t throw exception then decide that it is a invalid/valid property then that will lot of calls to the server.</p>
<p>In short, I&#8217;m trying to do the following</p>
<p>Step-1: /* build property paths array using VI Java + Java-Reflection API */<br />
Step-2: /* send the property paths for HostSystem or VirtualMachine etc., and get the values in one go */<br />
Step-3: /* process the values */</p>
<p>I keep getting InvalidProperty exceptions in Step-2</p>
<p>Regards,<br />
Tulsi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Jin</title>
		<link>http://www.doublecloud.org/2010/04/invalid-property-a-trick-with-vsphere-propertycollector/comment-page-1/#comment-2954</link>
		<dc:creator>Steve Jin</dc:creator>
		<pubDate>Sun, 05 Sep 2010 06:25:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.doublecloud.org/?p=817#comment-2954</guid>
		<description>Hi Tulsi,

There is no API for this metadata. You can however get these information by using vijava + Java reflection API. For HostSystem type, you can find methods like &quot;getSummary().&quot; For each of these methods, you get the property names like summary, and the types as return of the methods. Further inspecting these property types, you can get all the sub-properties.

Hope it helps.

-Steve</description>
		<content:encoded><![CDATA[<p>Hi Tulsi,</p>
<p>There is no API for this metadata. You can however get these information by using vijava + Java reflection API. For HostSystem type, you can find methods like &#8220;getSummary().&#8221; For each of these methods, you get the property names like summary, and the types as return of the methods. Further inspecting these property types, you can get all the sub-properties.</p>
<p>Hope it helps.</p>
<p>-Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tulsi</title>
		<link>http://www.doublecloud.org/2010/04/invalid-property-a-trick-with-vsphere-propertycollector/comment-page-1/#comment-2936</link>
		<dc:creator>Tulsi</dc:creator>
		<pubDate>Fri, 03 Sep 2010 19:03:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.doublecloud.org/?p=817#comment-2936</guid>
		<description>Hi Steve,

I want to get the type information. Say, for a ManagedEntity type like &quot;HostSystem&quot; I want to know all the supported/valid property-paths like below
name
summary.config.product.apiType
summary.hardware.numNics
etc.,

Regards,
Tulsi</description>
		<content:encoded><![CDATA[<p>Hi Steve,</p>
<p>I want to get the type information. Say, for a ManagedEntity type like &#8220;HostSystem&#8221; I want to know all the supported/valid property-paths like below<br />
name<br />
summary.config.product.apiType<br />
summary.hardware.numNics<br />
etc.,</p>
<p>Regards,<br />
Tulsi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Jin</title>
		<link>http://www.doublecloud.org/2010/04/invalid-property-a-trick-with-vsphere-propertycollector/comment-page-1/#comment-2933</link>
		<dc:creator>Steve Jin</dc:creator>
		<pubDate>Fri, 03 Sep 2010 15:15:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.doublecloud.org/?p=817#comment-2933</guid>
		<description>Hi Tulsi,

Do you want to get type information or a collection of instances of a specific type?

Steve</description>
		<content:encoded><![CDATA[<p>Hi Tulsi,</p>
<p>Do you want to get type information or a collection of instances of a specific type?</p>
<p>Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tulsi</title>
		<link>http://www.doublecloud.org/2010/04/invalid-property-a-trick-with-vsphere-propertycollector/comment-page-1/#comment-2923</link>
		<dc:creator>Tulsi</dc:creator>
		<pubDate>Thu, 02 Sep 2010 20:54:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.doublecloud.org/?p=817#comment-2923</guid>
		<description>I got another question. Is there a way to get specific types of ManagedEntities that have given values for the given properties?</description>
		<content:encoded><![CDATA[<p>I got another question. Is there a way to get specific types of ManagedEntities that have given values for the given properties?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tulsi</title>
		<link>http://www.doublecloud.org/2010/04/invalid-property-a-trick-with-vsphere-propertycollector/comment-page-1/#comment-2922</link>
		<dc:creator>Tulsi</dc:creator>
		<pubDate>Thu, 02 Sep 2010 20:34:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.doublecloud.org/?p=817#comment-2922</guid>
		<description>Oops. I pasted the method-name (getPropertiesByPaths) instead of my name. :)

Regards,
Tulsi</description>
		<content:encoded><![CDATA[<p>Oops. I pasted the method-name (getPropertiesByPaths) instead of my name. <img src='http://www.doublecloud.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Regards,<br />
Tulsi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: getPropertiesByPaths</title>
		<link>http://www.doublecloud.org/2010/04/invalid-property-a-trick-with-vsphere-propertycollector/comment-page-1/#comment-2921</link>
		<dc:creator>getPropertiesByPaths</dc:creator>
		<pubDate>Thu, 02 Sep 2010 20:32:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.doublecloud.org/?p=817#comment-2921</guid>
		<description>Hi Steve,

Thanks for the wonderful API. I&#039;m still reading your VMware VI and vSphere SDK book.

I was going through the PropertyCollector and especially liked the getPropertiesByPaths method. I tried to get multiple properties in one go (and in my observation) it came out throwing InvalidProperty exception when one of the property paths was incorrect. I didn&#039;t get values for the other valid ones as well. Is there a way to check if a &quot;property path is valid&quot; before we call getPropertiesByPaths? or Is there a way to get the valid property paths for a given ManagedEntity?

Thanks you.

Regards,
Tulsi (Thulasinathan Kandasamy)</description>
		<content:encoded><![CDATA[<p>Hi Steve,</p>
<p>Thanks for the wonderful API. I&#8217;m still reading your VMware VI and vSphere SDK book.</p>
<p>I was going through the PropertyCollector and especially liked the getPropertiesByPaths method. I tried to get multiple properties in one go (and in my observation) it came out throwing InvalidProperty exception when one of the property paths was incorrect. I didn&#8217;t get values for the other valid ones as well. Is there a way to check if a &#8220;property path is valid&#8221; before we call getPropertiesByPaths? or Is there a way to get the valid property paths for a given ManagedEntity?</p>
<p>Thanks you.</p>
<p>Regards,<br />
Tulsi (Thulasinathan Kandasamy)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

