<?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: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-6460429891649965269</id><updated>2012-01-31T11:56:14.657-08:00</updated><category term='vacation shuswap'/><category term='vmware script nfs'/><category term='games evil corporate steam valve securom'/><category term='vmware ranger sccm mac'/><category term='HP OA LDAP AD'/><category term='Cisco VMware OTV Jumbo Frames MTU'/><category term='vmware script lun path netapp'/><category term='nfs thin provision LUN'/><category term='symantec error success evault email'/><title type='text'>IT Angst</title><subtitle type='html'>VMware, general IT, and dumb user stuff</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>29</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-4980090256397420089</id><published>2012-01-31T11:52:00.000-08:00</published><updated>2012-01-31T11:56:14.678-08:00</updated><title type='text'>VCP 5 exam thoughts</title><content type='html'>Just passed my VCP 5 this morning. Was pretty tough for me as there were quite a few questions pertaining to vDSwitches, and my experience set is almost entirely Nexus 1000v based, so I"m sure I got those wrong.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Almost no configuration maximum questions (the only one I remember is the maximum LUNs presentable to single host) lots of vswitch scenario, policy questions. Quite a few on memory limits, reservations, and lots of CPU performance troubleshooting. A number of questions on the DCUI and what you can change/modify there, and what items are downloadable off the ESXi host homepage. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;All around a tough but fair exam I think. Pretty obvious you couldn't just bootcamp it, you need pretty intimate familiarity with the UIs.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-4980090256397420089?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/4980090256397420089/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=4980090256397420089' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/4980090256397420089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/4980090256397420089'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2012/01/vcp-5-exam-thoughts.html' title='VCP 5 exam thoughts'/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-187436968684991440</id><published>2012-01-20T07:46:00.000-08:00</published><updated>2012-01-20T07:47:53.494-08:00</updated><title type='text'>2012 New Year, New Job</title><content type='html'>So I changed to LongView Systems from CNRL at the beginning of the year, had 6 years at CNRL, thats a long time for me, it was fun, lots of great learning, but in the end it was just too static to keep me interested and engaged. &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Joining the cloud practice at Longview should be really interesting. Alread on-site at a client and about to migrate from an f-block (reference architecture for a vblock as a POC) to a couple vblocks.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-187436968684991440?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/187436968684991440/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=187436968684991440' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/187436968684991440'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/187436968684991440'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2012/01/2012-new-year-new-job.html' title='2012 New Year, New Job'/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-5138263510465672976</id><published>2011-04-04T08:15:00.000-07:00</published><updated>2011-04-04T08:41:51.486-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cisco VMware OTV Jumbo Frames MTU'/><title type='text'>More OTV, Jumbo Frames and Vmware fun!</title><content type='html'>So we're moving datacenters. Primary and backup both moving in the same short timeframe. Fun.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Our new VMware design relies heavily on OTV from Cisco. 4 blades in each datacenter running the same cluster of virtual machines. We had it tested and working with the secondary DC moved to its new location, but over the weekend we fired up the new primary datacenter and moved the Nexus 7ks to it, while keeping the 6509s in our old primary DC. No VC-ESX communications worked after that. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now, last week we discovered that OTV adds some packet overhead to communications (we knew it did but didn't realize the repercussions). Vmware secure communications to the VC server are pretty close to the maximum size already (1500 by default). When we tried to add a host to the cluster when the VC was connected to a vlan using OTV, the host would send SHA thumbprint info, but the communication would timeout after that. Thats because OTV adds 70 bytes or so. Pings even work normally, but using the size option (-s, -l depending on client) we found that pings of 1430 size worked, and 1431 size didn't. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So after discovering this we played around with resizing the MTU on vmware and the VC, but decided rather that the switches all should have their MTU fixed. The network team fixed the MTU size on the 7ks, but the 6509s will unfortunately cause OSPF errors if the MTU isn't the same on all the switches. means a big outage, so we're scheduling that. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So, why did it work during testing? Because the 7ks could talk directly to each other without a router (6509) prior to the move, and afterwards they couldn't. Doh. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So, why then couldn't the VC server, which was hosted in the backup DC, not even communicate with the ESX host it resided on? Because of OTV domain ownership. The 7ks in the primary datacenter own all the OTV vlans, and because the 7ks couldn't talk to each other anymore directly, the OTV vlans in the backup DC are broken until the 6509 reboots. Big d'oh. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-5138263510465672976?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/5138263510465672976/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=5138263510465672976' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/5138263510465672976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/5138263510465672976'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2011/04/more-otv-jumbo-frames-and-vmware-fun.html' title='More OTV, Jumbo Frames and Vmware fun!'/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-3604745316422487944</id><published>2011-02-23T07:42:00.000-08:00</published><updated>2011-02-23T07:54:37.548-08:00</updated><title type='text'>VMware HA and Cisco OTV</title><content type='html'>So we're moving to 2 new data-centers in the next little while, from our existing 2. However the new ones will eventually be active/active, once we get Ontap 8.x whichever one supports metronet clusters. &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So in designing our new HA architecture, I had to take into account the fact that we're using HP blades and OTV from cisco, which allows us to have a flat network and have VMs that are portable across the 2 data-centers. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Which seems like a great idea. We'll have cisco 7000 10G switches connecting the ESX hosts in each location, and the 6509s will handle the OTV domain ownership since they control the links between locations as well. Links are redundant, ESX clusters have capacity in both locations, and eventually we'll have metronet clusters for the filers, so storage will be available in both places. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;HOWEVER, I was talking about the OTV vlans to our network team today. Seems that in the event of a datacenter outage, an OTV domain owned by the switch in the failed datacenter would be unavailable everywhere, even on the 7000s in the opposite DC. So the HA response for ESX would be to shut everything down, because its heartbeats would fail everywhere. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The solution is having another service console network for the whole cluster, and have its OTV domain be owned by the 6509 in its DC. That way in the event of a DC failure, those hosts could still communicate on their secondary SC network, and they wouldn't fail, and as well they would properly power on the VMs from the other DC, which is what we want. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;And we have to be sure we add hosts in a specific order to the HA cluster. The first 5 are HA masters, so we need at least 1 in each location, preferably 2 - so adding 3 from one DC and then 2 from the other to the HA cluster is important. &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-3604745316422487944?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/3604745316422487944/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=3604745316422487944' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/3604745316422487944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/3604745316422487944'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2011/02/vmware-ha-and-cisco-otv.html' title='VMware HA and Cisco OTV'/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-3020897976813103731</id><published>2010-05-03T08:25:00.000-07:00</published><updated>2010-05-03T08:42:22.408-07:00</updated><title type='text'></title><content type='html'>So I'm writing this down here to help me remind me to think this out. I think the internet will be the downfall of democracy.&lt;br /&gt;&lt;br /&gt;I watched a video from the TED conference with a speaker (he was familiar, but I forget who he was, a journalist) who was taking about science denial, and how everyone is entitled to an opinion, but not their own facts. I think the internet is great, but it does a terrible job (good job, but terrible effect) of empowering people who have an opinion counter to science. Vaccines are a great example of this (although I think we seem to have a handle on that one), but now theres a furor over high-fructose corn syrup. Our soda in Canada has sugar, not HFCS in it, and we still get fat from drinking it. I think its a victim attitude.&lt;br /&gt;&lt;br /&gt;Maybe I shouldn't say the internet, maybe I should say facebook will be the downfall, although its existence is necessary for facebook to exist.  People with some political agenda think product X is evil, with no scientific background whatsoever, make facebook page to convince others its evil, and those people think its right! no science involved whatsoever.&lt;br /&gt;&lt;br /&gt;Anyway, when we stop listening to experts, our system is going to fall into chaos, with only the loudest or most popular voices being listened to. Sean Penn will be president! Or something equally as bad.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-3020897976813103731?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/3020897976813103731/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=3020897976813103731' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/3020897976813103731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/3020897976813103731'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2010/05/so-im-writing-this-down-here-to-help-me.html' title=''/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-3033375453913122085</id><published>2010-03-19T11:49:00.000-07:00</published><updated>2010-03-19T11:51:14.063-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='symantec error success evault email'/><title type='text'></title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_-B8XWOYgQHY/S6PHkrCakcI/AAAAAAAAAAM/ogwI39ZG_WI/s1600-h/success.bmp"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 400px; height: 295px;" src="http://2.bp.blogspot.com/_-B8XWOYgQHY/S6PHkrCakcI/AAAAAAAAAAM/ogwI39ZG_WI/s400/success.bmp" alt="" id="BLOGGER_PHOTO_ID_5450419406890504642" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;While enabling mailboxes in Symantec Enterprise Vault (software that archives most of you mail except the last 30 days, put in place because we're too nice to tell users to FUCKING DELETE THEIR SHITTY 15 year old emails) this error popped up. Funny.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-3033375453913122085?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/3033375453913122085/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=3033375453913122085' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/3033375453913122085'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/3033375453913122085'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2010/03/while-enabling-mailboxes-in-symantec.html' title=''/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_-B8XWOYgQHY/S6PHkrCakcI/AAAAAAAAAAM/ogwI39ZG_WI/s72-c/success.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-5537390683006967898</id><published>2010-01-29T11:17:00.000-08:00</published><updated>2010-01-29T11:19:18.905-08:00</updated><title type='text'>If it looks like I'm not doing anything, it's because I did it right the first time</title><content type='html'>I can't stand make-work projects, and I also can't stand being bored. That means I end up writing a lot of scripts to make my life easier, rather than do something meaningless that someone else will look at twice and then forget about.&lt;br /&gt;&lt;br /&gt;I also hate people who get panicked. Calm down and think about the situation before you make a snap decision.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-5537390683006967898?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/5537390683006967898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=5537390683006967898' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/5537390683006967898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/5537390683006967898'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2010/01/if-it-looks-like-im-not-doing-anything.html' title='If it looks like I&apos;m not doing anything, it&apos;s because I did it right the first time'/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-5681303497734137438</id><published>2009-11-04T07:08:00.000-08:00</published><updated>2009-11-04T07:12:54.481-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='nfs thin provision LUN'/><title type='text'>NFS is great.... sorta</title><content type='html'>NFS is great technology when it comes to VMware - thin provisioning by default, no HBAs to mess with, dynamic storage allocation, etc.... however there is one pitfall that I've just noticed on our test lab.&lt;br /&gt;&lt;br /&gt;With HBAs, when you ran out of space in a presented LUN, only VMs that had snapshots attached would crash, because they were writing a redo log, and no space was available for that.&lt;br /&gt;&lt;br /&gt;Now, with NFS and thin-provisioned VMs (and even thin-provisioned VMs on VMFS) all the VMs have redo logs essentially, so if you run out of space on a volume, all the VMs in that volume are going to crash (which could be a large number fyi).&lt;br /&gt;&lt;br /&gt;Thankfully, dynamic allocation of NFS volumes should prevent this, given sufficient warning on your storage.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-5681303497734137438?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/5681303497734137438/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=5681303497734137438' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/5681303497734137438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/5681303497734137438'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2009/11/nfs-is-great-sorta.html' title='NFS is great.... sorta'/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-2995329999220406396</id><published>2009-09-08T13:49:00.000-07:00</published><updated>2009-09-08T13:56:06.788-07:00</updated><title type='text'>VMworld 2009</title><content type='html'>Just got back from VMworld 2009 in San Francisco. Conference was great - good sessions, great labs (although I hear they had some trouble on Monday) and good people. Overall a great value, I'll be going again next year.&lt;br /&gt;&lt;br /&gt;Max.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-2995329999220406396?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/2995329999220406396/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=2995329999220406396' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/2995329999220406396'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/2995329999220406396'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2009/09/vmworld-2009.html' title='VMworld 2009'/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-129366786028689546</id><published>2009-05-06T10:17:00.000-07:00</published><updated>2009-05-06T10:20:48.579-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vmware script nfs'/><title type='text'>VMware storage migration script</title><content type='html'>We're moving from SAN attached to NFS storage on our vmware environment, (and vSphere4 isn't out yet) so I wrote a script that will migrate VMs from current location to the new one (I had to hard-code the new location in, since when using sed the path with vmfs/ messed up sed due to the s/).&lt;br /&gt;&lt;br /&gt;Warning: if you have VMs with 2 disks with the same name (if they were created in different directories) then this won't work. It will work for up to 3 disks, and should be easy to make support more.&lt;br /&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;HOMEDIR=/vmfs/volumes/d42ddbc9-93beeb73&lt;br /&gt;for VMNAME in `vmware-cmd -l | awk -F/ '{print $5}'`&lt;br /&gt; do&lt;br /&gt; mkdir $HOMEDIR/$VMNAME/&lt;br /&gt; VMPATH=`vmware-cmd -l | grep $VMNAME | awk -F. '{print $1}'`&lt;br /&gt;   for VMDK in `grep scsi0:.*fileName $VMPATH.vmx | awk -F\" '{print $2}'`&lt;br /&gt;   do&lt;br /&gt;   vmkfstools -i $VMPATH.vmdk $HOMEDIR/$VMNAME/$VMDK -d 'thin' -a lsilogic&lt;br /&gt;   done&lt;br /&gt;&lt;br /&gt; vmware-cmd -s unregister $VMPATH.vmx&lt;br /&gt;&lt;br /&gt; sleep 2&lt;br /&gt;&lt;br /&gt; cp $VMPATH.vmx $HOMEDIR/$VMNAME/$VMNAME.vmx.new&lt;br /&gt;&lt;br /&gt; sed "s/scsi0:0.fileName.*/scsi0:0.fileName = \/vmfs\/volumes\/d42ddbc9-93beeb73\/${VMNAME}\/${VMNAME}.vmdk/" $HOMEDIR/$VMNAME/$VMNAME.vmx.new &gt; $HOMEDIR/$VMNAME/$VMNAME.vmx.new2&lt;br /&gt; sed "s/scsi0:1.fileName.*/scsi0:1.fileName = \/vmfs\/volumes\/d42ddbc9-93beeb73\/${VMNAME}\/${VMNAME}_1.vmdk/" $HOMEDIR/$VMNAME/$VMNAME.vmx.new2 &gt; $HOMEDIR/$VMNAME/$VMNAME.vmx.new3&lt;br /&gt; sed "s/scsi0:2.fileName.*/scsi0:2.fileName = \/vmfs\/volumes\/d42ddbc9-93beeb73\/${VMNAME}\/${VMNAME}_2.vmdk/" $HOMEDIR/$VMNAME/$VMNAME.vmx.new3 &gt; $HOMEDIR/$VMNAME/$VMNAME.vmx&lt;br /&gt;&lt;br /&gt; rm -rf $HOMEDIR/$VMNAME/*.new*&lt;br /&gt; chmod +x $HOMEDIR/$VMNAME/$VMNAME.vmx&lt;br /&gt; vmware-cmd -s register $HOMEDIR/$VMNAME/$VMNAME.vmx&lt;br /&gt; done&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-129366786028689546?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/129366786028689546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=129366786028689546' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/129366786028689546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/129366786028689546'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2009/05/vmware-storage-migration-script.html' title='VMware storage migration script'/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-6519218759152670338</id><published>2009-02-09T12:36:00.000-08:00</published><updated>2009-02-09T12:41:28.761-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HP OA LDAP AD'/><title type='text'>HP Onboard Administrator LDAP authentication search context issue</title><content type='html'>This was an annoying problem today, so I'm posting it in case it helps anyone else.&lt;br /&gt;&lt;br /&gt;I was trying to get the OA for our blades connecting to our AD. I setup the LDAP like the manual said, but no joy. Some research on the HP forums said that if the user you want to connect as is in a different OU than the group they're a member of, both need to be configured as search contexts in the OA config. My config page looks like this:&lt;br /&gt;&lt;br /&gt;Directory Server Address: dc.domain.com&lt;br /&gt;&lt;br /&gt;Directory Server SSL Port: 636&lt;br /&gt;&lt;br /&gt;Search Context 1:    OU=AdminGroups,OU=Admin,DC=domain,DC=com&lt;br /&gt;&lt;br /&gt;Search Context 2:    OU=Admins,OU=Admin,DC=domain,DC=com&lt;br /&gt;&lt;br /&gt;And then the group setup is like so:&lt;br /&gt;&lt;br /&gt;CN=ILO-Admin,OU=AdminGroups,OU=Admin,DC=domain,DC=com&lt;br /&gt;&lt;br /&gt;So the group above is listed in the search context 1, but my admin account is in a different OU, which is search context 2. Bah.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-6519218759152670338?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/6519218759152670338/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=6519218759152670338' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/6519218759152670338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/6519218759152670338'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2009/02/hp-onboard-administrator-ldap.html' title='HP Onboard Administrator LDAP authentication search context issue'/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-5890471481385620663</id><published>2009-01-29T07:50:00.000-08:00</published><updated>2009-01-29T08:01:10.903-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vmware script lun path netapp'/><title type='text'>Script to locate incorrect path to disk on Netapp</title><content type='html'>One of the storage guys sent me an email indicating some of the disk paths were incorrect on some of our newer servers - specifically they were sending data over partner paths to disk (we have 2 heads in a cluster on that filer, so unless its in failover mode, its less efficient to send data via the partner path to disk).&lt;br /&gt;&lt;br /&gt;So I wrote a quick script to check the paths on all hosts against the list of erroring paths he sent me:&lt;br /&gt;&lt;br /&gt;rm -rf /root/lunerrors.txt&lt;br /&gt;touch /root/lunerrors.txt&lt;br /&gt;for host in `cat horhosts.txt`&lt;br /&gt;  do&lt;br /&gt;  echo $host &gt; lunerrors.txt&lt;br /&gt;    for path in `cat errorpaths.txt`&lt;br /&gt;      do&lt;br /&gt;        ssh $host /usr/sbin/esxcfg-mpath -l | grep $path &gt; lunerrors.txt&lt;br /&gt;      done&lt;br /&gt;  done&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-5890471481385620663?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/5890471481385620663/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=5890471481385620663' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/5890471481385620663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/5890471481385620663'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2009/01/script-to-locate-incorrect-path-to-disk.html' title='Script to locate incorrect path to disk on Netapp'/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-2833646121336234322</id><published>2009-01-20T10:04:00.001-08:00</published><updated>2009-01-20T11:35:56.014-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vmware ranger sccm mac'/><title type='text'>Mac address conflicts</title><content type='html'>So it turns out some VMs have been assigned static MAC addresses already, so my script duplicated some MAC addresses in use. Not a huge deal (the network team bitched about some errors) until the following happened:&lt;br /&gt;&lt;br /&gt;The SCCM guys assigned an image package via MAC address to those MAC addresses, and didn't restrict it to XP images. So the SCCM box re-imaged some windows 2003 boxes. Thank goodness we have vRanger in production, so the VMs were restored pretty quickly (save one, which errored out, and Vizioncore gave us a beta version which restored it).&lt;br /&gt;&lt;br /&gt;I modified the script to use a range outside the first 256 addresses. Make sure you aren't conflicting if you use it, and make sure your imaging guys don't leave the package wide-open like ours did :).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-2833646121336234322?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/2833646121336234322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=2833646121336234322' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/2833646121336234322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/2833646121336234322'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2009/01/so-it-turns-out-some-vms-have-been.html' title='Mac address conflicts'/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-8312566512059531207</id><published>2008-12-18T13:03:00.001-08:00</published><updated>2009-01-20T10:04:07.755-08:00</updated><title type='text'></title><content type='html'>I wrote this script to create VMs, since we're making 350 for the remote access project. It used some code that a co-worked found on the internet, but I modified it appropriately so it would loop and create more than one.&lt;br /&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;declare -i hexcount=0x0&lt;br /&gt;for vmcount in $(seq 1 5)&lt;br /&gt;do&lt;br /&gt;VMDIR=vdi$vmcount&lt;br /&gt;VMNAME=vdi$vmcount&lt;br /&gt;VMMAC=00:50:56:00:01:$(printf %02x $hexcount)&lt;br /&gt;NFSVOL="cgy-vdi-nfs01"&lt;br /&gt;&lt;br /&gt;#Begin pasted script code&lt;br /&gt;#Creates a new Virtual Machine&lt;br /&gt;&lt;br /&gt;VMOS="winxppro"&lt;br /&gt;VMDSIZE="20g"&lt;br /&gt;VMMEMSIZE="1024"&lt;br /&gt;&lt;br /&gt;mkdir /vmfs/volumes/$NFSVOL/$VMDIR&lt;br /&gt;exec 6&gt;&amp;amp;1&lt;br /&gt;exec 1&gt;/vmfs/volumes/NFSVOL/$VMDIR/$VMNAME.vmx&lt;br /&gt;&lt;br /&gt;# write the configuration&lt;br /&gt;echo #!/usr/bin/vmware&lt;br /&gt;echo config.version = '"'8'"'&lt;br /&gt;echo virtualHW.version = '"'4'"'&lt;br /&gt;echo memsize = '"'$VMMEMSIZE'"'&lt;br /&gt;echo floppy0.present = '"'TRUE'"'&lt;br /&gt;echo usb.present = '"'FALSE'"'&lt;br /&gt;echo displayName = '"'$VMNAME'"'&lt;br /&gt;echo guestOS = '"'$VMOS'"'&lt;br /&gt;echo ide0:0.present = '"'TRUE'"'&lt;br /&gt;echo ide0:0.fileName = '"'/vmfs/volumes/vdi-scsi-local/BootableX86_12092008.iso'"'&lt;br /&gt;echo ide0:0.deviceType = '"'cdrom-image'"'&lt;br /&gt;echo ide:0.startConnected = '"'TRUE'"'&lt;br /&gt;echo floppy0.startConnected = '"'FALSE'"'&lt;br /&gt;echo floppy0.fileName = '"'/dev/fd0'"'&lt;br /&gt;echo Ethernet0.present = '"'TRUE'"'&lt;br /&gt;echo Ethernet0.networkName = '"'vmnts222'"'&lt;br /&gt;echo Ethernet0.addressType = '"'static'"'&lt;br /&gt;echo Ethernet0.address = '"'$VMMAC'"'&lt;br /&gt;echo scsi0.present = '"'TRUE'"'&lt;br /&gt;echo scsi0:1.present = '"'TRUE'"'&lt;br /&gt;echo scsi0:1.filename = '"'$VMNAME.vmdk'"'&lt;br /&gt;echo scsi0:1.writeThrough = '"'TRUE'"'&lt;br /&gt;echo scsi0.virtualDev = '"'lsilogic'"'&lt;br /&gt;echo&lt;br /&gt;# close file&lt;br /&gt;exec 1&gt;&amp;amp;-&lt;br /&gt;&lt;br /&gt;# make stdout a copy of FD 6 (reset stdout), and close FD6&lt;br /&gt;exec 1&gt;&amp;amp;6&lt;br /&gt;exec 6&gt;&amp;amp;-&lt;br /&gt;&lt;br /&gt;chmod 755 /vmfs/volumes/$NFSVOL/$VMDIR/$VMNAME.vmx&lt;br /&gt;# Create Disk &amp;amp; Register the .vmx configuration&lt;br /&gt;&lt;br /&gt;#Creates 300mb disk (can be modified for larger disk sizes)&lt;br /&gt;cd /vmfs/volumes/$NFSVOL/$VMDIR&lt;br /&gt;vmkfstools -c $VMDSIZE $VMNAME.vmdk -a lsilogic&lt;br /&gt;&lt;br /&gt;#Register VM&lt;br /&gt;vmware-cmd -s register /vmfs/volumes/$NFSVOL/$VMDIR/$VMNAME.vmx&lt;br /&gt;&lt;br /&gt;((hexcount=hexcount+1))&lt;br /&gt;done&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-8312566512059531207?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/8312566512059531207/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=8312566512059531207' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/8312566512059531207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/8312566512059531207'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2008/12/i-wrote-this-script-to-create-vms-since.html' title=''/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-3639215217545133330</id><published>2008-10-27T14:06:00.000-07:00</published><updated>2008-10-27T14:08:13.263-07:00</updated><title type='text'>AMD cpu mask script</title><content type='html'>I wrote this script when we got a HP DL 585 G2 server to add to our dev/test cluster, which is mostly G1s. It checks all the vmx files on a server, and modifies them to have the correct CPU masking for G1/G2 server vmotions to be successful.&lt;br /&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;PATH=$PATH:/bin:/usr/bin&lt;br /&gt;&lt;br /&gt;for i in `vmware-cmd -l`&lt;br /&gt;do&lt;br /&gt;   cp -f --reply=yes $i $i.back&lt;br /&gt;   if [ `grep -c "cpuid.80000001.edx =" $i` = 0 ]&lt;br /&gt;    then&lt;br /&gt;     echo 'cpuid.80000001.edx = "-----------0--------H-----------"' &gt;&gt; $i&lt;br /&gt;    else&lt;br /&gt;     cp -f --reply=yes $i $i.sed1&lt;br /&gt;     sed -e 's/cpuid.80000001.edx = "--------------------H-----------"/cpuid.80000001.edx = "-----------0--------H-----------"/g' $i.sed1 &gt; $i.sed2&lt;br /&gt;     sed -e 's/cpuid.80000001.edx = "-----------0--------------------"/cpuid.80000001.edx = "-----------0--------H-----------"/g' $i.sed2 &gt; $i&lt;br /&gt;   fi&lt;br /&gt;   if [ `grep -c cpuid.80000001.edx.amd $i` = 0 ]&lt;br /&gt;    then&lt;br /&gt;     echo 'cpuid.80000001.edx.amd = "----0R-----0--------H------T----"' &gt;&gt; $i&lt;br /&gt;    else&lt;br /&gt;     cp -f --reply=yes $i $i.sed1&lt;br /&gt;     sed -e "s/cpuid.80000001.edx.amd = \"-----R--------------H------T----\"/cpuid.80000001.edx.amd = \"----0R-----0--------H------T----\"/g" $i.sed1 &gt; $i.sed2&lt;br /&gt;     sed -e "s/cpuid.80000001.edx.amd = \"-----R-----0--------H------T----\"/cpuid.80000001.edx.amd = \"----0R-----0--------H------T----\"/g" $i.sed2 &gt; $i.sed3&lt;br /&gt;     sed -e "s/cpuid.80000001.edx.amd = \"-----------0--------------------\"/cpuid.80000001.edx.amd = \"----0R-----0--------H------T----\"/g" $i.sed3 &gt; $i&lt;br /&gt;  fi&lt;br /&gt;done&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-3639215217545133330?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/3639215217545133330/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=3639215217545133330' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/3639215217545133330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/3639215217545133330'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2008/10/amd-cpu-mask-script.html' title='AMD cpu mask script'/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-2434298015698951888</id><published>2008-09-24T13:27:00.000-07:00</published><updated>2009-01-20T10:15:46.060-08:00</updated><title type='text'>More useful scripts</title><content type='html'>Wrote a couple handy scripts lately. First one checks for ISOs mounted on VMs, because if they are, you can't VMotion them (and then often have to shut the guest OS down - annoying!)&lt;br /&gt;&lt;br /&gt;#! /bin/bash&lt;br /&gt;rm -rf /root/isocheck.txt&lt;br /&gt;touch /root/isocheck.txt&lt;br /&gt;for host in `cat isohosts.txt`&lt;br /&gt;do&lt;br /&gt;  echo $host&lt;br /&gt;  for vmx in `ssh $host vmware-cmd -l`&lt;br /&gt;    do&lt;br /&gt;      echo $vmx &gt;&gt; isocheck.txt&lt;br /&gt;      ssh $host grep -i 'ide0:0.startConnected\ \=\ \"true\"' $vmx &gt;&gt; isocheck.txt&lt;br /&gt;    done&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I have MIME-Lite installed on this ESX box, which is a simple perl-based SMTP agent, it emails me this file afterwards.&lt;br /&gt;&lt;br /&gt;The second script sets up all the options to authenticate accounts on an ESX server user a domain account (in this example, esxrangerservice). You need only do "useradd username" after this to allow new users to connect.&lt;br /&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;/usr/sbin/esxcfg-firewall -o 88,tcp,out,KerberosClient&lt;br /&gt;/usr/sbin/esxcfg-firewall -o 464,tcp,out,KerberosPasswordChange&lt;br /&gt;/usr/sbin/esxcfg-auth --enablead --addomain=yourdomain.com --addc=yourDC.yourdomain.com&lt;br /&gt;/usr/sbin/esxcfg-auth --enablekrb5 --krb5realm=yourdomain.com --krb5kdc=yourDC.yourdomain.com&lt;br /&gt;cp /etc/pam.d/vmware-authd /etc/pam.d/vmware-authd.old&lt;br /&gt;/usr/sbin/useradd esxrangerservice&lt;br /&gt;echo "#%PAM-1.0" &gt; /etc/pam.d/vmware-authd&lt;br /&gt;echo "auth       sufficient   pam_unix_auth.so shadow nullok" &gt;&gt; /etc/pam.d/vmware-authd&lt;br /&gt;echo "auth       required     pam_stack.so service=system-auth" &gt;&gt; /etc/pam.d/vmware-authd&lt;br /&gt;echo "account    required     pam_stack.so service=system-auth" &gt;&gt; /etc/pam.d/vmware-authd&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-2434298015698951888?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/2434298015698951888/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=2434298015698951888' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/2434298015698951888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/2434298015698951888'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2008/09/more-useful-scripts.html' title='More useful scripts'/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-6414408048736751409</id><published>2008-09-23T09:23:00.000-07:00</published><updated>2008-09-23T09:24:28.608-07:00</updated><title type='text'>Scripted ESX build with 3.5 not working</title><content type='html'>I've been scripting our builds for a while now, but haven't done one since our 3.5 upgrade - I'm just going through a test one now before we roll out some new hosts, and my script process which was working great before doesn't seem to produce a working config anymore.&lt;br /&gt;&lt;br /&gt;The script code for routing looks like this - there is some switch config done as well, but since the output is below of esxcfg-vswitch and such, i left it out.&lt;br /&gt;&lt;br /&gt;#Service Console&lt;br /&gt;#Add service console IP address&lt;br /&gt;echo Adding service console IP address&lt;br /&gt;/usr/sbin/esxcfg-vswif -a -i 172.31.8.168 -n 255.255.255.0 -p "Service Console" vswif1&lt;br /&gt;sleep 5&lt;br /&gt;&lt;br /&gt;#Kernel Network&lt;br /&gt;echo Adding Kernel Network Address&lt;br /&gt;/usr/sbin/esxcfg-vmknic -a -i 172.31.8.169 -n 255.255.255.0 VMotion&lt;br /&gt;sleep 5&lt;br /&gt;&lt;br /&gt;#Service Console Routing&lt;br /&gt;#Add esx route to VMkernel&lt;br /&gt;echo Adding default route to Service Console&lt;br /&gt;/usr/sbin/esxcfg-route 172.31.8.1&lt;br /&gt;sleep 3&lt;br /&gt;&lt;br /&gt;#Routing&lt;br /&gt;#add networking info to /etc/sysconfig/network&lt;br /&gt;echo adding route&lt;br /&gt;cat &gt; /etc/sysconfig/network &lt;&lt; EOF2&lt;br /&gt;NETWORKING=yes&lt;br /&gt;HOSTNAME=esxt01.domain.com&lt;br /&gt;GATEWAY=172.31.8.1&lt;br /&gt;GATEWAYDEV=vswif1&lt;br /&gt;EOF2&lt;br /&gt;sleep 3&lt;br /&gt;&lt;br /&gt;Here's the contents of every file and command I could think of thats even remotely related.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;/etc/sysconfig/network-scripts/ifcfg-vswif1&lt;/b&gt;&lt;br /&gt;DEVICE=vswif1&lt;br /&gt;MACADDR=00:50:56:48:9e:17&lt;br /&gt;PORTGROUP="Service Console"&lt;br /&gt;BOOTPROTO=static&lt;br /&gt;BROADCAST=172.31.8.255&lt;br /&gt;IPADDR=172.31.8.168&lt;br /&gt;NETMASK=255.255.255.0&lt;br /&gt;ONBOOT=yes&lt;br /&gt;&lt;br /&gt;&lt;b&gt;/etc/sysconfig/network&lt;/b&gt;&lt;br /&gt;NETWORKING=yes&lt;br /&gt;HOSTNAME=esxt01.domain.com&lt;br /&gt;GATEWAY=172.31.8.1&lt;br /&gt;GATEWAYDEV=vswif1&lt;br /&gt;&lt;br /&gt;&lt;b&gt;/etc/hosts&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;127.0.0.1 localhost.localdomain localhost&lt;br /&gt;172.31.0.251 nts200.domain.com nts200&lt;br /&gt;172.31.0.248 nts203.domain.com nts203&lt;br /&gt;172.31.5.148 nts334.domain.com nts334&lt;br /&gt;172.31.8.168 esxt01.domain.com esxt01&lt;br /&gt;&lt;br /&gt;&lt;b&gt;esxcfg-vmknic -l&lt;/b&gt;&lt;br /&gt;Interface  Port Group          IP Address      Netmask         Broadcast       MAC Address       MTU     TSO MSS   Enabled&lt;br /&gt;vmk0       VMotion             172.31.8.169    255.255.255.0   172.31.8.255    00:50:56:78:d6:51 1500    disabled  true   &lt;br /&gt;&lt;br /&gt;&lt;b&gt;esxcfg-vswif -l&lt;/b&gt;&lt;br /&gt;Name     Port Group          IP Address       Netmask          Broadcast        Enabled   DHCP     &lt;br /&gt;vswif1   Service Console     172.31.8.168     255.255.255.0    172.31.8.255     true      false    &lt;br /&gt;&lt;br /&gt;&lt;b&gt;esxcfg-vswitch -l&lt;/b&gt;&lt;br /&gt;Switch Name    Num Ports   Used Ports  Configured Ports  MTU     Uplinks  &lt;br /&gt;Production     64          3           64                1500    vmnic1   &lt;br /&gt;&lt;br /&gt;PortGroup Name      VLAN ID  Used Ports  Uplinks  &lt;br /&gt;vmnts08             8        0           vmnic1   &lt;br /&gt;&lt;br /&gt;Switch Name    Num Ports   Used Ports  Configured Ports  MTU     Uplinks  &lt;br /&gt;Management     64          5           64                1500    vmnic0   &lt;br /&gt;&lt;br /&gt;PortGroup Name      VLAN ID  Used Ports  Uplinks  &lt;br /&gt;VMotion             8        1           vmnic0   &lt;br /&gt;Service Console     8        1           vmnic0   &lt;br /&gt;&lt;br /&gt;Switch Name    Num Ports   Used Ports  Configured Ports  MTU     Uplinks  &lt;br /&gt;TestPrivateNetwork64          1           64                1500             &lt;br /&gt;&lt;br /&gt;PortGroup Name      VLAN ID  Used Ports  Uplinks  &lt;br /&gt;TestPrivateNetwork  0        0                    &lt;br /&gt;&lt;br /&gt;&lt;b&gt;esxcfg-route -l&lt;/b&gt;&lt;br /&gt;VMkernel Routes:&lt;br /&gt;Network             Netmask             Gateway            &lt;br /&gt;172.31.8.0          255.255.255.0       Local Subnet       &lt;br /&gt;default             0.0.0.0             172.31.8.1&lt;br /&gt;&lt;br /&gt;the route command produces the following, with a big delay (10-15 seconds) before it displays the third line with the default route on it.&lt;br /&gt;&lt;br /&gt;kernel IP routing table&lt;br /&gt;Destination     Gateway         Genmask         Flags Metric Ref    Use Iface&lt;br /&gt;172.31.8.0      *               255.255.255.0   U     0      0        0 vswif1&lt;br /&gt;169.254.0.0     *               255.255.0.0     U     0      0        0 vswif1&lt;br /&gt;default         172.31.8.1      0.0.0.0         UG    0      0        0 vswif1&lt;br /&gt;&lt;br /&gt;I just get a "Destination Host Unreachable" when I try to ping anything, which tells me it doesn't know how to route to the network. whiskey tango foxtrot.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-6414408048736751409?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/6414408048736751409/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=6414408048736751409' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/6414408048736751409'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/6414408048736751409'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2008/09/scripted-esx-build-with-35-not-working.html' title='Scripted ESX build with 3.5 not working'/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-5501786112399977744</id><published>2008-09-05T10:38:00.000-07:00</published><updated>2008-12-18T13:07:17.736-08:00</updated><title type='text'>esxRanger Backups to DMZ machines</title><content type='html'>I have setup ranger to run all our VM backups - its working pretty well, but a recent upgrade caused machines in our DMZ to do this:&lt;br /&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;Error In Backup Operations! Error: An error occurred during backup operations. The Archive Created Appears to be Invalid. Failed to read Status File.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;As it turns out, the upgrade needs a whole bunch more ports to work through to the DMZ now. Since thats a terrible idea, I turned on the "-encryptdata" option, which means everything goes over port 22 now - much better idea for security, although slower.&lt;br /&gt;&lt;br /&gt;Full error log is below.&lt;br /&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;:: vRanger PRO CLI Backup Commencing ::&lt;br /&gt;Version: 3.2.3.3&lt;br /&gt;"C:\Program Files\vizioncore\esxRanger Professional\esxRangerProCli.exe" esxd03.domain.com /vmfs/volumes/vmdmzprod01/dmz17/dmz17.vmx -copylocal "Z:\cgy-dmz-thur" "-drives:all" -mailonerror -vmnotes -noquiesce -diffratio 50 -maxfullage 5 -retendays 14 -description "cgy dmz thursday full" -zipname "[config]" -vmkey vm-658&lt;br /&gt;[20080905_110907]&lt;br /&gt;Sending log on error only.&lt;br /&gt;The TarBall name will be: [dmz17].&lt;br /&gt;VirtualCenter VM Key: vm-658.&lt;br /&gt;Acquiring VM Lock. This may take many minutes!&lt;br /&gt;VM Lock Acquired. Backup Initialization Commencing. Please Wait...&lt;br /&gt;9/5/2008 11:09:28 AM: Backing up the VM 'dmz17'.&lt;br /&gt;9/5/2008 11:09:28 AM: Beginning Testing Phase.&lt;br /&gt;9/5/2008 11:09:28 AM: Testing Destination Path.&lt;br /&gt;9/5/2008 11:09:33 AM: Snapshotting VM.&lt;br /&gt;9/5/2008 11:09:35 AM: Starting Server Component.&lt;br /&gt;9/5/2008 11:09:37 AM: Performing Backup.&lt;br /&gt;9/5/2008 11:19:42 AM: An error occurred during backup operations:&lt;br /&gt;The Archive Created Appears to be Invalid. Failed to read Status File.&lt;br /&gt;9/5/2008 11:19:42 AM: Removing Backup Snapshot.&lt;br /&gt;9/5/2008 11:20:16 AM: Setting Final Backup Data.&lt;br /&gt;9/5/2008 11:20:16 AM: Writing Backup Information.&lt;br /&gt;9/5/2008 11:20:17 AM: Writing VM Note.&lt;br /&gt;Error In Backup Operations! Error: An error occurred during backup operations. The Archive Created Appears to be Invalid. Failed to read Status File.&lt;br /&gt;9/5/2008 11:20:21 AM: Disconnecting Open Connections.&lt;br /&gt;9/5/2008 11:20:21 AM: Waiting for Disconnection.&lt;br /&gt;9/5/2008 11:20:22 AM: Done.&lt;br /&gt;9/5/2008 11:20:22 AM: Disconnection Sequence Complete.&lt;br /&gt;Pausing for 30 seconds...&lt;br /&gt;You can safely close this window now.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-5501786112399977744?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/5501786112399977744/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=5501786112399977744' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/5501786112399977744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/5501786112399977744'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2008/09/esxranger-backups-to-dmz-machines.html' title='esxRanger Backups to DMZ machines'/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-9171771773271117959</id><published>2008-09-02T09:18:00.001-07:00</published><updated>2008-09-02T09:22:32.676-07:00</updated><title type='text'>I guess people think IT is like a toaster...</title><content type='html'>This woman sent this email to all of IS. Managers, programmers, everyone...&lt;br /&gt;&lt;br /&gt;That being said, it made me think about why she would send it. Anyone who can use email must get spam, so if she opens one of the attachments, she would probably see that. Its a common method of getting around email filters - and one that normally gets filtered by our message filters.&lt;br /&gt;&lt;br /&gt;I guess she just assumes because it isn't really to her, that its an error, not some person on the internet being shady/clever (it is a pretty clever way of doing it frankly). When she pushes the bread down, she expects toast back up, not a bagel.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;&lt;br /&gt;I am receiving tons of these notifications about e-mails that I have not sent. Can you please look into for me.&lt;br /&gt;-----Original Message-----&lt;br /&gt;From: postmaster@smtp01.2s1n.com [mailto:postmaster@smtp01.2s1n.com]Sent: Monday, September 01, 2008 11:55 AM&lt;br /&gt;To: *********&lt;br /&gt;Subject: Delivery Status Notification (Delay)&lt;br /&gt;&lt;br /&gt;This is an automatically generated Delivery Status Notification.&lt;br /&gt;THIS IS A WARNING MESSAGE ONLY.&lt;br /&gt;YOU DO NOT NEED TO RESEND YOUR MESSAGE.&lt;br /&gt;Delivery to the following recipients has been delayed.&lt;br /&gt;webmaster@progressive-equip.com&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-9171771773271117959?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/9171771773271117959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=9171771773271117959' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/9171771773271117959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/9171771773271117959'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2008/09/i-guess-people-think-it-is-like-toaster.html' title='I guess people think IT is like a toaster...'/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-8064197832618311764</id><published>2008-08-25T10:43:00.000-07:00</published><updated>2008-09-05T10:45:09.109-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vacation shuswap'/><title type='text'>Back from Vacation!</title><content type='html'>Most of August was vacation time! Enjoyed the Shuswap lake in BC where my parents have a house - very relaxing. The kids spent most of the summer there too, and they can swim and waterski now too.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-8064197832618311764?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/8064197832618311764/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=8064197832618311764' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/8064197832618311764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/8064197832618311764'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2008/09/back-from-vacation.html' title='Back from Vacation!'/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-6944802322920326574</id><published>2008-07-31T11:11:00.000-07:00</published><updated>2008-07-31T11:56:26.727-07:00</updated><title type='text'>Vmware snapshots 160Gb!</title><content type='html'>One of our field ESX servers had a snapshot from Ranger that didn't get deleted, and grew to 160Gb, freezing the VM and making people at the site unable to log in. I set the snapshot to delete, but its been more than 24 hours in deleting.&lt;br /&gt;&lt;br /&gt;Turns out the only way to view a snapshot being deleted is if the VM is on, you can run esxtop, then press "e" and enter the ID of the process for the VM. This will expand the process for that VM, and you check for SnapshotVMXCombo process for that group ID. This means the snapshot process is still running.&lt;br /&gt;&lt;br /&gt;If the VM is off, there's apparently no way to tell if its still deleting or not. wow.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-6944802322920326574?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/6944802322920326574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=6944802322920326574' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/6944802322920326574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/6944802322920326574'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2008/07/vmware-snapshots-160gb.html' title='Vmware snapshots 160Gb!'/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-7018569662632943325</id><published>2008-07-30T20:00:00.000-07:00</published><updated>2008-07-30T20:51:19.976-07:00</updated><title type='text'></title><content type='html'>This set of scripts saved my ass 100% just now. We've had a few issues with VMware servers being disconnected due to network incidents - not just one but the whole farm goes down (they all think they are isolated, and in appropriate fashion shut down their VMs, expecting one of the other HA cluster members to power them up - however all the hosts are isolated, so there isn't a cluster up for the VMs to be powered up on).&lt;br /&gt;&lt;br /&gt;Anyway, following the 2nd time that happened, I wrote some scripts, first to log what VMs are running on a host each night, and the second to power those VMs up (I wrote a third which also gracefully shuts down all the VMs on a host, its handy, I posted that one third).&lt;br /&gt;&lt;br /&gt;The reason it saved me is because I had just had to hard reboot an completely unresponsive ESX host, and there are a couple servers that weren't powered on for various reasons, and I forgot to write down which ones beforehand. Yay for pre-emptive scripting!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;vmstate script:&lt;/span&gt;&lt;br /&gt;#! /bin/bash&lt;br /&gt;echo This script exports the VMs that are running to a text file for later startup/shutdown operations&lt;br /&gt;rm -rf /root/vmlist&lt;br /&gt;rm -rf /root/vmonlist&lt;br /&gt;rm -rf /root/vmofflist&lt;br /&gt;touch /root/vmlist&lt;br /&gt;touch /root/vmonlist&lt;br /&gt;touch /root/vmofflist&lt;br /&gt;ON="on"&lt;br /&gt;for vm in $( vmware-cmd -l );&lt;br /&gt;do&lt;br /&gt;echo $vm &gt;&gt; vmlist&lt;br /&gt;done&lt;br /&gt;for vm2 in $( cat /root/vmlist );&lt;br /&gt;do&lt;br /&gt;state=$( vmware-cmd -q $vm2 getstate );&lt;br /&gt; if [ "$state" = "$ON" ]&lt;br /&gt;   then echo $vm2 &gt;&gt; vmonlist&lt;br /&gt; else echo $vm2 &gt;&gt; vmofflist&lt;br /&gt; fi&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;vmstart script:&lt;/span&gt;&lt;br /&gt;#! /bin/bash&lt;br /&gt;echo This script starts all VMs listed in /root/vmonlist&lt;br /&gt;echo If you are recovering from an incident, this list was generated at 5:30 PM&lt;br /&gt;echo If you are unsure, please quit and ask someone else&lt;br /&gt;OPTIONS="Proceed Quit"&lt;br /&gt;select opt in $OPTIONS;&lt;br /&gt;do&lt;br /&gt;if [ "$opt" = "Quit" ]; then&lt;br /&gt; exit&lt;br /&gt;elif [ "$opt" = "Proceed" ]; then&lt;br /&gt; for vm in $( cat /root/vmonlist );&lt;br /&gt;   do&lt;br /&gt;     vmware-cmd -q $vm start&lt;br /&gt;  done&lt;br /&gt;  exit&lt;br /&gt;else&lt;br /&gt; echo bad option&lt;br /&gt;fi&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; vmstop script&lt;/span&gt;&lt;br /&gt;#! /bin/bash&lt;br /&gt;echo This script will shutdown all running Virtual Machines&lt;br /&gt;echo ARE YOU SURE YOU WANT TO DO THIS?&lt;br /&gt;OPTIONS="YES NO"&lt;br /&gt;select opt in $OPTIONS;&lt;br /&gt;do&lt;br /&gt;if [ "$opt" = "NO" ]; then&lt;br /&gt; exit&lt;br /&gt;elif [ "$opt" = "YES" ]; then&lt;br /&gt; for vm in $( cat /root/vmonlist );&lt;br /&gt; do&lt;br /&gt;   echo shutting down $vm&lt;br /&gt;   vmware-cmd -q $vm stop trysoft&lt;br /&gt; done&lt;br /&gt; echo Waiting 5 minutes, then forcing shutdown&lt;br /&gt; sleep 5m&lt;br /&gt; for vm in $( cat /root/vmonlist );&lt;br /&gt; do&lt;br /&gt;   vmware-cmd -q $vm stop hard&lt;br /&gt; done&lt;br /&gt;else&lt;br /&gt; echo bad option&lt;br /&gt;fi&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;I run a cron job at 5:30 every night to spit out the powered-on VMs into the file. Thats mostly because VMs move around mostly during the day, while a couple of the junior admins might be relocating or powering up new ones. Hope this helps someone!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-7018569662632943325?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/7018569662632943325/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=7018569662632943325' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/7018569662632943325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/7018569662632943325'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2008/07/this-set-of-scripts-saved-my-ass-100.html' title=''/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-2422610093154659948</id><published>2008-07-30T10:35:00.000-07:00</published><updated>2008-07-30T10:36:31.099-07:00</updated><title type='text'></title><content type='html'>I bought a Wii Fit yesterday, and am going to track my progress on wiifits.blogspot.com - I'm going to try to convince stevie to do it as well.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-2422610093154659948?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/2422610093154659948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=2422610093154659948' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/2422610093154659948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/2422610093154659948'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2008/07/i-bought-wii-fit-yesterday-and-am-going.html' title=''/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-2034974786936221581</id><published>2008-07-28T09:38:00.000-07:00</published><updated>2009-01-20T10:19:02.204-08:00</updated><title type='text'>I hate email users</title><content type='html'>We got this string of emails forwarded to our company. I have removed the people on the to: list because I have no evidence that they forwarded it, unlike the people in the from fields.&lt;br /&gt;&lt;br /&gt;Normally this sort of thing wouldn't concern me, we've locked down our top-level distribution lists to remove the possibility of anyone forwarding this to mass quantities of people. However some --enterprising-- (read: we've locked down the lists to keep you from doing this) user put EVERY OTHER MAILING LIST in a single email, and forwarded it to the WHOLE COMPANY. And then OTHER USERS STARTED RE-FORWARDING IT TO THE WHOLE COMPANY. And then OTHER USERS STARTED REPLYING TO THE WHOLE COMPANY TO PLEASE STOP FORWARDING THIS. And then finally, the last guy sent "ditto", which reminds us of course, of the dilbert cartoon about this exact subject.&lt;br /&gt;&lt;br /&gt;The help desk "spoke directly to, and reminded each user of our email acceptable user policy". Glad I wasn't doing it, because there would have been some crying going on, and I probably would have got fired.&lt;br /&gt;&lt;br /&gt;From: Goddard, Shando [mailto:SGoddard@petro-canada.ca]&lt;br /&gt;Sent: Monday, July 07, 2008 4:50 PM&lt;br /&gt;To: removed&lt;br /&gt;Subject: FW: I DON'T KNOW HOW IT WORKS, BUT IT DOES.&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;From: Appleton, Lee&lt;br /&gt;Sent: Monday, July 07, 2008 7:10 AM&lt;br /&gt;To: removed&lt;br /&gt;Subject: FW: I DON'T KNOW HOW IT WORKS, BUT IT DOES.&lt;br /&gt;&lt;br /&gt;Best Regards,&lt;br /&gt;&lt;br /&gt;D.L. (Lee) Appleton&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;From: McKinnon, Jim&lt;br /&gt;Sent: Sunday, July 06, 2008 9:02 PM&lt;br /&gt;To: removed&lt;br /&gt;Subject: FW: I DON'T KNOW HOW IT WORKS, BUT IT DOES.&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;From: Robert Lawson [mailto:palawson@telusplanet.net]&lt;br /&gt;Sent: Sunday, July 06, 2008 2:34 PM&lt;br /&gt;To: removed&lt;br /&gt;Subject: FW: I DON'T KNOW HOW IT WORKS, BUT IT DOES.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best of luck to everyone.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-----Original Message-----&lt;br /&gt;From: Lawson, Robert [mailto:BoLawson@petro-canada.ca]&lt;br /&gt;Sent: Sunday, July 06, 2008 2:43 PM&lt;br /&gt;To: Lawson, Robert&lt;br /&gt;Subject: FW: I DON'T KNOW HOW IT WORKS, BUT IT DOES.&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;From: Campbell, Dennis&lt;br /&gt;Sent: Thursday, July 03, 2008 8:41 AM&lt;br /&gt;To: removed&lt;br /&gt;Subject: FW: I DON'T KNOW HOW IT WORKS, BUT IT DOES.&lt;br /&gt;&lt;br /&gt;This is a just in case it does work.&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;From: Marty Price [mailto:Marty.Price@Halliburton.com]&lt;br /&gt;Sent: Thursday, July 03, 2008 6:39 AM&lt;br /&gt;To: removed&lt;br /&gt;Subject: FW: I DON'T KNOW HOW IT WORKS, BUT IT DOES.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-2034974786936221581?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/2034974786936221581/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=2034974786936221581' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/2034974786936221581'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/2034974786936221581'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2008/02/blog-entry.html' title='I hate email users'/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-1941362296468746146</id><published>2008-07-28T09:01:00.001-07:00</published><updated>2008-07-28T09:01:08.598-07:00</updated><title type='text'>Blackberry post!</title><content type='html'>My first mobile post. My new BB is easier to type on, full keyboard&lt;br&gt;and all. My old one suffered a &amp;quot;shuswap water&amp;quot; treatment and stopped&lt;br&gt;functioning, surprise surprise.&lt;p&gt;Anyway, fragapalooza is coming up, paul brad brent igor and laz are&lt;br&gt;all attending, should be fun. Brad sent me a link to his tech blog&lt;br&gt;&lt;a href="http://www.bradstechblog.com"&gt;www.bradstechblog.com&lt;/a&gt; and I remembered that SCCM makes baby jesus cry.&lt;p&gt;-- &lt;br&gt;Sent from Gmail for mobile | &lt;a href="http://mobile.google.com"&gt;mobile.google.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-1941362296468746146?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/1941362296468746146/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=1941362296468746146' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/1941362296468746146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/1941362296468746146'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2008/07/blackberry-post.html' title='Blackberry post!'/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-8863590962856202515</id><published>2008-07-28T08:41:00.000-07:00</published><updated>2008-07-28T08:46:13.047-07:00</updated><title type='text'>Ack I should do more regular updates</title><content type='html'>I figured out how to post to the blog remotely using my blackberry, so hopefully more posts will come, and more frequently.&lt;br /&gt;&lt;br /&gt;We upgraded our netapp filers in 7.2.4 last week, and one of our LUNs had duplicate name mapping - how the hell does that happen? Anyway, all the VMs on that LUN had to be moved after the outage, thankfully nothing serious happened, but it just proves why we have jobs - IT stuff will always be ahead of the knowledge curve of normal users.&lt;br /&gt;&lt;br /&gt;Sure they're catching up to IT workers in knowledge, but we'll always be ahead because IT will continue to become more complicated. Users can do a lot of the things for themselves that administrators used to have to do 10 years ago, but now we have more complicated tasks (like managing VMware infrastructure).&lt;br /&gt;&lt;br /&gt;Stevie went to Kate's stag party on Saturday night, had to pick her drunk ass up at a Bar :) Hopefully Ken's will be just as much fun. Wait didn't they do these things the first time they got married? I'm glad I didn't know them the first time, because if I'd bought them a gift then, I would have stolen it back and re-gifted it to them.&lt;br /&gt;&lt;br /&gt;Got into the Warhammer Online beta - can't discuss further, NDA etc...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-8863590962856202515?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/8863590962856202515/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=8863590962856202515' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/8863590962856202515'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/8863590962856202515'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2008/07/ack-i-should-do-more-regular-updates.html' title='Ack I should do more regular updates'/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-3744671958849660001</id><published>2007-10-29T06:58:00.000-07:00</published><updated>2007-10-29T06:59:45.227-07:00</updated><title type='text'>I wonder how many phone calls he got</title><content type='html'>This email arrived to "Information Systems - All" today (contains every IS worked, and IS management :)"&lt;br /&gt;&lt;br /&gt;&lt;div class="OutlookMessageHeader" dir="ltr" align="left" lang="en-us"&gt;&lt;span style="font-family:Tahoma;font-size:85%;"&gt;&lt;b&gt;From:&lt;/b&gt; Don xxxxxxx&lt;br /&gt;&lt;b&gt;Sent:&lt;/b&gt; Saturday,  October 27, 2007 10:10 AM&lt;br /&gt;&lt;b&gt;To:&lt;/b&gt; Information Systems -  All&lt;br /&gt;&lt;b&gt;Subject:&lt;/b&gt; Please call me - Thanks&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-3744671958849660001?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/3744671958849660001/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=3744671958849660001' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/3744671958849660001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/3744671958849660001'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2007/10/i-wonder-how-many-phone-calls-he-got.html' title='I wonder how many phone calls he got'/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-9193356972193248</id><published>2007-08-22T14:51:00.000-07:00</published><updated>2007-08-22T15:02:50.954-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='games evil corporate steam valve securom'/><title type='text'>Bioshock</title><content type='html'>So I've been reading the forum angst about Bioshock. 2 main issues (thoughts follow): Widescreen support is fake &amp;amp; Game can only be "installed" on 2 PCs at once.&lt;br /&gt;&lt;br /&gt;The forums are full of rants about the widescreen being a jury-rigged afterthought. I say why do all the people using widescreen think its their god-given right to a wider aspect ratio? In counter-strike source, the wider screen lets you see people who can't see you - so why should they do the same in Bioshock? Why let the people who have purchased a widescreen monitor get possibly gameplay-altering advantages? These people need to STFU.&lt;br /&gt;&lt;br /&gt;The game also apparently installs "securom" with itself (even the STEAM version! say it isn't so!). This will track your installations with a master server, and only let you have 2 going on at once. If you uninstall, you get credit back apparently.&lt;br /&gt;&lt;br /&gt;I don't know what planet 2k games plays on, but I'm still installing games once in a while that are almost 10 years old. I installed quake3 a while ago for a LAN party, and I had my cdkey so no problem, but if the game had required me to talk to a probably-defunct auth server, I would have been screwed.&lt;br /&gt;&lt;br /&gt;Someone on the forums suggested a boycott (which I'm going to participate in). Another then suggested " "Boycotting such a fine game due to activation woes thought is not the right thing to do." I think boycotting is absolutely the RIGHT thing to do. The problem with an internet age with no morales is that the same people also have no principles. These whiney teenagers have no character to stand up for what they believe in. Resisting corporate control is an excellent thing to rebel against, not just so you can pirate stuff, but so your entertainment isn't under the constant scrutiny of corporate shills.&lt;br /&gt;&lt;br /&gt;So, my wife will be happy I'm not buying it - she hates when I get new obsessions.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-9193356972193248?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/9193356972193248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=9193356972193248' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/9193356972193248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/9193356972193248'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2007/08/bioshock.html' title='Bioshock'/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6460429891649965269.post-7433605699164530418</id><published>2007-06-12T13:39:00.001-07:00</published><updated>2007-06-12T17:41:00.690-07:00</updated><title type='text'>First Post!</title><content type='html'>Unlike the blathering of forum trolls, this actually means something this time. Having done reasonably well in english at higher levels of education, I haven't really written anything since then, and It think its time to adjust that.&lt;br /&gt;&lt;br /&gt;My friends and co-workers joking call me the angry guy, but I don't think I"m any more angry than other IT workers, I'm just less polite about saying something about it. So hopefully this will serve as an outlet for me to talk about the things they do, so that I can leave that work angst at work, and enjoy my family time more.&lt;br /&gt;&lt;br /&gt;Anyway, I work IT at an energy company. The difference is the guys I work with are actually pretty smart, instead of the usual IT trolls. So work is tolerable, but lots of the others... well the stories will follow.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6460429891649965269-7433605699164530418?l=itangst.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://itangst.blogspot.com/feeds/7433605699164530418/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6460429891649965269&amp;postID=7433605699164530418' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/7433605699164530418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6460429891649965269/posts/default/7433605699164530418'/><link rel='alternate' type='text/html' href='http://itangst.blogspot.com/2007/06/first-post.html' title='First Post!'/><author><name>Max</name><uri>http://www.blogger.com/profile/17326352324326430797</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
