<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>System Administration on Forward or Reverse</title>
    <link>https://blog.wannemacher.us/categories/system-administration/</link>
    <description>Recent content in System Administration on Forward or Reverse</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Thu, 26 Mar 2015 13:05:54 +0000</lastBuildDate>
    
	<atom:link href="https://blog.wannemacher.us/categories/system-administration/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Red Hat CloudForms/ManageIQ – Examples</title>
      <link>https://blog.wannemacher.us/posts/p558/</link>
      <pubDate>Thu, 26 Mar 2015 13:05:54 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p558/</guid>
      <description>For me, one of the easier ways to begin to learn something is to learn by example. Even if the example does not solve my exact problem, I can use it to figure out ways of extracting the information I need and patterns for implementing new functionality. As a response to a forum question regarding provisioning approvals, Kevin Morey pointed out a Github repository that I was unaware of (https://github.com/ramrexx/CloudFormsPOC). This repo is a great source of example code to get you started exploring more advanced usage of CloudForms.</description>
    </item>
    
    <item>
      <title>Foreman ESXi Installation Never Completes</title>
      <link>https://blog.wannemacher.us/posts/p540/</link>
      <pubDate>Fri, 21 Nov 2014 19:36:10 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p540/</guid>
      <description>In our environment we want to use Foreman to build our OCP hardware. It was working well except that the installation would repeatedly PXE boot to reinstall because Foreman would not know that the PXE portion was complete.
The standard notification code below was failing for some reason.
1 2  %post --interpreter=busybox --ignorefailure=true wget -O /dev/null &amp;lt;%= foreman_url %&amp;gt;   After running the unattended install in a Fusion VM so I could have console access I reviewed the install log and a misleading message from wget about the URL being bad.</description>
    </item>
    
    <item>
      <title>OpenZIS installation guide</title>
      <link>https://blog.wannemacher.us/posts/p516/</link>
      <pubDate>Fri, 31 Jan 2014 01:59:01 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p516/</guid>
      <description>I have spent a day or so trying to get the OpenZIS project up and running on a CentOS machine. A lack of updated instructions and an older code base made this process harder than I expected.
While I am still investigating if OpenZIS will meet my needs, I wanted to publish what I did as a reference to others who might try to install it. The doc is in my forked version of OpenZIS.</description>
    </item>
    
    <item>
      <title>Problems with intuitive availability calculations</title>
      <link>https://blog.wannemacher.us/posts/p482/</link>
      <pubDate>Thu, 09 Feb 2012 00:36:54 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p482/</guid>
      <description>I often see/hear comments from people whose common sense approach to availability design includes eliminating a single point of failure. This is a great goal when required, but care must be take that the &amp;ldquo;common sense&amp;rdquo; approach is actually achieving what is required. I have found that using a fault tree approach to evaluating design decisions can be insightful.
The last instance of this is a book, while otherwise great, gave the advice of separating a database from the application function onto separate servers because there was a single point of failure.</description>
    </item>
    
    <item>
      <title>Helpful Commands for vCenter Linked Mode Troubleshooting</title>
      <link>https://blog.wannemacher.us/posts/p423/</link>
      <pubDate>Wed, 13 Apr 2011 21:13:00 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p423/</guid>
      <description>Launch the command prompt via: Start | Programs | ADAM | ADAM Tools Command Prompt
 dsdiag.exe /s:localhost:389 repadmin.exe /viewlist * /homeserver:localhost:389 repadmin.exe /replsummary * /homeserver:localhost:389 repadmin.exe * /repsto /homeserver:localhost:389 repadmin.exe /showconn * /homeserver:localhost:389  </description>
    </item>
    
    <item>
      <title>Quick Memory Allocation for Limit / Reservation Testing in VMware</title>
      <link>https://blog.wannemacher.us/posts/p419/</link>
      <pubDate>Tue, 12 Apr 2011 16:57:03 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p419/</guid>
      <description>I am testing the impact and behavior of memory limits and reservations along with balloon drivers and I needed a quick way to allocate memory in a user program.
PowerShell to the rescue. This isn’t a good method for exact memory allocation, but you can consume MBs to GBs of memory pretty quickly.
1 2 3 4 5  # Allocate memory by creating a large string. Divide the length by 4 # (Unicode size) to get an approximation of the MB allocation.</description>
    </item>
    
    <item>
      <title>Quick and dirty PowerPath/VE output parser</title>
      <link>https://blog.wannemacher.us/posts/p383/</link>
      <pubDate>Thu, 28 Oct 2010 18:47:15 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p383/</guid>
      <description>Here is a quick and dirty PowerShell script to parse the output of the rpowermt command used to manage PowerPath/VE on ESX (for EMC arrays). I wrote the code quickly to solve a particular problem, but if I get requests I could extend it to parse the rest of the output and do so in a little more robust fashion.
Why do this? I am in the middle of migrations between frames and I needed an easy way to determine what needed moved when the storage admin said move all LUNs from CLARiiON XXXX to the new LUNs on YYYY – and make sure to move LUN 41 to LUN 88.</description>
    </item>
    
    <item>
      <title>Recovering from lockdown mode, a corrupt vCenter, and no DCUI</title>
      <link>https://blog.wannemacher.us/posts/p375/</link>
      <pubDate>Fri, 22 Oct 2010 18:43:58 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p375/</guid>
      <description>One of the worst case scenarios when securing an ESXi host is disabling the DCUI, enabling lockdown mode, and then losing vCenter for some reason. If your vCenter database is corrupt then you have lost the ability to manage the host. The official answer at this point is to rebuild the host. While I hope you have an automated build process that would make this easy, there is at least one other option to recover your system.</description>
    </item>
    
    <item>
      <title>VMware Update Manager: Different non-critical host updates for Nexus</title>
      <link>https://blog.wannemacher.us/posts/p365/</link>
      <pubDate>Mon, 09 Aug 2010 15:24:45 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p365/</guid>
      <description>I have 5 difference vCenter servers installed over various timeframes and I am seeing different counts for the Non-Critical Host Updates across them. After some digging it appears that this is due to the Nexus 1000v updates.
We have not deployed the Nexus to production yet so this was a little confusing for me. It appears that when Update Manager is installed it downloaded the patches for the Nexus 1000v, but they are not included in the updates that are downloaded because we have none running in the environment and Update Manager was not configured to download them.</description>
    </item>
    
    <item>
      <title>PXE booting ESXi 4.1 installer from Altiris(HP RDP)</title>
      <link>https://blog.wannemacher.us/posts/p356/</link>
      <pubDate>Fri, 06 Aug 2010 19:24:22 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p356/</guid>
      <description>I am looking to do PXE booting of the ESXi installer as the first step in rolling out my new automated deployment solution. We already have an Altiris (HP RDP) PXE server in house for Windows deployments so I needed to figure out a way to make it work. Below is the first phase of this using standard pxelinux and not gPXE.
 Download the ESXi 4.1 installable release from VMware Download the current 3.</description>
    </item>
    
    <item>
      <title>Understanding VMware VMkernel Traffic Routing</title>
      <link>https://blog.wannemacher.us/posts/p327/</link>
      <pubDate>Tue, 29 Jun 2010 17:52:11 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p327/</guid>
      <description>As a basis for an upcoming post on splitting vmkernel traffic across over layer 3 boundaries I wanted to describe how vmkernel traffic is routed on an ESX host. There seems to be a lot of confusion in this area and hopefully this will help to clear it up.
If you need a refresher on IP addresses, network masks, or subnets check out this Cisco article.
Directly Connected Networks
If a host is directly connected to a subnet it will use that interface to talk to devices in that subnet.</description>
    </item>
    
    <item>
      <title>Bulk password change on ESX hosts</title>
      <link>https://blog.wannemacher.us/posts/p304/</link>
      <pubDate>Sun, 30 May 2010 11:00:47 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p304/</guid>
      <description>Here is an script to make life a little easier when doing bulk updates to a password for an account as long as the account has a common password on the different hosts.
The script has some documentation in it so make sure to use Get-Help to find more detail.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25  Get-Help .</description>
    </item>
    
    <item>
      <title>Unable to install ESX400-201002401 or ESX400-200912401</title>
      <link>https://blog.wannemacher.us/posts/p295/</link>
      <pubDate>Fri, 30 Apr 2010 00:33:51 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p295/</guid>
      <description>Update Manager 4.0 Update 1 was refusing to install either of these two patches. At first I was confused because I did not have Nexus deployed, but this was looking similar to the problem that Update 1 was supposed to fix.
I downloaded the bundle from VMware’s web site and tried to install the patch manually and got this error:
The following problems were encountered trying to resolve dependencies: cross_emulex-cim-provider_400.2.0.27.1-164009 provides &amp;#39;emulex-cim-provider &amp;gt;= 400.</description>
    </item>
    
    <item>
      <title>VMware vCLI “persistent login”</title>
      <link>https://blog.wannemacher.us/posts/p270/</link>
      <pubDate>Mon, 08 Feb 2010 21:32:51 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p270/</guid>
      <description>Here is a short convenience script that will simulate a persistent login to a VMware host system when using the vCLI on Windows. Typically you have to specify a lot of parameters that include login information or a session file. With this method you just run the script and provide the hostname, username, and password for the connection.
After running this script you can run commands like &amp;ldquo;vicfg-mpath.pl &amp;ndash;list&amp;rdquo; without additional parameters.</description>
    </item>
    
    <item>
      <title>VMware SRM – finding VMs in a recovery plan</title>
      <link>https://blog.wannemacher.us/posts/p242/</link>
      <pubDate>Mon, 30 Nov 2009 20:33:47 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p242/</guid>
      <description>I am evaluating VMware Site Recovery Manager (SRM) and there are some things that I need to do in testing that I can not do in the base product. I am going to run some PowerShell to reconfigure the VMs and rename them. One of the first roadblocks is finding out which VMs are part of a particular recovery plan. Since the SRM API is limited I went into the database and dug around.</description>
    </item>
    
    <item>
      <title>Maximum vSwitches in vSphere</title>
      <link>https://blog.wannemacher.us/posts/p235/</link>
      <pubDate>Mon, 24 Aug 2009 20:55:05 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p235/</guid>
      <description>There appears to be a discrepancy in the VMware documentation regarding the maximum number of vSwitches. The Configuration Maximums document states that the limit is 248. The configuration guide lists the maximum as 127 which is what it was in 3.5. I am not sure if I misunderstand what they mean by &amp;ldquo;Standard switches per host 248&amp;rdquo;. If you see the error of my ways let me know.
Here is some code that I used to see how many vSwitches I could put on a host.</description>
    </item>
    
    <item>
      <title>Ohio LinuxFest 2009</title>
      <link>https://blog.wannemacher.us/posts/p222/</link>
      <pubDate>Mon, 27 Jul 2009 13:00:12 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p222/</guid>
      <description>If you are anywhere around Ohio and interested in Linux you may want to check out Ohio LinuxFest 2009. It is being held September 25th &amp;amp; 26th in Columbus Ohio.
This will be my first year attending, but I have heard good things about the conference and am looking forward to talking with some other Open Source enthusiasts in the area.</description>
    </item>
    
    <item>
      <title>Secure Credential Storage</title>
      <link>https://blog.wannemacher.us/posts/p169/</link>
      <pubDate>Thu, 09 Apr 2009 15:01:12 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p169/</guid>
      <description>I have added some code to my Scripts/Programs page for securely storing credentials to disk to be used by scripts at a later time.
I explored the VI Credential cmdlets and I was not 100% happy with them so I decided to implement my own version that uses the Microsoft DPAPI for encryption. Make sure to look at the README as it covers usage and current limitations.
I wrote these for use in some automated VMware monitoring I am doing, but there is no reason they have to be used with the VI Toolkit.</description>
    </item>
    
    <item>
      <title>Using clusterssh to admin multiple service consoles</title>
      <link>https://blog.wannemacher.us/posts/p153/</link>
      <pubDate>Thu, 26 Mar 2009 12:00:58 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p153/</guid>
      <description>We have our service consoles set up to disallow root logins and use sudo (with password) for access. Every once in a while this causes us some pain. How do you update file /etc/filex or run some command across a cluster or a bunch hosts when root privileges are needed?
There are multiple ways to approach this type of issue, but one I have not seen much of in the VMware blogosphere is clusterssh.</description>
    </item>
    
    <item>
      <title>VI SDK – Beware cached data and assumptions</title>
      <link>https://blog.wannemacher.us/posts/p141/</link>
      <pubDate>Mon, 23 Mar 2009 12:00:00 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p141/</guid>
      <description>Applications often cache data and that is good because that generally makes them perform better for users. However, if you make assumptions that what you see is the absolute truth you can run into trouble.
1 2 3 4 5 6 7 8 9  Connect-ViServer myVirtualCenter001 # Let&amp;#39;s check the status of the server to make sure I can go home. (Get-vmhost myVmHost001.local | Get-View).OverallStatus green #Looks good. Well, maybe not.</description>
    </item>
    
    <item>
      <title>Validating VM advanced settings</title>
      <link>https://blog.wannemacher.us/posts/p135/</link>
      <pubDate>Fri, 20 Mar 2009 12:00:17 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p135/</guid>
      <description>Now that we have covered how to make advanced settings changes we need to validate that the settings have been applied. Assuming that a script or command worked is never as good as checking it. Below is a script to do just that.
The script lists all statuses so if you only want to see issues you can pipe the output into the Where-Object cmdlet like so:
&amp;lt;vmObject(s)&amp;gt; | .\Validate-VmAdvancedSettings.ps1 | Where-Object {$_.</description>
    </item>
    
    <item>
      <title>Making advanced settings changes to a running VM</title>
      <link>https://blog.wannemacher.us/posts/p130/</link>
      <pubDate>Thu, 19 Mar 2009 15:58:14 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p130/</guid>
      <description>If you use a method like that in the Powershell script I posted the changes can be made to a running VM. This is great because that dialog box is disabled in Virtual Center when the vm is up.
The settings do not take effect until the VM is power cycled (not just restarted in the OS). This is not that big of a deal on clusters with VMotion licensed because a VMotion starts a new instance of the VM on the destination host.</description>
    </item>
    
    <item>
      <title>Get-AllRolePrivileges</title>
      <link>https://blog.wannemacher.us/posts/p79/</link>
      <pubDate>Thu, 12 Mar 2009 12:00:57 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p79/</guid>
      <description>This is a good script to easily report on privileges and can easily be extended to audit against a known good list of expected roles/privileges.
1 2 3 4 5 6 7 8 9 10 11 12 13 14  # Must already be connected to a viserver. This works on the default vi server. $si = Get-View ServiceInstance $am = Get-View ($si.Content.AuthorizationManager) $roles = $am.RoleList foreach ($role in $roles) { foreach ($privilege in $role.</description>
    </item>
    
    <item>
      <title>Script to update tools in templates.</title>
      <link>https://blog.wannemacher.us/posts/p99/</link>
      <pubDate>Tue, 10 Mar 2009 15:50:12 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p99/</guid>
      <description>Here is a script that takes template objects and updates their VMware tools.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42  # Usage: &amp;lt;template object(s)&amp;gt; | .\Upgrade-ToolsTemplate.ps1 # Example: Get-Template template1 | .\Upgrade-ToolsTemplate.ps1 # Get-Datacenter corporate | Get-Template | .</description>
    </item>
    
    <item>
      <title>Validating Ubuntu Installed Files</title>
      <link>https://blog.wannemacher.us/posts/p25/</link>
      <pubDate>Thu, 08 Jan 2009 16:09:20 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p25/</guid>
      <description>I had an issue where I ran a vendor provided install script and my kernel sound drivers were deleted. I recovered them just fine, but it had me wondering about how I could be sure that no other files were missing or corrupted.
After some searching online I found a reference to someone checking a package using dpkg’s md5sums. This and some poking around gave me what I needed.
cd / sudo /usr/bin/md5sum -c /var/lib/dpkg/info/*.</description>
    </item>
    
    <item>
      <title>System Administration Podcast</title>
      <link>https://blog.wannemacher.us/posts/p22/</link>
      <pubDate>Fri, 05 Sep 2008 20:10:12 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p22/</guid>
      <description>This looks like it might be an interesting development – a system admin podcast. The first one covers some substantial topics and I look forward to more.
http://cuddletech.com/blog/pivot/entry.php?id=964</description>
    </item>
    
    <item>
      <title>Basic install of bcfg2 on ESX 3.5</title>
      <link>https://blog.wannemacher.us/posts/p17/</link>
      <pubDate>Wed, 27 Feb 2008 14:39:45 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p17/</guid>
      <description>I am working on the configuration management problem and have been toying with getting bcfg2 working on ESX 3.5. My goal is to have an isolated install that does not require modifying the existing system files or upgrading any packages. My approach to doing this is to create a local Python 2.5 install and install the bcfg2 packages there.
This is just a start, but I thought I would put it out there for anyone who wants to work on something similar.</description>
    </item>
    
    <item>
      <title>ESX Server Configuration Management</title>
      <link>https://blog.wannemacher.us/posts/p16/</link>
      <pubDate>Fri, 15 Feb 2008 19:53:14 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p16/</guid>
      <description>I am not very happy with the landscape of configuration management software out there for VMware ESX server. I am investigating using projects such as Bcfg2 to administer my servers. I am working with Bcfg2 because I do not have a lot of experience with these types of software and I am interested in learning more about Python.
Of course these types of packages fail when you look at ESX 3i, but I am not convinced that I will be an early adopter of that platform.</description>
    </item>
    
    <item>
      <title>IT Infrastructure Performance – Research</title>
      <link>https://blog.wannemacher.us/posts/p14/</link>
      <pubDate>Mon, 04 Feb 2008 12:52:44 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p14/</guid>
      <description>I have been working on methods to benchmark the Windows infrastructure team at work and I have not been finding much luck finding existing metrics. I was not too happy with the last Gartner review of our IT department, but perhaps that is all that is out there. I have developed some thoughts on the matter and once I am fairly certain they make sense I will post them here.</description>
    </item>
    
    <item>
      <title>Infrastructure Value != Utilization</title>
      <link>https://blog.wannemacher.us/posts/p11/</link>
      <pubDate>Fri, 11 Jan 2008 14:02:02 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p11/</guid>
      <description>A common problem in infrastructure groups is determining the value that we provide to the organization. One common way of thinking about this is in terms of asset utilization. Messages such as &amp;ldquo;take your servers from 5% utilization to 60%&amp;rdquo; are very common in virtualization value propositions, but I do not think that capacity utilization is the correct measurement of infrastructure value. That value is derived from being able to run an application at adequate performance levels.</description>
    </item>
    
    <item>
      <title>Forums – good or evil?</title>
      <link>https://blog.wannemacher.us/posts/p9/</link>
      <pubDate>Wed, 02 Jan 2008 14:46:11 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p9/</guid>
      <description>It amazes me the amount of incorrect information that is put on user forums. There are always mistakes and I have seen some posts where people realize and correct their errors. Primarily though, I see people ranting about &amp;ldquo;the correct way&amp;rdquo; when that way is not based in product knowledge, but rather on &amp;ldquo;it seemed to work&amp;rdquo;.
This reminds me of the time I went to the pet store to buy some activated charcoal after my dog ate some wild mushrooms.</description>
    </item>
    
    <item>
      <title>VMware Tools Update Job</title>
      <link>https://blog.wannemacher.us/posts/p7/</link>
      <pubDate>Wed, 26 Dec 2007 21:19:47 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p7/</guid>
      <description>I needed a way to allow our admins responsible for patching to include VMware Tools updates during a patch cycle. You can easily update via Virtual Center, but this requires multiple interfaces and it can be difficult to pick all of the same servers without making a mistake. I fired up Process Explorer and watched what VMware did with their existing tools update process. This is pretty cool since it does not require a network connection and your Tools install is up to date without needing to maintain a repository.</description>
    </item>
    
    <item>
      <title>Formalized System Administration Education</title>
      <link>https://blog.wannemacher.us/posts/p6/</link>
      <pubDate>Thu, 20 Dec 2007 15:37:08 +0000</pubDate>
      
      <guid>https://blog.wannemacher.us/posts/p6/</guid>
      <description>It is interesting to read about more formal approaches to system administrator education. I have been reading &amp;ldquo;Master Education Programmes in Network and System Administration&amp;rdquo; from the LISA 07 proceedings. The authors’ approach is an interesting one, but I wonder what we do for all of the administrators already &amp;ldquo;in the wild&amp;rdquo;? A training vs. education mentality and the difficulty of adult education make introduction of a program like this very difficult.</description>
    </item>
    
  </channel>
</rss>