your home for end-user virtualization!


Create a Logical Volume, EXT4 filesystem, mounted mount point and NFS export all via Puppet

I was building a NFS server for our users home directories to work with our FreeIPA implementation, and instead of setting up a logical volume, filesystem and mount point manually I decided to do it via Puppet. Since Puppet is our configuration management engine of choice, I might as well make something that’s reusable, right? […]

Tags: , , ,

Posted in Linux, Puppet | No Comments »

Using PowerCLI to remotely execute esxcli commands

First, make sure you’re using a version of PowerCLI that supports the get-esxcli cmdlet. In this case, I used a fresh install of PowerCLI 5.5. First, get-esxcli needs to be run against a single host individually, you can loop through you’re hosts later, but again, one at a time. So I did: $getcli = Get-EsxCli […]

Tags: ,

Posted in esxcli, PowerCLI, Powershell, vmware | 1 Comment »

Finding orphaned VMDK’s using PowerCLI

Here is a PowerCLI script I use to find all orphaned VMDK’s in my vCenter environment. $arrayVC = “virtualcenter2” Foreach ($strVC in $arrayVC) { Connect-VIServer $strVC $arrUsedDisks = Get-VM | Get-HardDisk | %{$_.filename} $arrUsedDisks += get-template | Get-HardDisk | %{$_.filename} $arrDS = Get-Datastore Foreach ($strDatastore in $arrDS) { $strDatastoreName = $ $ds = Get-Datastore -Name […]

Tags: , ,

Posted in PowerCLI, Powershell, Virtualization, vmware | No Comments »

Cisco PowerTool Contest helps popularize UCS scripting

Cisco has launched a UCS PowerTool Scriptng Contest, highlighting scripts by the UCS community members, then picking the “top” community written script. This is a brilliant move by Cisco to help popularize the PowerShell based API Cisco PowerTool. PoweShell is quickly becoming the go-to scripting languages for many IT organizations. Cisco has leveraged this popularity […]

Posted in Cisco UCS, Powershell, PowerTool | No Comments »