<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>VMware Communities: Message List - VM File Monitoring</title>
    <link>http://communities.vmware.com/community/vmtn/vsphere/automationtools/windows_toolkit?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Sun, 05 Oct 2008 16:54:28 GMT</pubDate>
    <generator>Clearspace 1.10.12 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2008-10-05T16:54:28Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: VM File Monitoring</title>
      <link>http://communities.vmware.com/message/1067181?tstart=0#1067181</link>
      <description>To start you of, in the VITK it is quit easy to get a list of each VM and it's corresponding .VMX file.&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;$vmsImpl = Get-VM
$vms = $vmsImpl | Get-View
foreach($vm in $vms){
  Write-Host  $vm.Name $vm.Config.Files.VmPathName
}
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Carter has recently added the function &lt;b&gt;get-tkevmx&lt;/b&gt; to the VI Toolkit Extensions.&lt;br /&gt;
See  &lt;a href="http://communities.vmware.com/message/1053450#1053450" class="jive-link-message"&gt;how can I read the contents of *.vmx file&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
From there you can get at all the entries in the .VMX file.&lt;br /&gt;
&lt;br /&gt;
How would you proceed further to validate that a raw disk is not (mis)used by multiple guests ?&lt;br /&gt;
I could imagine situations where it is intentional (MS Clustering for example).</description>
      <pubDate>Sun, 05 Oct 2008 16:54:28 GMT</pubDate>
      <author>LucD</author>
      <guid>http://communities.vmware.com/message/1067181?tstart=0#1067181</guid>
      <dc:date>2008-10-05T16:54:28Z</dc:date>
      <clearspace:dateToText>1 year, 1 month ago</clearspace:dateToText>
    </item>
    <item>
      <title>VM File Monitoring</title>
      <link>http://communities.vmware.com/message/1065782?tstart=0#1065782</link>
      <description>&lt;br /&gt;
So, heres another scripting format to get use to...&lt;br /&gt;
&lt;p /&gt;
I would like to do what I have been doing in the form of perl from the console from a VM offloading the processing from the host.&lt;br /&gt;
&lt;p /&gt;
What I am doing presently is recursivly reading through /vmfs/volumes/.. to find each vmx file and verifying that all pointers to the vmdk's etc are all readable.&lt;br /&gt;
&lt;p /&gt;
The reason I have to do this is I had someone re-present a LUN to another VM as a raw device and the device got formatted as ntfs whihmade the ESX host unable to manage the volume.&lt;br /&gt;
&lt;p /&gt;
I would have never known about this if it wasnt that one of the systems was rebooted. the power init forced esx to reread from the lun which it couldnt do. The other systems that were also on the volume but not rebooted were fine and would remain so until the systems were rebooted, power cycled, etc..&lt;br /&gt;
&lt;p /&gt;
So, now I have been told by management that I need to monitor this. &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Does anyone have a starting point for me using powershell. I have used perl for the longest time and quite good at vbs.. but powershell is all new...&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Thanks in advance!&lt;br /&gt;
&lt;p /&gt;
Bill</description>
      <pubDate>Thu, 02 Oct 2008 22:19:38 GMT</pubDate>
      <author>SetClear</author>
      <guid>http://communities.vmware.com/message/1065782?tstart=0#1065782</guid>
      <dc:date>2008-10-02T22:19:38Z</dc:date>
      <clearspace:dateToText>1 year, 1 month ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
  </channel>
</rss>

