<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>XML Archives - LucD notes</title>
	<atom:link href="https://www.lucd.info/tag/xml/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.lucd.info/tag/xml/</link>
	<description>My PowerShell ramblings</description>
	<lastBuildDate>Wed, 08 Apr 2020 09:47:12 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.9</generator>

<image>
	<url>https://www.lucd.info/wp-content/uploads/2018/12/cropped-120px-Tibetan_Dharmacakra-32x32.png</url>
	<title>XML Archives - LucD notes</title>
	<link>https://www.lucd.info/tag/xml/</link>
	<width>32</width>
	<height>32</height>
</image> 
<atom:link rel="hub" href="https://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="https://pubsubhubbub.superfeedr.com"/><atom:link rel="hub" href="https://websubhub.com/hub"/>	<item>
		<title>Automating Converter Enterprise jobs with PS</title>
		<link>https://www.lucd.info/2009/09/20/automating-convertor-enterprise-jobs-with-ps/</link>
					<comments>https://www.lucd.info/2009/09/20/automating-convertor-enterprise-jobs-with-ps/#comments</comments>
		
		<dc:creator><![CDATA[LucD]]></dc:creator>
		<pubDate>Sun, 20 Sep 2009 20:55:13 +0000</pubDate>
				<category><![CDATA[Converter]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[XML]]></category>
		<guid isPermaLink="false">http://lucd.info/?p=384</guid>

					<description><![CDATA[With VMware vCenter you get a feature-rich free product called VMware vCenter Converter. [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>With <a href="https://www.vmware.com/products/vcenter-server" target="_blank">VMware vCenter</a> you get a feature-rich free product called <a href="https://www.vmware.com/products/converter" target="_blank">VMware vCenter Converter</a>. One of the things you can do with the Convertor product is to read disk images created by <a href="https://www.vmware.com/products/vi/consolidated_backup.html" target="_blank">VMware Consolidated Backup</a> and <strong>import</strong> them in a <strong>vCenter</strong>. In the current release the Convertor doesn&#8217;t come with any support for the PowerCLI automation tools but that doesn&#8217;t mean we can&#8217;t use the Convertor from our PowerShell scripts.<span id="more-384"></span>In our environment we needed to be able to import VCB disk images of guests into our Disaster Recovery center, which is build around a number of ESXi servers, each using one or more local datastores . Since we do this at regular intervals (more than once !), we wanted to automate this process.</p>
<p><a rel="attachment wp-att-390" href="https://lucd.info/?attachment_id=390"><img fetchpriority="high" decoding="async" class="aligncenter size-full wp-image-390" title="I2V-script" src="https://lucd.info/wp-content/uploads/2009/09/I2V-script.png" alt="I2V-script" width="664" height="322" srcset="https://www.lucd.info/wp-content/uploads/2009/09/I2V-script.png 830w, https://www.lucd.info/wp-content/uploads/2009/09/I2V-script-300x145.png 300w" sizes="(max-width: 664px) 100vw, 664px" /></a>The Converter product comes with a number of DOS commands. We used the <strong>converter-tool</strong> command in our script. Looking at the syntax, we see that the command requires an XML file as input for the <strong>-jobsubmit</strong> parameter.</p>
<p><a rel="attachment wp-att-389" href="https://lucd.info/?attachment_id=389"><img decoding="async" class="aligncenter size-full wp-image-389" title="converter-syntax" src="https://lucd.info/wp-content/uploads/2009/09/converter-syntax.png" alt="converter-syntax" width="643" height="509" srcset="https://www.lucd.info/wp-content/uploads/2009/09/converter-syntax.png 643w, https://www.lucd.info/wp-content/uploads/2009/09/converter-syntax-300x237.png 300w" sizes="(max-width: 643px) 100vw, 643px" /></a></p>
<p>The layout of the XML file is, afaik, not documented, but by looking at the generated XML files from successful Converter jobs it was not too difficult to deduce most of the required nodes and their attributes.</p>
<p><script src="https://PoshCode.org/embed/1331" type="text/javascript"></script></p>
<p>The script has some additional features:</p>
<ul>
<li>The imported guests are connected to a specified portgroup. We use this to connect these guests to an isolated portgroup, so that an accidental start of the guest doesn&#8217;t cause any problems.</li>
<li>The name of the imported guests contains the time stamp. This allows us to generate unique names and allows us to clean up older imports.</li>
<li>The script has a very simple target selection algorithm. It looks for the ESXi server that has the most free disk space on it&#8217;s local datastore.</li>
<li>The generated XML file, which is used for the Converter job, is saved for reference.</li>
</ul>
<p>The script shows a very specific case of using the Converter from a PowerShell script, but I&#8217;m sure it can easily be adapted for other types of Converter jobs. Enjoy !</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.lucd.info/2009/09/20/automating-convertor-enterprise-jobs-with-ps/feed/</wfw:commentRss>
			<slash:comments>11</slash:comments>
		
		
			</item>
		<item>
		<title>TA2650 scripts &#8211; Part 3 &#8211; Checking cluster node configurations</title>
		<link>https://www.lucd.info/2009/09/09/ta2650-scripts-part-3-checking-cluster-node-configurations/</link>
					<comments>https://www.lucd.info/2009/09/09/ta2650-scripts-part-3-checking-cluster-node-configurations/#comments</comments>
		
		<dc:creator><![CDATA[LucD]]></dc:creator>
		<pubDate>Tue, 08 Sep 2009 23:31:05 +0000</pubDate>
				<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Profile]]></category>
		<category><![CDATA[TA2650]]></category>
		<category><![CDATA[XML]]></category>
		<guid isPermaLink="false">http://lucd.info/?p=162</guid>

					<description><![CDATA[With the cluster profile XML file created in TA2650 scripts – Part 1 [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>With the cluster profile XML file created in <a href="https://lucd.info/2009/09/05/ta2650-scripts-part-1-profiling-your-vsphere-environment/" target="_blank">TA2650 scripts – Part 1  – Profiling your vSphere environment</a> you can verify the configuration of the nodes against a reference node.</p>
<p><span id="more-162"></span>In the XML file the configuration settings of each node are present in the <strong>Config</strong> nodes.</p>
<p><img decoding="async" class="aligncenter size-full wp-image-173" title="cluster-node-compare" src="https://lucd.info/wp-content/uploads/2009/09/cluster-node-compare.png" alt="cluster-node-compare" width="542" height="149" srcset="https://www.lucd.info/wp-content/uploads/2009/09/cluster-node-compare.png 542w, https://www.lucd.info/wp-content/uploads/2009/09/cluster-node-compare-300x82.png 300w" sizes="(max-width: 542px) 100vw, 542px" /></p>
<p>With the following script you select one of the nodes as the <strong>reference node</strong> and the script will then compare the <strong>config properties</strong> of all the <strong>other nodes</strong> against this reference node.</p>
<p><script src="https://PoshCode.org/embed/1313" type="text/javascript"></script></p>
<p>The script will produce a CSV file that contains all differences.</p>
<p><strong>Note</strong> that a lot of these differences are quite obvious, like for example hostname, MAC address&#8230;, and can thus be safely ignored during the review.</p>
<p>The CSV file has this layout</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-167" title="cluster-node-compare-2" src="https://lucd.info/wp-content/uploads/2009/09/cluster-node-compare-2-1024x213.png" alt="cluster-node-compare-2" width="1024" height="213" srcset="https://www.lucd.info/wp-content/uploads/2009/09/cluster-node-compare-2-1024x213.png 1024w, https://www.lucd.info/wp-content/uploads/2009/09/cluster-node-compare-2-300x62.png 300w, https://www.lucd.info/wp-content/uploads/2009/09/cluster-node-compare-2.png 1069w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>The first column, named Path, is the XMLPath to the property in the XML file.</p>
<p>The 2nd and 3rd columns show the name of the reference node (RefHost) and the name of the node (CmpHost) that was compared against the reference node.</p>
<p>The Name column shows the name of the property.</p>
<p>The RefValue and CmpValue show the property values that were found on the reference node and on the node that was compared against the reference node.</p>
<p>The AttributeDiscrepancy and the ChildrenDiscrepancy columns are Boolean flags that show if the script at one point lost synchronisation between the RefHost and the CmpHost for the attributes or for the child nodes.</p>
<p>As an example of the possible benefit of such a comparison, I discovered that on my test environment the CSV file showed a difference for the <strong>Inventory/Cluster/Host/Config/Firewall/Ruleset</strong> <strong>Count</strong> between the two cluster nodes.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-170" title="cluster-node-compare-3" src="https://lucd.info/wp-content/uploads/2009/09/cluster-node-compare-3-1024x213.png" alt="cluster-node-compare-3" width="1024" height="213" srcset="https://www.lucd.info/wp-content/uploads/2009/09/cluster-node-compare-3-1024x213.png 1024w, https://www.lucd.info/wp-content/uploads/2009/09/cluster-node-compare-3-300x62.png 300w, https://www.lucd.info/wp-content/uploads/2009/09/cluster-node-compare-3.png 1069w" sizes="auto, (max-width: 1024px) 100vw, 1024px" />This indicated that the firewall rules on both ESX nodes were not the same. And indeed after further checking I discovered that I forgot to active a firewall rule on the 2nd node.</p>
<p>Note that current script is not too intelligent. It will not try to synchronise between the two nodes when one of the nodes is missing an entry. As an example you will notice that the firewall rules will run async from a certain point onwards. On the other hand this also gives you a good indication where the problem is located. In this case the <strong>aam</strong> firewall rule was missing on the 2nd node.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.lucd.info/2009/09/09/ta2650-scripts-part-3-checking-cluster-node-configurations/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>TA2650 scripts &#8211; Part 2  &#8211; Using the profile XML file for SDK programming</title>
		<link>https://www.lucd.info/2009/09/08/ta2650-scripts-part-1-using-the-profile-xml-file-for-sdk-programming/</link>
					<comments>https://www.lucd.info/2009/09/08/ta2650-scripts-part-1-using-the-profile-xml-file-for-sdk-programming/#comments</comments>
		
		<dc:creator><![CDATA[LucD]]></dc:creator>
		<pubDate>Mon, 07 Sep 2009 23:41:55 +0000</pubDate>
				<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Profile]]></category>
		<category><![CDATA[TA2650]]></category>
		<category><![CDATA[SDK]]></category>
		<category><![CDATA[XML]]></category>
		<guid isPermaLink="false">http://lucd.info/?p=106</guid>

					<description><![CDATA[The XML file that can be created with the script from TA2650 scripts [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>The XML file that can be created with the script from <a href="https://lucd.info/2009/09/05/ta2650-scripts-part-1-profiling-your-vsphere-environment/" target="_blank">TA2650 scripts – Part 1  – Profiling your vSphere environment</a> can also be used to assist you when you need to use the SDK.<span id="more-106"></span></p>
<p>As an example let&#8217;s take the &#8220;<strong>Enable VM Monitoring</strong>&#8221; option for a cluster.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-130" title="DRS-VM-monitoring" src="https://lucd.info/wp-content/uploads/2009/09/DRS-VM-monitoring1.png" alt="DRS-VM-monitoring" width="667" height="181" srcset="https://www.lucd.info/wp-content/uploads/2009/09/DRS-VM-monitoring1.png 667w, https://www.lucd.info/wp-content/uploads/2009/09/DRS-VM-monitoring1-300x81.png 300w" sizes="auto, (max-width: 667px) 100vw, 667px" /></p>
<p>This option belongs to the <strong>HA</strong> settings of a cluster. The only fact you have to know, is that the HA settings of a cluster are stored under the DAS properties in the SDK. And that is most probably the case for historical reasons.</p>
<p>In the XML file that contains the cluster&#8217;s profile we can easily find the property.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-133" title="DAS-VM-monitoring-1" src="https://lucd.info/wp-content/uploads/2009/09/DAS-VM-monitoring-12.png" alt="DAS-VM-monitoring-1" width="708" height="328" srcset="https://www.lucd.info/wp-content/uploads/2009/09/DAS-VM-monitoring-12.png 708w, https://www.lucd.info/wp-content/uploads/2009/09/DAS-VM-monitoring-12-300x138.png 300w" sizes="auto, (max-width: 708px) 100vw, 708px" /></p>
<p>The next step is to find out how we can change the property.A method I use regularly, and which works in most cases, is the following.</p>
<p>The <strong>VmMonitoring</strong> property belongs to the <strong>ClusterDasConfigInfo</strong> object as can be seen in the <strong>Type</strong> attribute..</p>
<p>In the <a href="https://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/index.html" target="_blank">vSphere API Reference Documentation</a> we go, via the Data Object Types, to the <a href="https://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.cluster.DasConfigInfo.html" target="_blank">ClusterDasConfigInfo</a> object. At the top of the right panel we see that the object is a property of the <a href="https://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.cluster.ConfigSpec.html#field_detail" target="_blank">ClusterConfigSpec</a>.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-119" title="DAS-VM-monitoring-2" src="https://lucd.info/wp-content/uploads/2009/09/DAS-VM-monitoring-2.png" alt="DAS-VM-monitoring-2" width="653" height="197" srcset="https://www.lucd.info/wp-content/uploads/2009/09/DAS-VM-monitoring-2.png 653w, https://www.lucd.info/wp-content/uploads/2009/09/DAS-VM-monitoring-2-300x90.png 300w" sizes="auto, (max-width: 653px) 100vw, 653px" /></p>
<p>Via the hyperlink we go to the description of that object. On the reference page we see that the <a href="https://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.cluster.ConfigSpec.html#field_detail" target="_blank">ClusterConfigSpec</a> object is a parameter to the <a href="https://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.ClusterComputeResource.html#reconfigure" target="_blank">ReconfigureCluster_Task</a> method.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-121" title="DAS-VM-monitoring-3" src="https://lucd.info/wp-content/uploads/2009/09/DAS-VM-monitoring-31.png" alt="DAS-VM-monitoring-3" width="791" height="189" srcset="https://www.lucd.info/wp-content/uploads/2009/09/DAS-VM-monitoring-31.png 791w, https://www.lucd.info/wp-content/uploads/2009/09/DAS-VM-monitoring-31-300x71.png 300w" sizes="auto, (max-width: 791px) 100vw, 791px" /></p>
<p>The <a href="https://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.ClusterComputeResource.html#reconfigure" target="_blank">ReconfigureCluster_Task</a> page contains a message that states we should use the <a href="https://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.ComputeResource.html#reconfigureEx" target="_blank">ReconfigureComputeResource_Task</a> since API 2.5. Since we are working in a vSphere environment, which is <strong>API 4.0</strong>, we go for the new method.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-123" title="DAS-VM-monitoring-4" src="https://lucd.info/wp-content/uploads/2009/09/DAS-VM-monitoring-41.png" alt="DAS-VM-monitoring-4" width="563" height="147" srcset="https://www.lucd.info/wp-content/uploads/2009/09/DAS-VM-monitoring-41.png 563w, https://www.lucd.info/wp-content/uploads/2009/09/DAS-VM-monitoring-41-300x78.png 300w" sizes="auto, (max-width: 563px) 100vw, 563px" />On the reference page for the <a href="https://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.ComputeResource.html#reconfigureEx" target="_blank">ReconfigureComputeResource_Task</a> method we see which parameters we will need.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-124" title="DAS-VM-monitoring-5" src="https://lucd.info/wp-content/uploads/2009/09/DAS-VM-monitoring-5.png" alt="DAS-VM-monitoring-5" width="963" height="201" srcset="https://www.lucd.info/wp-content/uploads/2009/09/DAS-VM-monitoring-5.png 963w, https://www.lucd.info/wp-content/uploads/2009/09/DAS-VM-monitoring-5-300x62.png 300w" sizes="auto, (max-width: 963px) 100vw, 963px" /></p>
<p>How to call _Task methods from the SDK will be the subject of another post.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.lucd.info/2009/09/08/ta2650-scripts-part-1-using-the-profile-xml-file-for-sdk-programming/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>TA2650 scripts &#8211; Part 1 &#8211; Profiling your vSphere environment</title>
		<link>https://www.lucd.info/2009/09/05/ta2650-scripts-part-1-profiling-your-vsphere-environment/</link>
					<comments>https://www.lucd.info/2009/09/05/ta2650-scripts-part-1-profiling-your-vsphere-environment/#comments</comments>
		
		<dc:creator><![CDATA[LucD]]></dc:creator>
		<pubDate>Sat, 05 Sep 2009 21:15:02 +0000</pubDate>
				<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Profile]]></category>
		<category><![CDATA[TA2650]]></category>
		<category><![CDATA[XML]]></category>
		<guid isPermaLink="false">http://lucd.info/?p=7</guid>

					<description><![CDATA[Scripts from TA2650 - Profiling your vSphere environment.]]></description>
										<content:encoded><![CDATA[<p>During VMworld 2009 in San Francisco, Hal Rottenberg and myself presented a session called &#8220;TA2650 &#8211; Take PowerCLI to the Next Level&#8221;. During the session we promised to publish the scripts we showed (and those we did not show due to lack of time).</p>
<p>This is part 1 of these scripts. This script shows and explains how I used PowerShell to export the configuration of my vSphere environment, or part of it, to an <a href="https://en.wikipedia.org/wiki/Xml" target="_blank" rel="noopener noreferrer">XML</a> file.<span id="more-7"></span></p>
<p>If you investigate any of the Managed Objects which are based on the <a href="https://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/vim.ManagedEntity.html" target="_blank" rel="noopener noreferrer">ManagedEntity</a> object, in your vSPhere environment, you will notice that all configuration parameters are contained in an object under the property called <strong>configuration</strong> or <strong>configurationEx</strong>.</p>
<p>For example within a <strong>HostSystem</strong> object there is a <strong>configuration</strong> object.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-55" title="hostsystem-config" src="https://lucd.info/wp-content/uploads/2009/09/hostsystem-config2-1024x288.png" alt="hostsystem-config" width="1024" height="288" srcset="https://www.lucd.info/wp-content/uploads/2009/09/hostsystem-config2-1024x288.png 1024w, https://www.lucd.info/wp-content/uploads/2009/09/hostsystem-config2-300x84.png 300w, https://www.lucd.info/wp-content/uploads/2009/09/hostsystem-config2.png 1026w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Within a <strong>ComputeResource</strong> object there is since API 2.5 a <strong>configurationEx</strong> object.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-58" title="compute-configEx" src="https://lucd.info/wp-content/uploads/2009/09/compute-configEx2-1024x223.png" alt="compute-configEx" width="1024" height="223" srcset="https://www.lucd.info/wp-content/uploads/2009/09/compute-configEx2-1024x223.png 1024w, https://www.lucd.info/wp-content/uploads/2009/09/compute-configEx2-300x65.png 300w, https://www.lucd.info/wp-content/uploads/2009/09/compute-configEx2.png 1131w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>If we could &#8220;dump&#8221; the content in a usable format to an external file, we would have an exact description of the Managed Object on file.</p>
<p>That&#8217;s when I came up with the following script. It will start from an vSphere inventory location, and from there it will write all the configuration parameters to an XML file.</p>
<p>The concept of recursively investigating all the properties of a managed object has been done before, in a somewhat different form, by <a href="https://peetersonline.nl/" target="_blank" rel="noopener noreferrer">Hugo Peeters</a>. See his <a title="Permanent Link: List ALL properties and subproperties of a variable in Powershell" rel="bookmark" href="https://www.peetersonline.nl/index.php/powershell/list-all-properties-and-subproperties-of-a-variable-in-powershell/">List ALL properties and subproperties of a variable in Powershell</a> article.</p>
<p>The following script exports all properties to an XML file.</p>
<p><script type="text/javascript" src="https://PoshCode.org/embed/1312"></script></p>
<p>The script takes a number of parameters that determine what will be exported to the XML file.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-176" title="vProfile-params" src="https://lucd.info/wp-content/uploads/2009/09/vProfile-params.png" alt="vProfile-params" width="868" height="135" srcset="https://www.lucd.info/wp-content/uploads/2009/09/vProfile-params.png 868w, https://www.lucd.info/wp-content/uploads/2009/09/vProfile-params-300x46.png 300w" sizes="auto, (max-width: 868px) 100vw, 868px" /></p>
<p>Looking at resulting XML file (which can be quite big depending on the size of your vSPhere environment), you notice that the <strong>Hosts &amp; Clusters</strong> view on the cluster is present. For each of the cluster elements the XML file also contains all the configuration properties.<br />
<img loading="lazy" decoding="async" class="aligncenter size-full wp-image-94" title="clus1-xml" src="https://lucd.info/wp-content/uploads/2009/09/clus1-xml.png" alt="clus1-xml" width="559" height="162" srcset="https://www.lucd.info/wp-content/uploads/2009/09/clus1-xml.png 559w, https://www.lucd.info/wp-content/uploads/2009/09/clus1-xml-300x86.png 300w" sizes="auto, (max-width: 559px) 100vw, 559px" /></p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;span style=&quot;text-decoration: underline;&quot;&gt;Note&lt;/span&gt;: I use &lt;a href=&quot;http://www.xmlpad.com/xmlpad3.htm&quot;&gt;XMLPad 3&lt;/a&gt; to browse the XML files. The screenshot shows the Table View.</pre><p>In the Config and ConfigurationEx nodes you can find all the properties of these objects. This gives you an easy and offline method if looking up specific settings and configuration options for the cluster.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-102" title="ntp-config" src="https://lucd.info/wp-content/uploads/2009/09/ntp-config4.png" alt="ntp-config" width="585" height="290" srcset="https://www.lucd.info/wp-content/uploads/2009/09/ntp-config4.png 585w, https://www.lucd.info/wp-content/uploads/2009/09/ntp-config4-300x148.png 300w" sizes="auto, (max-width: 585px) 100vw, 585px" /></p>
<p>The previous screenshot shows how you can, for example,  easily <strong>report</strong> on the <a href="https://en.wikipedia.org/wiki/Network_Time_Protocol" target="_blank" rel="noopener noreferrer">NTP</a> settings of an ESX server.</p>
<p>Another useful feature is that these XML files allow you to keep an <strong>audit track</strong> of the configuration of your vSphere environment. There are a number of 3rd party tools available that allow you compare XML files.</p>
<p>The XML file also tells you what <strong>type</strong> a specific property is. For arrays the script uses a special convention to show the array elements. Since an XML nodename can&#8217;t contain square brackets, the array elements are shown as <strong>Server-0-</strong> instead of <strong>Server[0]</strong>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.lucd.info/2009/09/05/ta2650-scripts-part-1-profiling-your-vsphere-environment/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
