Wednesday, 25 September 2013

Simple vCloud Director healthtest with Powershell

There is ALWAYS a better way to write Powershell, but my definition of success for this task was "quick to write", and "does the job"!

Feel free to amend to your own requirements - and don't forget to change the hostnames ;)

#Setup http client
$webClient = new-object System.Net.WebClient
$webClient.Headers.Add("user-agent", "PowerShell Script")
#Get content of VCD health page
$cell1health = $webClient.DownloadString("https://cloudcell01/cloud/server_status")
$cell2health = $webClient.DownloadString("https://cloudcell02/cloud/server_status")
#Guilty unless proven innocent!
$cell1ActionRequired = "Yes"
$cell2ActionRequired = "Yes"
#Determine is server is healthy
if ($cell1health -eq "Service is up.") {$cell1actionrequired = "No"}
if ($cell2health -eq "Service is up.") {$cell2actionrequired = "No"}
#Write results to screen
write-host "Cell1 action required: " $cell1ActionRequired
write-host "Cell2 action required: " $cell2ActionRequired




Friday, 13 September 2013

Passed my VCA Cloud exam today

Passed my VCA-Cloud exam today - VMWare Certified Associate-Cloud - I'd recommend it for those working in the cloud arena, as a pre-cursor to the VCP-Cloud obviously! No expensive VMWare course necessary (unlike the VCP) - glad I already have my VCP!

http://mylearn.vmware.com/mgrReg/plan.cfm?plan=41165&ui=www_cert

Thursday, 5 September 2013

Increase your free dropbox from 2GB to 5GB :>

This 'trick' is about a year old, but as I use dropbox extensively to 'carry around' IT PDFs, as well as a library of powershell scripts I've written in the form of snippets, I found this tip to be very useful!

Enable photo syncing on the iphone dropbox app, and as you upload your photos and breach your 2GB limit, you are given a new permanent limit, free of charge, of 2.5GB. Keep going all the way up to 5GB, then if you want to, stop using it and delete the photos!

I already use the icloud control panel to sync my photostream with my windows PC, so I don't need this dropbox feature.

If you want to force the limit more quickly, apparently you can create and sync a video instead.

One caveat - make sure you have the space free on your phone first - filling it up can be a pain!