A. Mikkelsen

VMware ESX scripts, commands, tools and other nice to know things that will make your virtualization days easier!!!!

Browsing Posts in Scripting

A few weeks ago I came across a podcast on http://get-scripting.blogspot.com about Powershell. I highly recommend that all people using powershell check it out. Get the latest and the archived podcasts at http://get-scripting.blogspot.com/search/label/podcast

Today I needed to create a list of all users connected to a vCenter sever through the Client. And during so I created a few variants 🙂 This creates a list of all usernames connected to the vCenter server through a vCenter Client. $svcRef = new-object VMware.Vim.ManagedObjectReference $svcRef.Type = “ServiceInstance” $svcRef.Value = “ServiceInstance” $serviceInstance = […]

Yesterday we released version 49 of the ESXHealthScript. Kenneth Mazie. (kcmazie aka. kcmjr) has done a huge job in updating and adding new features to the script. Added automatic detection for ESX 3 or ESX 4 Added corrections for changes with ESX4 Added Cisco CDP info listing (from user Carson) Added corrections to v4 tomcat […]

Playing with PowerCLI

8 comments

Last week I attended a Magirus course on administrating you VMware environment using PowerCLI, and below is some of the small scripts I created. These code sniplets will help you manage your VMware environment and give you some ideas of how powerful the VMware PowerCLI really is. I’m sure VMware will add even more CMDLETS […]

Project Onyx Alpha Release

No comments

Finally everyone outside the closed beta is now able to get hands on with the cool application Project Onyx. Thanks to Carter Shanklin Project overview – Got it from http://www.ntpro.nl/blog/archives/1330-Project-Onyx-Alpha-Release.html Onyx is a standalone application that serves as a proxy between the vSphere Client and the vCenter Server. It monitors the network communication between them […]

This PowerShell script adds a host to a Cluster and licenses it. Add-PSSnapin VMware.VimAutomation.Core Connect-VIServer “VC_server_name” -User “Administrator” -Password “password” add-vmhost “esxhost” -location (get-datacenter -name ‘Datacenter’ | get-folder -name ‘Folder’ | get-cluster -name ‘Cluster’) -user “root” -password “password” -force: $true $targethostMoRef = (get-VMHost $strHost  | get-view).MoRef $si = Get-View ServiceInstance $LicManRef=$si.Content.LicenseManager $LicManView=Get-View $LicManRef $licassman = […]

VMware have released a demo on YouTube that shows a “must have” for PowerShell users who automate and manage vSphere and vCenter through PowerShell. The project is named “Onyx” and works like a middelware between the vCenter Client and the vCenter Server. Onyx is unfortunately still in a private beta and therefore not acceble to […]

http://communities.vmware.com/message/1286580#1286580 http://www.ivobeerens.nl/?p=256 http://www.configuresoft.com/esx-compliance-checker.aspx http://www.vmware.com/support/developer/vima/ http://www.run-virtual.com/?p=233 (VMware CPU Host Info) http://teckinfo.blogspot.com/2009/01/vdiagram-document-your-vi-with-one.html (vDiagram)

After almost 2 years of silence a new version of the ESXHealthScript has surfaced. Version 0.30 is released.

In this demo Ben (@xcud) takes a PowerCLI script that’s been transcribed into workflow activities and drop a ‘ToWMI’ activity at the end which causes the workflow to push the data retrieved from PowerCLI into WMI when the workflow is run. The workflow is set to run automatically every 5 seconds by being deployed as […]