<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1082481811727979957</id><updated>2024-09-05T15:31:32.725-04:00</updated><title type='text'>PowerCLInic</title><subtitle type='html'>PowerCLI made easy for VMware experts</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://powerclinic.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1082481811727979957/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://powerclinic.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>David Chung, VCP-NV, VCP-Cloud, VCP5-DT, VCP5, VCP4, VCP3, ITILv3, MCSE</name><uri>http://www.blogger.com/profile/09343571723520247713</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1082481811727979957.post-1000334324674963320</id><published>2012-02-21T22:18:00.004-05:00</published><updated>2012-02-21T22:35:37.460-05:00</updated><title type='text'>Mount NFS datastore using reference host - DNS or IP</title><content type='html'>Most people use host profile to configure new host servers to look like your existing host servers.&amp;nbsp; However, this method may not apply to all due to license limitation, HW configuration differences, or any other reasons.&lt;br /&gt;
&lt;br /&gt;
ICT-FREAK.NL blog had great post on using script to reference a existing host to mount NFS datastores on new ESX host server.&amp;nbsp; I needed to do exactly that so I used the script from the blog to mount NFS datastore.&amp;nbsp; It worked great but the problem was that the script does not distinguish between IP mounted datstore and DNS mounted datastore.&amp;nbsp; My reference host server was using DNS to mount NFS datastore and the script was mounting the datastore using IP on my new host server. &lt;br /&gt;
&lt;br /&gt;
Unfortunately, hosts in the cluster will treat DNS mounted datastore and IP mounted datastore as different datastore even if you are pointing to the same volume on NFS datatstore system. I decided to make some modification to the script to make it bit simpler and mount NFS datastore using exact configuration from the reference host.&lt;br /&gt;
&lt;br /&gt;
You can validate the NFS IP or DNS mount from the SSH session or powercli command.&lt;br /&gt;
esxcfg-nas -l&lt;br /&gt;
&lt;br /&gt;
Download script from &lt;a href=&quot;http://poshcode.org/get/3250&quot;&gt;HERE&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;http://PoshCode.org/embed/3250&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerclinic.blogspot.com/feeds/1000334324674963320/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://powerclinic.blogspot.com/2012/02/mount-nfs-datastore-using-reference.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1082481811727979957/posts/default/1000334324674963320'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1082481811727979957/posts/default/1000334324674963320'/><link rel='alternate' type='text/html' href='http://powerclinic.blogspot.com/2012/02/mount-nfs-datastore-using-reference.html' title='Mount NFS datastore using reference host - DNS or IP'/><author><name>David Chung, VCP-NV, VCP-Cloud, VCP5-DT, VCP5, VCP4, VCP3, ITILv3, MCSE</name><uri>http://www.blogger.com/profile/09343571723520247713</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1082481811727979957.post-4134530758704290940</id><published>2012-02-11T17:33:00.000-05:00</published><updated>2012-02-11T17:33:12.894-05:00</updated><title type='text'>vCheck6.0 is Released - PowerCLI man does it again!</title><content type='html'>Virtu-AL.NET released vCheck 6.0 on 2/8/2012.&amp;nbsp; vCheck 5.0 was&amp;nbsp;the most popular PowerCLI script of all time and 6.0 brings more improvements and same impresseive VMware&amp;nbsp;health checks. Biggest difference in this version is that all checks are written as &quot;plugins&quot; in the form of PowerCLI scripts and they&amp;nbsp;live in seperate &quot;Plugin&quot; folder.&amp;nbsp;What does this mean? It means you can easily create your own checks and easily plug in to the master health check.&amp;nbsp; Be sure to check out Al&#39;s blog.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://networkedblogs.com/tIQmk&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;http://networkedblogs.com/tIQmk&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://virtu-al.net/images/vCheck-6-released_12358/SNAGHTML583ab440_thumb.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;92&quot; src=&quot;http://virtu-al.net/images/vCheck-6-released_12358/SNAGHTML583ab440_thumb.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerclinic.blogspot.com/feeds/4134530758704290940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://powerclinic.blogspot.com/2012/02/vcheck60-is-released-powercli-man-does.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1082481811727979957/posts/default/4134530758704290940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1082481811727979957/posts/default/4134530758704290940'/><link rel='alternate' type='text/html' href='http://powerclinic.blogspot.com/2012/02/vcheck60-is-released-powercli-man-does.html' title='vCheck6.0 is Released - PowerCLI man does it again!'/><author><name>David Chung, VCP-NV, VCP-Cloud, VCP5-DT, VCP5, VCP4, VCP3, ITILv3, MCSE</name><uri>http://www.blogger.com/profile/09343571723520247713</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1082481811727979957.post-2263071798871801609</id><published>2012-02-10T21:42:00.002-05:00</published><updated>2012-02-10T22:19:47.824-05:00</updated><title type='text'>Use GUI interface to create error free CSV file for automated VM build</title><content type='html'>There are many automated VM build scripts that&amp;nbsp;uses CSV file.&amp;nbsp; I&#39;ve been doing many of these automated deployments&amp;nbsp;at work.&amp;nbsp; Have you ever had failed automation because you mispelled templates, host name, datastores, clusters, vlan, and etc?&amp;nbsp; I have.&amp;nbsp; It is huge time sink and cleanup can be painful too.&amp;nbsp;&amp;nbsp;I did a little tinkering with Primalforms to create GUI interface that pulls information directly from the vSphere and writes on to the CSV file.&amp;nbsp;There is no possible way to make spelling error other than the VM name it self.&amp;nbsp; No more 2nd guessing on your CSV file integrity.&lt;br /&gt;
&lt;br /&gt;
Once the CSV file is created, 2nd script builds the VM off the CSV and generates audit file after it completes the build.&amp;nbsp; Also, it is huge waste of datastore space when you keep different versions of templates just because you have different CPU, RAM, or disk sizes.&amp;nbsp; The script will resize CPU, RAM, Disk1 and Disk2 (or create new), puts it in to a folder or default folder, and puts the VM in to resource pool if you choose to do so.&amp;nbsp; Enough talking and more screenshots.&lt;br /&gt;
&lt;br /&gt;
Download the CSV Build GUI script &lt;a href=&quot;http://poshcode.org/get/3221&quot;&gt;HERE&lt;/a&gt;&lt;br /&gt;
Download the CSV Automated VM build script &lt;a href=&quot;http://poshcode.org/get/3222&quot;&gt;HERE&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnBU5_bHb5VNLdRDjcav2jhN-TQOvKlRm-WkgzRbxKYh_xu8tmzJuU36-k_LBm11mTtTEcWmW-3NjSjTfh0oHoSFmu2hoejkArgZUQZMEX9EvNPuGB3lexpcZN7iO2onjQJBi8cmAARvOE/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnBU5_bHb5VNLdRDjcav2jhN-TQOvKlRm-WkgzRbxKYh_xu8tmzJuU36-k_LBm11mTtTEcWmW-3NjSjTfh0oHoSFmu2hoejkArgZUQZMEX9EvNPuGB3lexpcZN7iO2onjQJBi8cmAARvOE/s320/1.png&quot; width=&quot;245&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_T2kdTvCgfTVUrKgAMKduZt1ZSnb4bTYMyP-VCZJWY_JKFqaSyt0Rtd-fZ0XIA8RBTPm_vFWxuUc4nDT02jsikpCQxkcVDGufsaZl5xBc-rxdggJslTM6i10H3ra4lmBnkVGtfgOls-gm/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_T2kdTvCgfTVUrKgAMKduZt1ZSnb4bTYMyP-VCZJWY_JKFqaSyt0Rtd-fZ0XIA8RBTPm_vFWxuUc4nDT02jsikpCQxkcVDGufsaZl5xBc-rxdggJslTM6i10H3ra4lmBnkVGtfgOls-gm/s320/2.png&quot; width=&quot;245&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiVisfztLz_pbcu6HXgCpkrkdV27WjxhnRQTS_UsZy9JwHyPGvxmbvrepRZFQVCL9pAwnHbCLgW0VnsweSpxHYQKm1OUMWHL7ylKArYzhl79LgVh6lzZK6WDUtTV00-EdW-27jxzKHAenY/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;143&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiVisfztLz_pbcu6HXgCpkrkdV27WjxhnRQTS_UsZy9JwHyPGvxmbvrepRZFQVCL9pAwnHbCLgW0VnsweSpxHYQKm1OUMWHL7ylKArYzhl79LgVh6lzZK6WDUtTV00-EdW-27jxzKHAenY/s320/3.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoaFhijazfzZWznv1_jJRg_ZcprIZjDt2wtGKO9EZiyokaGjaL6YDhjEahIeLdctkiAzGJHH0lXTpViLkyKMlMz20HAUuMtlxxEW8zdhffhurJfy-JnWyRqKcnl9eVJ_EINyPbiIUbm8qG/s1600/4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;135&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoaFhijazfzZWznv1_jJRg_ZcprIZjDt2wtGKO9EZiyokaGjaL6YDhjEahIeLdctkiAzGJHH0lXTpViLkyKMlMz20HAUuMtlxxEW8zdhffhurJfy-JnWyRqKcnl9eVJ_EINyPbiIUbm8qG/s320/4.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPoip6jnNNTpp8xU8ydrz_xm8n3klJoDgdCuHZ7V5j5ciGwRvZQGeXlJhqD2Esxwa0HUt-ZtAUWqwB3qfz0we-DtAMVjv23EWQ9NF9ZRcs_LSqf6PLWen6JgSXthqTNWtle0epozsrJwxS/s1600/5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPoip6jnNNTpp8xU8ydrz_xm8n3klJoDgdCuHZ7V5j5ciGwRvZQGeXlJhqD2Esxwa0HUt-ZtAUWqwB3qfz0we-DtAMVjv23EWQ9NF9ZRcs_LSqf6PLWen6JgSXthqTNWtle0epozsrJwxS/s320/5.png&quot; width=&quot;245&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUHJojnI1_O7Drjew-hsW2_rATTM7Jeal1eWueFwZ8trJJvZc3qcRtwVANruqED94GyRM2nyHjOe_2c-qHYU_bK_p90feZ-PVyeb9FZ_MZhDbckYCDejNI8NI1s7fJpOzLAyJPLRDcMdoB/s1600/6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUHJojnI1_O7Drjew-hsW2_rATTM7Jeal1eWueFwZ8trJJvZc3qcRtwVANruqED94GyRM2nyHjOe_2c-qHYU_bK_p90feZ-PVyeb9FZ_MZhDbckYCDejNI8NI1s7fJpOzLAyJPLRDcMdoB/s320/6.png&quot; width=&quot;245&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzrSaOa_fqTxf6GAZkM5kB3Ln8LPZ4C1XUHQj_sAWhP4kRKSjYFXNppmiIW_oOCB1NTRRl-Csyi0mWOJRJnQQCQp_LyJwSzLKMspOLVS4bJVqH5EZkDci_ChZSWOE_iEinO3XOPVPcGXWj/s1600/7.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;285&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzrSaOa_fqTxf6GAZkM5kB3Ln8LPZ4C1XUHQj_sAWhP4kRKSjYFXNppmiIW_oOCB1NTRRl-Csyi0mWOJRJnQQCQp_LyJwSzLKMspOLVS4bJVqH5EZkDci_ChZSWOE_iEinO3XOPVPcGXWj/s320/7.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigLA0fv_Kb3ERJCsh-56ygBc2m-jcfx4VtvG85BMD8siyEbMLpRq-mIiy8V_SAOx6YjTQDv4SXXBtLfaTo8nEYjGNj7w9Hrd_LhgH0eergngKAq2Vf45NmM-_3rlDoogvsOycTtjOQPKJK/s1600/8.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;287&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigLA0fv_Kb3ERJCsh-56ygBc2m-jcfx4VtvG85BMD8siyEbMLpRq-mIiy8V_SAOx6YjTQDv4SXXBtLfaTo8nEYjGNj7w9Hrd_LhgH0eergngKAq2Vf45NmM-_3rlDoogvsOycTtjOQPKJK/s320/8.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKsJE-jMBL5YD3zPTTf6vsJukQtY8bI11MPK4Kc-HtGqdAyaHlgZpGcctRyJF0qIxb_7_KZPhD8zfsjkp-oJiTqNjAaLE97CaNiWLa7lMBAUlgtg6itT6hJpfgUgNVJXaY-2kHpEQq101B/s1600/a.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;129&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKsJE-jMBL5YD3zPTTf6vsJukQtY8bI11MPK4Kc-HtGqdAyaHlgZpGcctRyJF0qIxb_7_KZPhD8zfsjkp-oJiTqNjAaLE97CaNiWLa7lMBAUlgtg6itT6hJpfgUgNVJXaY-2kHpEQq101B/s320/a.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7Y-e7i_S4m9HJjH1r240OADUIseN1h9gxicyS2H-KReYynjoOpKPiqIMa5abkHTncSukrowGYO5YYpCg9ja8YqMWB12mZvgoE_L81NvGcMaPvSIgRxKeoC5C65ykqgVAYhYD1hc1gVvuB/s1600/b.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;41&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7Y-e7i_S4m9HJjH1r240OADUIseN1h9gxicyS2H-KReYynjoOpKPiqIMa5abkHTncSukrowGYO5YYpCg9ja8YqMWB12mZvgoE_L81NvGcMaPvSIgRxKeoC5C65ykqgVAYhYD1hc1gVvuB/s320/b.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0umasZZBI5yuXfMkEPLyQEdbWbc75-V463ojeEnx_pRKzknVOix1XpZ4nUtTK2i-mmPPDdVUnWO72TH2P_F8h-Qs1h09KwkvmF-yToYXQKD7F7G8v9SMXeNYFuKStv6ynbbOeEm5KczuF/s1600/c.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;71&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0umasZZBI5yuXfMkEPLyQEdbWbc75-V463ojeEnx_pRKzknVOix1XpZ4nUtTK2i-mmPPDdVUnWO72TH2P_F8h-Qs1h09KwkvmF-yToYXQKD7F7G8v9SMXeNYFuKStv6ynbbOeEm5KczuF/s320/c.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;At the end of the build, it generates audit for VMs that were built by the script.&amp;nbsp; I canceled the VM build that was on the screenshot...&amp;nbsp; Screenshot below is from another test build that I ran.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerclinic.blogspot.com/feeds/2263071798871801609/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://powerclinic.blogspot.com/2012/02/csv-file-builder-gui-for-automated-vm.html#comment-form' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1082481811727979957/posts/default/2263071798871801609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1082481811727979957/posts/default/2263071798871801609'/><link rel='alternate' type='text/html' href='http://powerclinic.blogspot.com/2012/02/csv-file-builder-gui-for-automated-vm.html' title='Use GUI interface to create error free CSV file for automated VM build'/><author><name>David Chung, VCP-NV, VCP-Cloud, VCP5-DT, VCP5, VCP4, VCP3, ITILv3, MCSE</name><uri>http://www.blogger.com/profile/09343571723520247713</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnBU5_bHb5VNLdRDjcav2jhN-TQOvKlRm-WkgzRbxKYh_xu8tmzJuU36-k_LBm11mTtTEcWmW-3NjSjTfh0oHoSFmu2hoejkArgZUQZMEX9EvNPuGB3lexpcZN7iO2onjQJBi8cmAARvOE/s72-c/1.png" height="72" width="72"/><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1082481811727979957.post-7286571281726046825</id><published>2012-02-09T00:47:00.005-05:00</published><updated>2012-02-09T09:57:24.232-05:00</updated><title type='text'>VMware Home Lab - Save money with virtual Vyatta router and virtual ZFS storage system</title><content type='html'>I&amp;nbsp;built&amp;nbsp;VMware home lab like any other VMware gurus that loves to tinker stuff at home&amp;nbsp; It helps me to to learn new products and test my Powershell scripts without destroying production environment at work. :)&lt;br /&gt;
&lt;br /&gt;
Below are my lab equipment hardware list:&lt;br /&gt;
&lt;br /&gt;
ESXi1 &lt;br /&gt;
Dell T110 II Power Edge server&lt;br /&gt;
E31220 3.1Ghz Quad Xeon processor&lt;br /&gt;
16GB of RAM&lt;br /&gt;
Five Gigabit Ethernet, including on-board NIC&lt;br /&gt;
240GB SATA HD 7200rpm&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
ESXi2&lt;br /&gt;
Dell T110 II Power Edge server&lt;br /&gt;
E31220 3.1Ghz Quad Xeon processor&lt;br /&gt;
16GB of RAM&lt;br /&gt;
Five Gigabit Ethernet, including on-board NIC &lt;br /&gt;
240GB SATA HD 7200rpm&lt;br /&gt;
&lt;br /&gt;
ESXi3&lt;br /&gt;
Dell T110 II Power Edge server&lt;br /&gt;
E31220 3.1Ghz Quad Xeon processor&lt;br /&gt;
16GB of RAM&lt;br /&gt;
Five Gigabit Ethernet, including on-board NIC&lt;br /&gt;
Perc H200 Raid controller&amp;nbsp; (3)1TB 7200rpm drives&lt;br /&gt;
240GB SATA HD 7200rpm&lt;br /&gt;
&lt;br /&gt;
HP Procurve 1810G-24 Gigabit managed switch&lt;br /&gt;
&lt;br /&gt;
What is so great&amp;nbsp;about Dell T110 II? It is on VMware HCL.&amp;nbsp; nuff said.&lt;br /&gt;
&lt;br /&gt;
Notice I don&#39;t have Router or SAN storage unit.&amp;nbsp; I used Vyatta virtual router for all my routing needs and virtual storage system for my storage.&amp;nbsp; Vyatta router is powerful virtual router that you can download as virtual appliance or install it on Linux for FREE.&amp;nbsp; At home, I have &quot;router on the stick&quot; configuration.&lt;br /&gt;
For my shared storage, I went with Solaris VM configured with ZFS.&amp;nbsp; I didn&#39;t want to spend more money on hardware storage system so I bought H200 Perc raid card&amp;nbsp;with three 1TB drives and installed it on my ESXi host server.&amp;nbsp;&amp;nbsp;ESXi server&amp;nbsp;does not&amp;nbsp;see the raid card because it is not supported.&amp;nbsp; But, your VMs will see the card with VMDirectPath.&amp;nbsp; Solaris VM uses&amp;nbsp;VMDirectPath&amp;nbsp;mode to&amp;nbsp;access Perc H200 raid card.&amp;nbsp; Perc H200 raid card is connected to three 1TB hard drive.&amp;nbsp; With ZFS, I have NFS, SMB, and ISCSI storage running.&amp;nbsp; It also supports storage snapshots, de-dupes and replication with&amp;nbsp;fantastic performance.&amp;nbsp;If you have more of these ZFS VMs and raid cards, you can setup SRM in your home lab.&amp;nbsp; How cool is that?&amp;nbsp; It has all the enterprise features for FREE.&amp;nbsp; Just remember to check your CPU before you invest your money in virtual storage.&amp;nbsp; VMDirectPath only works wtih Xeon CPUs.&amp;nbsp; I am not sure about AMD processors...&lt;br /&gt;
&lt;br /&gt;
You can learn more about ZFS configuration from the link below. Everyone is raving about it.&lt;br /&gt;
&lt;a href=&quot;http://hardforum.com/showthread.php?t=1573272&quot;&gt;http://hardforum.com/showthread.php?t=1573272&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVUk656V12HVRypBVS4aQBUkIJCkHfA_5uRkVZiv3oJbJ15rZ5aLc7bD1ryoURvVzBRkdzRFGd8iJFXb8vpKGJEJY-JDZj3_nPqh3PrNx903OAJLuOQanVav4ad6Alws0sj9dh8SB8_pjr/s1600/esx.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;184px&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVUk656V12HVRypBVS4aQBUkIJCkHfA_5uRkVZiv3oJbJ15rZ5aLc7bD1ryoURvVzBRkdzRFGd8iJFXb8vpKGJEJY-JDZj3_nPqh3PrNx903OAJLuOQanVav4ad6Alws0sj9dh8SB8_pjr/s320/esx.png&quot; width=&quot;320px&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
Vyatta Router&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRWB2y1aoT9Hp9QXSI-InbEqoUTjPvkt2kSCQGH72aJQsdh52qxPaOX2g1MK6MBPv4btTmWAlM1urYN93Q5AULznV3aQgShhut3VyxRnGvTVd5bRdUct3gmN3WjvuUEMKfwWqjvC7LwcGo/s1600/vyatta.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320px&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRWB2y1aoT9Hp9QXSI-InbEqoUTjPvkt2kSCQGH72aJQsdh52qxPaOX2g1MK6MBPv4btTmWAlM1urYN93Q5AULznV3aQgShhut3VyxRnGvTVd5bRdUct3gmN3WjvuUEMKfwWqjvC7LwcGo/s320/vyatta.png&quot; width=&quot;306px&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;left&quot; class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg28_srHygWDk4JF6uJkkfJPmgVF_tsAF2VcBr_RMJzT1FdkR-NEfrGT59k1uYenTBiQf6WDW0c_7OdswBWcA3SSMKFw0oZBf70k1ln-1ERjfSL93shGTDWbsljYmEVun5nqenPHDiwm1Vd/s1600/vswitch.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320px&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg28_srHygWDk4JF6uJkkfJPmgVF_tsAF2VcBr_RMJzT1FdkR-NEfrGT59k1uYenTBiQf6WDW0c_7OdswBWcA3SSMKFw0oZBf70k1ln-1ERjfSL93shGTDWbsljYmEVun5nqenPHDiwm1Vd/s320/vswitch.png&quot; width=&quot;255px&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Virtual Storage System&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXjzsMXj_h7ACx9By1i7xHv3iN-7At1M-0MKHrxjqkAAnCipdTMAHrDFGkM-hpdrzNdGe9svfbtYLBEF0QoK6cR_KKDrBxBCHn4TON2TfAYHnApL6143YSN3MRL4JSOdcpq-6kblDCahNJ/s1600/Virtualstorage.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320px&quot; sda=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXjzsMXj_h7ACx9By1i7xHv3iN-7At1M-0MKHrxjqkAAnCipdTMAHrDFGkM-hpdrzNdGe9svfbtYLBEF0QoK6cR_KKDrBxBCHn4TON2TfAYHnApL6143YSN3MRL4JSOdcpq-6kblDCahNJ/s320/Virtualstorage.png&quot; width=&quot;278px&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNu4ND0zoYDCG1OAQ1vC8KbiiRe8SACitPO37SRQzLw9H9NItbOd1VZiPprKqfikNSnklt3T2j_wCq7mCewGAbsvHhJ2cSAIX2WMR1lzTtaLuVBZ-ihQwF9_efx7CUBUTQusVa1jcuW1I-/s1600/vmdirectpath.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;85px&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNu4ND0zoYDCG1OAQ1vC8KbiiRe8SACitPO37SRQzLw9H9NItbOd1VZiPprKqfikNSnklt3T2j_wCq7mCewGAbsvHhJ2cSAIX2WMR1lzTtaLuVBZ-ihQwF9_efx7CUBUTQusVa1jcuW1I-/s320/vmdirectpath.png&quot; width=&quot;320px&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9l9b1L1_8Pg7d8GNh0fen4giD48-WVZC2zhf2Zgm6MQAHQ4ee9YJQaVht7iUo-PGKvnI-aiCM5RcjvZhRtzem6t_YE-wP4-n1Ggy9MnfdduP4UYwr7B_L9KJe_6twswxltGkJP1BTW-CG/s1600/zfs.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;152px&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9l9b1L1_8Pg7d8GNh0fen4giD48-WVZC2zhf2Zgm6MQAHQ4ee9YJQaVht7iUo-PGKvnI-aiCM5RcjvZhRtzem6t_YE-wP4-n1Ggy9MnfdduP4UYwr7B_L9KJe_6twswxltGkJP1BTW-CG/s320/zfs.png&quot; width=&quot;320px&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;My Lab&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYFVwtwld_aosw5FLhkXA2EHQcPhPmwSZ2X-HUSo06TDreQMPdn9a8Xhry6deSgfOhm9U8IvO2B6N1NJXp329aCfCzbMxNji8rOI5mVKd3h7rN3aC6FQQMndD54fdnNl8mwa4SDZoLe9Mz/s1600/IMG-20120208-00491.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240px&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYFVwtwld_aosw5FLhkXA2EHQcPhPmwSZ2X-HUSo06TDreQMPdn9a8Xhry6deSgfOhm9U8IvO2B6N1NJXp329aCfCzbMxNji8rOI5mVKd3h7rN3aC6FQQMndD54fdnNl8mwa4SDZoLe9Mz/s320/IMG-20120208-00491.jpg&quot; width=&quot;320px&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerclinic.blogspot.com/feeds/7286571281726046825/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://powerclinic.blogspot.com/2012/02/vmware-home-lab-save-money-with-virtual.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1082481811727979957/posts/default/7286571281726046825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1082481811727979957/posts/default/7286571281726046825'/><link rel='alternate' type='text/html' href='http://powerclinic.blogspot.com/2012/02/vmware-home-lab-save-money-with-virtual.html' title='VMware Home Lab - Save money with virtual Vyatta router and virtual ZFS storage system'/><author><name>David Chung, VCP-NV, VCP-Cloud, VCP5-DT, VCP5, VCP4, VCP3, ITILv3, MCSE</name><uri>http://www.blogger.com/profile/09343571723520247713</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVUk656V12HVRypBVS4aQBUkIJCkHfA_5uRkVZiv3oJbJ15rZ5aLc7bD1ryoURvVzBRkdzRFGd8iJFXb8vpKGJEJY-JDZj3_nPqh3PrNx903OAJLuOQanVav4ad6Alws0sj9dh8SB8_pjr/s72-c/esx.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1082481811727979957.post-8156928110045480265</id><published>2012-02-08T14:16:00.001-05:00</published><updated>2012-02-08T14:20:25.163-05:00</updated><title type='text'>PLINK PLINK! - SSH commands over Powershell</title><content type='html'>Have you ever wanted to automate SSH commands using powershell? PLINK is the way to do it.&amp;nbsp; On Powershell script, you can use plink.exe command to pass commands to SSH session.&amp;nbsp;&amp;nbsp;This opens the door to many possibilities.&amp;nbsp; Most IT server manufacturers use SSH sessions to manage the hardware via SSH command line.&amp;nbsp; &lt;br /&gt;
I am familiar with HP server devices.&amp;nbsp; On HP servers, you can use SSH command line to connect to iLO and mount CD images via HTTP.&amp;nbsp;&amp;nbsp; You can use this technique to automate your ESX host server firmware update or even build ESX host server from customized CD ISO.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
Scenario: I am a server administrator that wants to update firmware on 12 ESX host servers in the cluster.&amp;nbsp; I want to fully automate the update process with Powershell/PowerCLI script.&amp;nbsp; I do not want any VM downtime.&amp;nbsp; I do not want endless mouse clicks...&lt;br /&gt;
&lt;br /&gt;
Requirements:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;HP licensed iLO and IP address&lt;/li&gt;
&lt;li&gt;Fully automated DRS cluster&lt;/li&gt;
&lt;li&gt;PLINK.EXE ver 0.60_q1.129&lt;/li&gt;
&lt;li&gt;Webserver with ISO image configured with correct MIME type&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
New HP firmware update DVDs are automated by default.&amp;nbsp; You can take advantage it to automate the process&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Get hosts in the cluster and use ForEach loop to put the server in maintenance mode one at a time.&lt;/li&gt;
&lt;li&gt;Use the plink command in the script to mount the firmware update ISO image on the ESX host.&lt;/li&gt;
&lt;li&gt;Reboot ESX host and Firmware DVD will kick in to automatically boot from the ISO.&amp;nbsp; It will update the firmware automatically.&lt;/li&gt;
&lt;li&gt;When ESX host comes back from disconnected status, take it out of maintenance mode and put next server in to maintenance mode.&lt;/li&gt;
&lt;li&gt;Rinse and repeat and you will have hands free firmware update automated script.&lt;/li&gt;
&lt;/ol&gt;&amp;nbsp;So, how do you use the PLINK command to connect the ILO CD?&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;http://PoshCode.org/embed/3212&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerclinic.blogspot.com/feeds/8156928110045480265/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://powerclinic.blogspot.com/2012/02/plink-plink-ssh-commands-over.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1082481811727979957/posts/default/8156928110045480265'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1082481811727979957/posts/default/8156928110045480265'/><link rel='alternate' type='text/html' href='http://powerclinic.blogspot.com/2012/02/plink-plink-ssh-commands-over.html' title='PLINK PLINK! - SSH commands over Powershell'/><author><name>David Chung, VCP-NV, VCP-Cloud, VCP5-DT, VCP5, VCP4, VCP3, ITILv3, MCSE</name><uri>http://www.blogger.com/profile/09343571723520247713</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1082481811727979957.post-2164073061441543725</id><published>2012-02-08T00:17:00.000-05:00</published><updated>2012-02-08T00:19:04.139-05:00</updated><title type='text'>VMTools Update - Many ways to cut it.</title><content type='html'>Updating VMtools can be pain the a$$.&amp;nbsp; We have 6000+ VMs and it is challenging to keep all the VMTools updated.&amp;nbsp; There are many ways to update it: Script it, do it manually, use Update Manager, or use &quot;Check and upgrade vmtools during power cycling&quot; settings in VM option.&amp;nbsp; Thankfully, we have maintenance window for many of our VMs.&amp;nbsp; I like to take advantage of these windows reboot windows&amp;nbsp;to update the vmtools.&amp;nbsp; Note that this option only works on VMs with older vmtools installed.&amp;nbsp; It will not install VMtools on VMs that does not have VMtools running.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWdQ9TDGZQ9k25lAoOifydOsTe1LhOlio-kpGN8na1TJpTQ5ZXq8d52eVSoYdNU1h8nh3XWGAZ5aBCLti0XJXB7MidG5hY8zIh6YHQAXBxFlFpfkPIP3ri3l-jlULEcN7ZaH7SS47hXD1l/s1600/vmtools1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;279&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWdQ9TDGZQ9k25lAoOifydOsTe1LhOlio-kpGN8na1TJpTQ5ZXq8d52eVSoYdNU1h8nh3XWGAZ5aBCLti0XJXB7MidG5hY8zIh6YHQAXBxFlFpfkPIP3ri3l-jlULEcN7ZaH7SS47hXD1l/s320/vmtools1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
There are so many VMs out there and I can&#39;t be selecting this options one by one.&amp;nbsp; That&#39;s where PowerCLI script comes to the rescue.&lt;br /&gt;
&lt;br /&gt;
Script below will add the option:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;http://PoshCode.org/embed/3208&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Script below will remove the option:&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;http://PoshCode.org/embed/3210&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerclinic.blogspot.com/feeds/2164073061441543725/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://powerclinic.blogspot.com/2012/02/vmtools-update-many-ways-to-cut-it.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1082481811727979957/posts/default/2164073061441543725'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1082481811727979957/posts/default/2164073061441543725'/><link rel='alternate' type='text/html' href='http://powerclinic.blogspot.com/2012/02/vmtools-update-many-ways-to-cut-it.html' title='VMTools Update - Many ways to cut it.'/><author><name>David Chung, VCP-NV, VCP-Cloud, VCP5-DT, VCP5, VCP4, VCP3, ITILv3, MCSE</name><uri>http://www.blogger.com/profile/09343571723520247713</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWdQ9TDGZQ9k25lAoOifydOsTe1LhOlio-kpGN8na1TJpTQ5ZXq8d52eVSoYdNU1h8nh3XWGAZ5aBCLti0XJXB7MidG5hY8zIh6YHQAXBxFlFpfkPIP3ri3l-jlULEcN7ZaH7SS47hXD1l/s72-c/vmtools1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1082481811727979957.post-7455405166020949585</id><published>2012-02-07T23:53:00.001-05:00</published><updated>2012-02-10T22:59:43.028-05:00</updated><title type='text'>Get-Snapshot - Are we there yet?</title><content type='html'>At my work, we are in the middle of performing datastore upgrade.&amp;nbsp; I am using storage vMotion to migrate the VMs live.&amp;nbsp; For storage vMotion to work you need to make sure CD is not attached and there are no snapshots on the VM.&amp;nbsp; On my storage vmotion script, I initially used Get-Snapshot to query the snapshots on the VM.&amp;nbsp; It took very, very long time to query the information and it was too slow for my&amp;nbsp;taste.&amp;nbsp; Thankfully,&amp;nbsp;snapshot&amp;nbsp;info&amp;nbsp;is available in API and I got the snapshot information quicker after I modified the script.&lt;br /&gt;
&lt;br /&gt;
Get-member is my favorite command for any query.&amp;nbsp; It shows you additonal extensions from most values from Get-**** commands.&amp;nbsp; If you drill down in extensiondata, you will find wealth of information about the value.&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
$vm = get-vm vm_name&lt;br /&gt;
$vm | Get-member&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDbn_xwxsV6nUGVWEVor7BrkSl3MnVHm1FYFCh-iECJ9gPRPVVGy0d5G1Rsg_M2teddjakVH9VR3woVrxvMygSCSmh7JJXLlshMPkPIYSTvX0nDuYGxRn_ZlUc5tABjDnuWyBDA_9dcd-1/s1600/getmember.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDbn_xwxsV6nUGVWEVor7BrkSl3MnVHm1FYFCh-iECJ9gPRPVVGy0d5G1Rsg_M2teddjakVH9VR3woVrxvMygSCSmh7JJXLlshMPkPIYSTvX0nDuYGxRn_ZlUc5tABjDnuWyBDA_9dcd-1/s400/getmember.png&quot; width=&quot;270&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
And finally, command below will give information if the VM I am looking at has snapshot.&lt;br /&gt;
&lt;br /&gt;
$vm.extensiondata.snapshot&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHCZhpk2YtzuAdWJeUrdd4cn_1ZXCLglfqhhrJb6uraodw-YQS8qtkk3Cnrxthb1Uatui1dU_p_GXqXsJnpgLgod8MVd3MixEYbx27cSm_UhyphenhyphendqLZBffpAou4A5P_k6B9Q41R6_BtmWBiZ/s1600/snapshot.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;51&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHCZhpk2YtzuAdWJeUrdd4cn_1ZXCLglfqhhrJb6uraodw-YQS8qtkk3Cnrxthb1Uatui1dU_p_GXqXsJnpgLgod8MVd3MixEYbx27cSm_UhyphenhyphendqLZBffpAou4A5P_k6B9Q41R6_BtmWBiZ/s320/snapshot.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
You can loop it using ForEach command to scan through the VMs.&amp;nbsp; It will be ALOT faster than using Get-SnapShot command.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerclinic.blogspot.com/feeds/7455405166020949585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://powerclinic.blogspot.com/2012/02/get-snapshot-are-we-there-yet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1082481811727979957/posts/default/7455405166020949585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1082481811727979957/posts/default/7455405166020949585'/><link rel='alternate' type='text/html' href='http://powerclinic.blogspot.com/2012/02/get-snapshot-are-we-there-yet.html' title='Get-Snapshot - Are we there yet?'/><author><name>David Chung, VCP-NV, VCP-Cloud, VCP5-DT, VCP5, VCP4, VCP3, ITILv3, MCSE</name><uri>http://www.blogger.com/profile/09343571723520247713</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDbn_xwxsV6nUGVWEVor7BrkSl3MnVHm1FYFCh-iECJ9gPRPVVGy0d5G1Rsg_M2teddjakVH9VR3woVrxvMygSCSmh7JJXLlshMPkPIYSTvX0nDuYGxRn_ZlUc5tABjDnuWyBDA_9dcd-1/s72-c/getmember.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1082481811727979957.post-4549643879965122758</id><published>2012-02-04T19:01:00.000-05:00</published><updated>2012-02-05T10:16:36.569-05:00</updated><title type='text'>Host Profile update made easy with PowerCLI GUI</title><content type='html'>&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;You don&#39;t usually associate Powershell with GUI. However, powershell is extremely .NET friendly.&amp;nbsp;&amp;nbsp;You can build pretty impressive Windows GUI interface with it. But, it is not easy&amp;nbsp;writing the GUI code&amp;nbsp;line by line in Powershell. That is why I like to use Sapien Primary Forms. You can build GUI inteface using the graphic utility and it will write the powershell script for you.&amp;nbsp; How awesome is that?&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;&lt;/div&gt;Script below is one of the GUI interface script that I wrote.&amp;nbsp; It checks host profile in the cluster and applies the host profile on&amp;nbsp;single ESX host at a time.&amp;nbsp; It does it by putting one non-compliant host in to maintenance&amp;nbsp; mode&amp;nbsp;by&amp;nbsp;evacuating the VMs using DRS and vMotion.&amp;nbsp; Once the host server is place in to maintenance mode, it applies assigned host profile and takes the server out of the maintenance mode once it is completed.&amp;nbsp; I hope to post more of my GUI scripts in the future.&lt;br /&gt;
&lt;br /&gt;
You can grab&amp;nbsp;my script&amp;nbsp;from&amp;nbsp;&lt;a href=&quot;http://poshcode.org/get/3202&quot;&gt;here.&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrRawhSYCsEBvgfF_W2v80cLKWcqMDzz-BgJ1E5as_ns77vCl34qloZimTItTxKuWsz5PEo5nTgKTlZESq_C4ZFvjdxMd9pObORv0MtBc9dorPVWtybttdxv8bfWmcKsUPr91VZGvmyWr9/s1600/hostprofile2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320px&quot; sda=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrRawhSYCsEBvgfF_W2v80cLKWcqMDzz-BgJ1E5as_ns77vCl34qloZimTItTxKuWsz5PEo5nTgKTlZESq_C4ZFvjdxMd9pObORv0MtBc9dorPVWtybttdxv8bfWmcKsUPr91VZGvmyWr9/s320/hostprofile2.png&quot; width=&quot;238px&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQKodjE8_VbuKrrZuz76OoVyXG9NalQ6edCAhuCkUbMKLdlN_a9PL-KDk4xHLkw2stF1sGodB_dmbQJQErtjCosCCwTzf7YlqyYMVj0SEqkx7h4nT_mKAPq0AZ3Sb8RH7KUlbFYCXJq42W/s1600/hostprofile3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320px&quot; sda=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQKodjE8_VbuKrrZuz76OoVyXG9NalQ6edCAhuCkUbMKLdlN_a9PL-KDk4xHLkw2stF1sGodB_dmbQJQErtjCosCCwTzf7YlqyYMVj0SEqkx7h4nT_mKAPq0AZ3Sb8RH7KUlbFYCXJq42W/s320/hostprofile3.png&quot; width=&quot;238px&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgku-hJoNuxL7xVh3uUfLJEWr4MIsSPfcMIOm2IPf0YcPogv3phYJNgm2XEoEBCQLJe4ew0OU2LbDd-BsqmNfZ7-kfC5BtO3Ti7HOotJQM05kYz8kAuhRG3gBnXAQRKdRu7J6Xvafx6c44p/s1600/hostprofile6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320px&quot; sda=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgku-hJoNuxL7xVh3uUfLJEWr4MIsSPfcMIOm2IPf0YcPogv3phYJNgm2XEoEBCQLJe4ew0OU2LbDd-BsqmNfZ7-kfC5BtO3Ti7HOotJQM05kYz8kAuhRG3gBnXAQRKdRu7J6Xvafx6c44p/s320/hostprofile6.png&quot; width=&quot;238px&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDH_gxswCUBJFkwXDAP-cHlSEbLUcmACmAShJIsJj0oYW5F9F1aUTfNpOp-ytT8zobaYbsOMeJa8y0Jt1HkLyk6Ih7yT6lEObgeu1LejoOq2riQ0l0OsmLXbQ8273rT098CMiEOLrB8QQM/s1600/hostprofile4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;51px&quot; sda=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDH_gxswCUBJFkwXDAP-cHlSEbLUcmACmAShJIsJj0oYW5F9F1aUTfNpOp-ytT8zobaYbsOMeJa8y0Jt1HkLyk6Ih7yT6lEObgeu1LejoOq2riQ0l0OsmLXbQ8273rT098CMiEOLrB8QQM/s320/hostprofile4.png&quot; width=&quot;320px&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghzog4QVqI23st7u0aml1EvUyc-XvOUPfdvzc3QZTJFB4sJhkb1KktSIsD8gfKD_2DUDdA9LNYSHjfLOr1BmfhbwapwweKag9g1snTyguk765nNjTTgvhLr6aUZXMHRQMr9KFG2cevLL49/s1600/hostprofile5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;37px&quot; sda=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghzog4QVqI23st7u0aml1EvUyc-XvOUPfdvzc3QZTJFB4sJhkb1KktSIsD8gfKD_2DUDdA9LNYSHjfLOr1BmfhbwapwweKag9g1snTyguk765nNjTTgvhLr6aUZXMHRQMr9KFG2cevLL49/s320/hostprofile5.png&quot; width=&quot;320px&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerclinic.blogspot.com/feeds/4549643879965122758/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://powerclinic.blogspot.com/2012/02/host-profile-update-made-easy-with.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1082481811727979957/posts/default/4549643879965122758'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1082481811727979957/posts/default/4549643879965122758'/><link rel='alternate' type='text/html' href='http://powerclinic.blogspot.com/2012/02/host-profile-update-made-easy-with.html' title='Host Profile update made easy with PowerCLI GUI'/><author><name>David Chung, VCP-NV, VCP-Cloud, VCP5-DT, VCP5, VCP4, VCP3, ITILv3, MCSE</name><uri>http://www.blogger.com/profile/09343571723520247713</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrRawhSYCsEBvgfF_W2v80cLKWcqMDzz-BgJ1E5as_ns77vCl34qloZimTItTxKuWsz5PEo5nTgKTlZESq_C4ZFvjdxMd9pObORv0MtBc9dorPVWtybttdxv8bfWmcKsUPr91VZGvmyWr9/s72-c/hostprofile2.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1082481811727979957.post-7125124456479649309</id><published>2012-02-04T12:51:00.000-05:00</published><updated>2012-02-04T13:32:19.861-05:00</updated><title type='text'>Automated ESX Virtual Machine VLAN test</title><content type='html'>At work we moved away from standalone servers to HP blade servers with two 10Gbe pass-thru configuration.  I recently built 5 ESXi4.1 hosts in to our growing number of ESXi clusters.  Before putting the server in to production, we let it bake in the sun for about one to two weeks.  After baking is over, we test VLAN and fault tolerance on NICs.  After countless clicks to Vmotion a VM_HLPER VM through ESXi hosts, I decided to make script for it.  Below is the script for my automated VLAN test using VM_HELPER machine.  VM_HELPER is a small VM that helps administrators run tests like this.  VM_HELPER should have access to all VM VLANs with IP address.&lt;br /&gt;
Be sure that ESX servers are not being used in production.  The script will isolate each vmnic from vSwitch0.&lt;br /&gt;
&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://PoshCode.org/embed/3201&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerclinic.blogspot.com/feeds/7125124456479649309/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://powerclinic.blogspot.com/2012/02/automated-esx-virtual-machine-vlan-test.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1082481811727979957/posts/default/7125124456479649309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1082481811727979957/posts/default/7125124456479649309'/><link rel='alternate' type='text/html' href='http://powerclinic.blogspot.com/2012/02/automated-esx-virtual-machine-vlan-test.html' title='Automated ESX Virtual Machine VLAN test'/><author><name>David Chung, VCP-NV, VCP-Cloud, VCP5-DT, VCP5, VCP4, VCP3, ITILv3, MCSE</name><uri>http://www.blogger.com/profile/09343571723520247713</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1082481811727979957.post-4844457407084637014</id><published>2012-02-02T14:55:00.000-05:00</published><updated>2012-02-02T14:55:46.733-05:00</updated><title type='text'>NFS mapping via IP or DNS?</title><content type='html'>In the place that I work, we use NFS for are datastore mounts.&amp;nbsp; We use DNS to mount our datastores (I disagree with this approach).&amp;nbsp; I was building new servers on a new physical plateform with new network configuration.&amp;nbsp; Because of this reason, I didn&#39;t want to use existing host profile to configure the server.&lt;br /&gt;
&lt;br /&gt;
Since datastore mounts will stay the same, I wanted to copy datastore mount from existing ESX host servers to new ESX servers that I built.&amp;nbsp; I was being lazy and searched for the PowerCLI script.&amp;nbsp; Google took me to ic-freak.nl PowerCLI script that will copy datastore mounts from reference hosts to the new hosts.&amp;nbsp; The problem with the script was that it will only mount the datastore using IP although reference host had DNS based mounts.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
vSphere will not think IP mounted and DNS mounted datastores are same even if they point to same datastore and folder.&amp;nbsp; vMotion will fail if you try to vmotion a VM between them.&amp;nbsp; You must either mount all datastores via IP or DNS, not both.&lt;br /&gt;
&lt;br /&gt;
Below is the script without using Get-View statement.&amp;nbsp; Without get-view, scripts are little bit faster using .extensiondata.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre  style=&quot;font-family:arial;font-size:12px;border:1px dashed #CCCCCC;width:99%;height:auto;overflow:auto;background:#f0f0f0;;background-image:URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1VmolT8V-XSgzU85sbXJi43l9-d3Y_2z4ZW_OPpy1Sak7sNLtMK-7OVANYrsZm2eixO84IGRpfXlj4z_Ls2W0Z9MwElc4r5YsTZGXJ5R3io37-67y5UGRHDJQ8I34R5aTAePNMbmUBrkp/s320/codebg.gif);padding:0px;color:#000000;text-align:left;line-height:20px;&quot;&gt;&lt;code style=&quot;color:#000000;word-wrap:normal;&quot;&gt;   
 $viserver = Read-Host &quot;Enter VI server&quot;  
 $refhost = Read-Host &quot;Enter Reference host server&quot;  
 $cluster = Read-Host &quot;Enter Cluster name that has new hosts&quot;  
   
 Connect-VIServer $viserver  
 $REFHOST = Get-VMHost $refhost  
 $NEWHosts = Get-Cluster $cluster | Get-VMHost | sort name  
   
 foreach($nfs in (Get-VMhost $REFHOST | Get-Datastore | Where {$_.type -eq &quot;NFS&quot;} )){  
   [string]$remotePath = $nfs.extensiondata.info.nas.remotepath  
   [string]$remoteHost = $nfs.extensiondata.info.nas.remotehost  
   [string]$shareName = $nfs.Name  
        
      Foreach ($NEWHost in $NEWHosts) {  
        $NEWHOST | Get-Datastore | Where {$_.Name -eq $shareName -and $_.type -eq &quot;NFS&quot;} -ErrorAction SilentlyContinue  
        If ((Get-VMHost $NEWHOST | Get-Datastore | Where {$_.Name -eq $shareName -and $_.type -eq &quot;NFS&quot;} -ErrorAction SilentlyContinue )-eq $null){  
          Write-Host &quot;NFS mount $shareName doesn&#39;t exist on $($NEWHOST)&quot; -fore Red  
          New-Datastore -Nfs -VMHost $NEWHost -Name $Sharename -Path $remotePath -NfsHost $remoteHost  | Out-Null  
        }  
      }       
 }  
