<?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>Nenad Vijatov &#187; VMware ESX</title>
	<atom:link href="http://blog.vijatov.com/tag/vmware_esx/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.vijatov.com</link>
	<description>In a few words.</description>
	<lastBuildDate>Thu, 05 Aug 2010 23:14:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>VMware Tools &#8211; bulk update Windows VMs</title>
		<link>http://blog.vijatov.com/2009/02/13/vmware-tools-bulk-update-windows-vms/</link>
		<comments>http://blog.vijatov.com/2009/02/13/vmware-tools-bulk-update-windows-vms/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 10:13:23 +0000</pubDate>
		<dc:creator>Nenad Vijatov</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[VMware ESX]]></category>

		<guid isPermaLink="false">http://blog.vijatov.com/?p=56</guid>
		<description><![CDATA[If you need to update VMware tools on all Windows (Server 2003, XP) VMs on one or more VMware ESX server, you need to do that with command &#60;i&#62;vmware-vmupgrade.exe&#60;/i&#62;. From my point of view this command is insecure, so I deiced to create a &#60;i&#62;bash&#60;/i&#62; script for this job using GREAT utility &#60;b&#62;vimsh&#60;/b&#62;. Script looks [...]]]></description>
			<content:encoded><![CDATA[<p>If you need to update VMware tools on all Windows (Server 2003, XP) VMs on one or more VMware ESX server, you need to do that with command &lt;i&gt;vmware-vmupgrade.exe&lt;/i&gt;.<br />
From my point of view this command is insecure, so I deiced to create a &lt;i&gt;bash&lt;/i&gt; script for this job using GREAT utility &lt;b&gt;vimsh&lt;/b&gt;.</p>
<p>Script looks like this &#8230;<br />
<span id="more-56"></span>#!/bin/bash<br />
#Automatic Upgrade VMware Tools &#8212; Nenad Vijatov &#8212; v.0.6</p>
<p>#Define variables<br />
TEMPFILE=/root/temp_vmlist<br />
RESULTFILE=/root/temp_vmupgrade</p>
<p>#Fill TEMPFILE<br />
vmware-vim-cmd vmsvc/getallvms &gt; $TEMPFILE</p>
<p>#Lets filter TEMPFILE<br />
for a in `awk &#8216;{if ($5 == &#8220;winNetStandardGuest&#8221; || $5 == &#8220;winNetEnterpriseGuest&#8221; || $5 == &#8220;winXPProGuest&#8221;) print $1}&#8217; $TEMPFILE`<br />
do<br />
#Take action on each VM<br />
VMSTATE=`vmware-vim-cmd vmsvc/power.getstate $a | grep Powered | awk &#8216;{print $2}&#8217;`<br />
echo &#8220;VM with ID $a is powered $VMSTATE&#8221; &gt;&gt; $RESULTFILE<br />
while [ $VMSTATE == "off" ]<br />
do<br />
echo &#8220;Powering on VM with ID $a &#8230;&#8221; &gt;&gt; $RESULTFILE<br />
vmware-vim-cmd vmsvc/power.on $a<br />
sleep 30<br />
VMSTATE=`vmware-vim-cmd vmsvc/power.getstate $a | grep Powered | awk &#8216;{print $2}&#8217;`<br />
done<br />
echo &#8220;Upgrading VM with ID $a &#8230;&#8221; &gt;&gt; $RESULTFILE<br />
vmware-vim-cmd vmsvc/tools.upgrade $a<br />
done<br />
#EOF</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vijatov.com/2009/02/13/vmware-tools-bulk-update-windows-vms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>esxtop</title>
		<link>http://blog.vijatov.com/2009/01/08/esxtop/</link>
		<comments>http://blog.vijatov.com/2009/01/08/esxtop/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 12:30:18 +0000</pubDate>
		<dc:creator>Nenad Vijatov</dc:creator>
				<category><![CDATA[VMware ESX]]></category>

		<guid isPermaLink="false">http://blog.vijatov.com/?p=47</guid>
		<description><![CDATA[Few months ago I first read about this command and I forget where &#8230; Command is like top Linux command, but with much more information. esxtop allows you monitoring and collecting of data for all system resources about VI. More about esxtop statistics you can find at VMware community.]]></description>
			<content:encoded><![CDATA[<p>Few months ago I first read about this command and I forget where &#8230; Command is like <strong>top</strong> Linux command, but with much more information.<br />
<strong>esxtop</strong> allows you monitoring and collecting of data for all system resources about VI.</p>
<p>More about <strong>esxtop</strong> statistics you can find at <a href="http://communities.vmware.com/docs/DOC-9279" target="_blank">VMware community</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vijatov.com/2009/01/08/esxtop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

