Monthly Archives: January 2015

Cool Tool Friday! – Onyx

Being a fan of scripting but still being what i’d consider a novice any tool that assists with figuring out how it all works is gold IMHO. enter VMware Onyx. This is a fling from VMware. If you are not familiar with VMware Flings look here. Flings are basically cool things built by folks at VMware to make your life easier! Onyx acts as a proxy between the VI client and vCenter. So all operations you do in the VI client are recorded and exposed in Onyx. Here is the official description:

Continue reading

Is it possible to script adding a storage provider in vCenter?

I posted this question on the VMTN communities and on Twitter but unfortunately was met with tumbleweed!

Continue reading

Cool Tool Friday! – hMailserver

I’ve decided to try and start a weekly cool tool series…could be a free tool or a cool feature of another tool etc..

My first entry is hMailserver

Its a simple open source mailserver that runs on windows and is ideal for lab use. I would do a how-to on how to setup but Frank Buechsel has already done that so here’s a link instead!!! Frank works for VMware GSS and is worth following if you are on twitter 

Link here

Restart Hung VM

In the lab during the week I came across a VM that was hanging intermittently. Being up the walls with other projects right now i decided to implement a script to check the VM intermittently and reset if it was hung until I get the chance to troubleshoot the issue. Added the following in a powershell script as a scheduled task in windows

# Load Windows PowerShell cmdlets for VMware
add-psSnapin VMWare* | out-null

# Connect To vCenter
Connect-VIServer -Server ServerName -User UserName -Pass Password | Out-Null

# Test Connection to the VM and reset if no response

$vm = Get-VM -Name VMName
if(!(Test-Connection -ComputerName VmHostName -Quiet))
Stop-VM -VM $vm -Confirm:$false -Kill
Start-VM -VM $vm

# Disconnect from vCenter
Disconnect-VIServer -Confirm:$False

New Year…New Blog Commitment!

So we’re well into the new year and I’ve decided to revive this blog and actually post some stuff! I started it a long long time ago and never really committed to it. But recently I’ve been inspired by projects like #Commitmas by Matt Brender @mjbrender More Info Here and the 30 posts in 30 days or #vDM30in30 started by i believe Melissa Palmer @vmiss33

So considering I posted about 4 times in 3 years I’m setting myself the challenge to post once a month for the rest of the year…not quite #vDM30in30 but i’ll get there! 🙂

In my day to day job i sometimes use scripts to automate one thing or the other..some i create myself…some i rip from other sites and modify to suit my use case and some you find are a perfect fit. I’ll post some of these (the interesting ones at least!). I’ll also try to post some useful Hybrid Cloud related bits as that’s my primary focus area right now.

Or maybe i wont and the tumble weed will roll in…tune in next week…same bat time…same bat channel…to find out!