<?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>Jonathan Marrott's VM Scripting Blog</title>
    <link>http://communities.vmware.com/blogs/froboy</link>
    <description>A swell blog containing some of the scripts I have written for VM management.</description>
    <pubDate>Thu, 27 Mar 2008 20:58:12 GMT</pubDate>
    <generator>Clearspace 1.10.12 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2008-03-27T20:58:12Z</dc:date>
    <item>
      <title>Session Keeper</title>
      <link>http://communities.vmware.com/blogs/froboy/2008/03/27/session-keeper</link>
      <description>Here's a script that will create a session, save it to a session file and keep it alive.  If at any time the session is terminated, the script will create a new session and new session file.&lt;br /&gt;
&lt;br /&gt;
Usage: SessionKeeper.pl --server &amp;lt;servername&amp;gt; --file &amp;lt;session_filename_to_be_saved&amp;gt;</description>
      <category domain="http://communities.vmware.com/blogs/froboy/tags">perl</category>
      <category domain="http://communities.vmware.com/blogs/froboy/tags">script</category>
      <category domain="http://communities.vmware.com/blogs/froboy/tags">vi3</category>
      <category domain="http://communities.vmware.com/blogs/froboy/tags">session</category>
      <pubDate>Thu, 27 Mar 2008 20:58:00 GMT</pubDate>
      <author>froboy</author>
      <guid>http://communities.vmware.com/blogs/froboy/2008/03/27/session-keeper</guid>
      <dc:date>2008-03-27T20:58:00Z</dc:date>
      <clearspace:dateToText>1 year, 8 months ago</clearspace:dateToText>
      <wfw:comment>http://communities.vmware.com/blogs/froboy/comment/session-keeper</wfw:comment>
      <wfw:commentRss>http://communities.vmware.com/blogs/froboy/feeds/comments?blogPostID=1611</wfw:commentRss>
    </item>
    <item>
      <title>List DCs and Clusters</title>
      <link>http://communities.vmware.com/blogs/froboy/2008/01/22/list-dcs-and-clusters</link>
      <description>These two scripts are both designed for enumeration of objects.  The cluster specific script will also enumerate HA properties about that cluster.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
listdcs.pl --server lewvc --username &amp;lt;username&amp;gt; --password &amp;lt;password&amp;gt;&lt;br /&gt;
listdcclusters.pl --server lewvc --username &amp;lt;username&amp;gt; --password &amp;lt;password&amp;gt; --datacenter &amp;lt;DC Name&amp;gt;</description>
      <category domain="http://communities.vmware.com/blogs/froboy/tags">vi3</category>
      <category domain="http://communities.vmware.com/blogs/froboy/tags">perl</category>
      <category domain="http://communities.vmware.com/blogs/froboy/tags">script</category>
      <category domain="http://communities.vmware.com/blogs/froboy/tags">vc</category>
      <category domain="http://communities.vmware.com/blogs/froboy/tags">cluster</category>
      <category domain="http://communities.vmware.com/blogs/froboy/tags">datacenter</category>
      <pubDate>Tue, 22 Jan 2008 20:00:00 GMT</pubDate>
      <author>froboy</author>
      <guid>http://communities.vmware.com/blogs/froboy/2008/01/22/list-dcs-and-clusters</guid>
      <dc:date>2008-01-22T20:00:00Z</dc:date>
      <clearspace:dateToText>1 year, 10 months ago</clearspace:dateToText>
      <wfw:comment>http://communities.vmware.com/blogs/froboy/comment/list-dcs-and-clusters</wfw:comment>
      <wfw:commentRss>http://communities.vmware.com/blogs/froboy/feeds/comments?blogPostID=1413</wfw:commentRss>
    </item>
    <item>
      <title>VI Custom Fields</title>
      <link>http://communities.vmware.com/blogs/froboy/2008/01/07/vi-custom-fields</link>
      <description>I decided to dabble into custom fields.  I have scripts to add, remove, rename and set custom fields.  I also have a cool script to export your custom fields to a CSV file and vice versa.&lt;br /&gt;
&lt;br /&gt;
Prerequisites:&lt;br /&gt;
VI 3.5 (VI API 2.5.0)&lt;br /&gt;
Latest VI Perl Toolkit (VMware VI Remote CLI will install this)&lt;br /&gt;
Text::CSV_XS (Perl module for CSVs)&lt;br /&gt;
Text::CSV::Simple (Perl module for CSVs)&lt;br /&gt;
&lt;br /&gt;
Scripts:&lt;br /&gt;
addvifield.pl - Adds Custom Field to VI&lt;br /&gt;
cf2csv.pl - Exports Custom Fields to CSV File&lt;br /&gt;
csv2cf.pl - Imports CSV File to Custom Fields (Note: Custom Fields must already be created)&lt;br /&gt;
readdcfields.pl - Reads all Custom Fields from every VM in a datacenter&lt;br /&gt;
readvmfield.pl - Reads a single Custom Fields from a VM&lt;br /&gt;
readvmfields.pl - Reads all Custom Fields from a VM&lt;br /&gt;
removevifield.pl - Removes a Custom Fields from VI&lt;br /&gt;
renamevifield.pl - Renames a Custom Field in VI&lt;br /&gt;
setvmfield.pl - Assigns a value to a Custom Field in a VM&lt;br /&gt;
setdctools.pl - Reads VMWare Tools Version From Each VM In A Datacenter And Applies It To The Custom Field "Tools Version"</description>
      <category domain="http://communities.vmware.com/blogs/froboy/tags">csv</category>
      <category domain="http://communities.vmware.com/blogs/froboy/tags">vi3</category>
      <category domain="http://communities.vmware.com/blogs/froboy/tags">script</category>
      <category domain="http://communities.vmware.com/blogs/froboy/tags">perl</category>
      <category domain="http://communities.vmware.com/blogs/froboy/tags">spreadsheet</category>
      <category domain="http://communities.vmware.com/blogs/froboy/tags">custom</category>
      <category domain="http://communities.vmware.com/blogs/froboy/tags">fields</category>
      <pubDate>Mon, 07 Jan 2008 15:45:00 GMT</pubDate>
      <author>froboy</author>
      <guid>http://communities.vmware.com/blogs/froboy/2008/01/07/vi-custom-fields</guid>
      <dc:date>2008-01-07T15:45:00Z</dc:date>
      <clearspace:dateToText>1 year, 10 months ago</clearspace:dateToText>
      <wfw:comment>http://communities.vmware.com/blogs/froboy/comment/vi-custom-fields</wfw:comment>
      <wfw:commentRss>http://communities.vmware.com/blogs/froboy/feeds/comments?blogPostID=1373</wfw:commentRss>
    </item>
  </channel>
</rss>