&lt;/code&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerclinic.blogspot.com/feeds/4844457407084637014/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://powerclinic.blogspot.com/2012/02/nfs-mapping-via-ip-or-dns.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1082481811727979957/posts/default/4844457407084637014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1082481811727979957/posts/default/4844457407084637014'/><link rel='alternate' type='text/html' href='http://powerclinic.blogspot.com/2012/02/nfs-mapping-via-ip-or-dns.html' title='NFS mapping via IP or DNS?'/><author><name>David Chung, VCP-NV, VCP-Cloud, VCP5-DT, VCP5, VCP4, VCP3, ITILv3, MCSE</name><uri>http://www.blogger.com/profile/09343571723520247713</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1082481811727979957.post-3182229408884302849</id><published>2011-10-16T18:01:00.000-04:00</published><updated>2011-10-16T18:09:00.411-04:00</updated><title type='text'></title><content type='html'>&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;We were having performance issues wtih Netapp filer in our production environment.&amp;nbsp; We suspected that there may be problem with disk alignment (check out yellow brick&#39;s post regarding disk alignment) and VMs with high&amp;nbsp;disk I/O.&amp;nbsp;I was asked to provide VM I/O report for the VMs that are on the datastore.&amp;nbsp; Unlucky for me, our production environment is on ESX 4.0 and this version&amp;nbsp;does not have&amp;nbsp;VM I/O vSphere API.&amp;nbsp; VM I/O is availble&amp;nbsp;from ESX(i)4.1 and up.&amp;nbsp; Since Tivoli was our choice for server monitoring, I had to turn to Tivoli IT guys for help.&amp;nbsp; They were able to produce the I/O report for me.&amp;nbsp; So, IF we&amp;nbsp;were on&amp;nbsp;4.1, how would I pull the information for VM disk I/O?&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;Lets take a look what is available for Virtual Machine monitoring from vSphere API.&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;&lt;a href=&quot;http://www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/index.html&quot;&gt;http://www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/index.html&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjNRUoFWt9-3i3BajZoTpzifb2x6NSdE7GCMW1NCy96p1uNiHG63njcAUxAmWTdBKh69nFEUGNZH-aF9uNt9arxuZRRanHnpVcT935eB6X-SpMp3rq_myWSRrUxRjRbJk78KagHTKtTchr/s1600/vmiovsphereapi.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;175px&quot; oda=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjNRUoFWt9-3i3BajZoTpzifb2x6NSdE7GCMW1NCy96p1uNiHG63njcAUxAmWTdBKh69nFEUGNZH-aF9uNt9arxuZRRanHnpVcT935eB6X-SpMp3rq_myWSRrUxRjRbJk78KagHTKtTchr/s400/vmiovsphereapi.png&quot; width=&quot;400px&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjNRUoFWt9-3i3BajZoTpzifb2x6NSdE7GCMW1NCy96p1uNiHG63njcAUxAmWTdBKh69nFEUGNZH-aF9uNt9arxuZRRanHnpVcT935eB6X-SpMp3rq_myWSRrUxRjRbJk78KagHTKtTchr/s1600/vmiovsphereapi.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;Counter is type of stat you will be using to look up disk I/O.&amp;nbsp; Levels is the monitoring level that you can define on vsphere.&amp;nbsp; Level &quot;2&quot; is the minimal requirement for this counter to work.&amp;nbsp; Finally, this entity is for for virtual machine only.&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;If vSphere logging level is set to less than 1, these stat types are not available.&amp;nbsp; See examples below.&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7NX6JH9fg28TbBp9oRzWZJnG31kSK2lUZz5eqVN1uaO1eZ9FDmH4rsDAykrWD-FSMDlUEc4WD67yhOLu3EAKGMMSO7I6uHu7j26R6DWvApUtXJixptJow4a1EinvTazEV1O4pFQuCMdx8/s1600/vspherelogstat.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;142px&quot; oda=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7NX6JH9fg28TbBp9oRzWZJnG31kSK2lUZz5eqVN1uaO1eZ9FDmH4rsDAykrWD-FSMDlUEc4WD67yhOLu3EAKGMMSO7I6uHu7j26R6DWvApUtXJixptJow4a1EinvTazEV1O4pFQuCMdx8/s320/vspherelogstat.png&quot; width=&quot;320px&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;&quot;&gt;﻿&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;Get-StatType cmdlet will give you type of stats that are available for the entity.&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;You should use any vm name that is up and running in the environment.&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;SYN_TXT&quot; id=&quot;syn_row288&quot; style=&quot;padding-left: 1em; text-indent: -0.5em;&quot;&gt;&lt;div class=&quot;syntaxhighlighter  powershell&quot; id=&quot;highlighter_648136&quot;&gt;&lt;div class=&quot;bar                                                                                                    &quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;Get-StatType -entity (get-vm vmnamehere)&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiqQLnq8f48qpdcdlSqVrlPGfBmhDtrSpw36bfSv7KwasbLctghp8awwNMqMvZqwqvbLbpBPsBZtdlyRQfH5ElcmeTSNRONUuuVMuTN3t_YuGORwK0mwxiF5nYkJpcpLLXLL7F7-oFMlfs/s1600/get-gettypelevel1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; oda=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiqQLnq8f48qpdcdlSqVrlPGfBmhDtrSpw36bfSv7KwasbLctghp8awwNMqMvZqwqvbLbpBPsBZtdlyRQfH5ElcmeTSNRONUuuVMuTN3t_YuGORwK0mwxiF5nYkJpcpLLXLL7F7-oFMlfs/s1600/get-gettypelevel1.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Level 1 logging does not provide much logging and as you can see from the screenshot, virtual disk I/O is missing from the avaiable monitoring list.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcDD14secAwQj-R6eqzk3bUrc2wg52RI-uoKSIokaMyxb85fIUbnL_9sr4Uc8eWc6z9d7gN2AUOhLotxj_bPWrgfxvc75RowJms0s3q-EwKwQMJUHB6SaQ9gerRkR6OpbnWUPE1E2j57Cl/s1600/vspherelevel2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;141px&quot; oda=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcDD14secAwQj-R6eqzk3bUrc2wg52RI-uoKSIokaMyxb85fIUbnL_9sr4Uc8eWc6z9d7gN2AUOhLotxj_bPWrgfxvc75RowJms0s3q-EwKwQMJUHB6SaQ9gerRkR6OpbnWUPE1E2j57Cl/s320/vspherelevel2.png&quot; width=&quot;320px&quot; /&gt;&lt;/a&gt;&lt;/div&gt;vSphere level&amp;nbsp;2 logging will provide more performance stats at the expense of more SQL disk usage.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: powershell; title: ; notranslate&quot; title=&quot;&quot;&gt;Get-StatType -entity (get-vm vmnamehere)
&lt;/pre&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsq09dL3gOHDq9lBOgj7K1kU_Z-u4Ky2IkQU5JDyHeaKsgWTQWK7OiKCxRssXUq7iHXRSZ3tMtqVBMdizYvH3z-32diyxH0G79eoU-TPn7GGtvDdYScu4SHw_puaE0mNqA_N4OfaqNnpo-/s1600/get-gettypelevel2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;221px&quot; oda=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsq09dL3gOHDq9lBOgj7K1kU_Z-u4Ky2IkQU5JDyHeaKsgWTQWK7OiKCxRssXUq7iHXRSZ3tMtqVBMdizYvH3z-32diyxH0G79eoU-TPn7GGtvDdYScu4SHw_puaE0mNqA_N4OfaqNnpo-/s320/get-gettypelevel2.png&quot; width=&quot;320px&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Virtual disk montoring is avaiable for the VM along with alot more monitoring types.&amp;nbsp; Other monitoring types is cut-off from the screenshot because list was too long.&lt;br /&gt;
&lt;br /&gt;
So, How do we apply new found stats for virtual machines?&amp;nbsp; We use Get-Type cmdlet to get the job done.&lt;br /&gt;
Example below will pull the stat data from 10/11/2011 to today&#39;s date.&lt;br /&gt;
&lt;br /&gt;
&amp;gt;Get-Type -entity (get-vm vmnamehere) -stats virtualdisk.read.average -start 10/11/2011 -finish (get-date)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerclinic.blogspot.com/feeds/3182229408884302849/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://powerclinic.blogspot.com/2011/10/we-were-having-performance-issues-wtih.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1082481811727979957/posts/default/3182229408884302849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1082481811727979957/posts/default/3182229408884302849'/><link rel='alternate' type='text/html' href='http://powerclinic.blogspot.com/2011/10/we-were-having-performance-issues-wtih.html' title=''/><author><name>David Chung, VCP-NV, VCP-Cloud, VCP5-DT, VCP5, VCP4, VCP3, ITILv3, MCSE</name><uri>http://www.blogger.com/profile/09343571723520247713</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjNRUoFWt9-3i3BajZoTpzifb2x6NSdE7GCMW1NCy96p1uNiHG63njcAUxAmWTdBKh69nFEUGNZH-aF9uNt9arxuZRRanHnpVcT935eB6X-SpMp3rq_myWSRrUxRjRbJk78KagHTKtTchr/s72-c/vmiovsphereapi.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1082481811727979957.post-8001978081608161234</id><published>2011-10-15T12:12:00.000-04:00</published><updated>2011-10-16T10:30:05.004-04:00</updated><title type='text'>First blog post</title><content type='html'>&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;I don&#39;t know who is reading my first post.&amp;nbsp; But if you are reading this, you&#39;ve just won $10,000.&amp;nbsp; Okay, I&#39;m kidding.&amp;nbsp; On this blog, I will be focusing on VMware technologies and scripting with PowerCLI.&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Couple of months ago, &lt;/span&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;I didn&#39;t know jack about Powershell and PowerCLI.&amp;nbsp; Now, I can script with confidence and picked up few tricks and tips along the way.&amp;nbsp; Virtual, LucD, Reuben, and PowerCLI bloggers around the world inspired me to push further in to the world of scripting and automation.&amp;nbsp; I hope to share my knowledge and be helpful to you to get what you need in the world of virtualization.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerclinic.blogspot.com/feeds/8001978081608161234/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://powerclinic.blogspot.com/2011/10/first-blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1082481811727979957/posts/default/8001978081608161234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1082481811727979957/posts/default/8001978081608161234'/><link rel='alternate' type='text/html' href='http://powerclinic.blogspot.com/2011/10/first-blog-post.html' title='First blog post'/><author><name>David Chung, VCP-NV, VCP-Cloud, VCP5-DT, VCP5, VCP4, VCP3, ITILv3, MCSE</name><uri>http://www.blogger.com/profile/09343571723520247713</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>