VMGuru.com - Home of the Virtualization Gurus

Our Books REALLY are Available Now!

Don’t become overwhelmed by your VMware Infrastructure project. Use the books that tens of thousands of others have used to design, plan, and implement their virtual infrastructures.Download Now!

Alan's vDiagram PowerShell Script PDF Print
Written by Scott Herold   
Tuesday, 27 January 2009 20:00

Every once in a while I see something that just makes me stop and say "Wow".  Alan Renouf (also famous from the Twit list PowerShell script) has done it again with a PowerShell script that uses Visio COM calls to construct a Visio diagram of a Virtual Infrastructure.  The first thing I noticed that I was privileged enough to have a number my Visio stencils included with this script.  I've taken the time to update my Visio stencil with updated graphics and with proper font sizing.  I should be able to release this super awesome new set once it clears my legal department, which I am hoping will be this week.

Not to steal any of Alan's thunder, I want to point to his original blog post.  I did need to modify one line of code to get the layout to properly map my VMs to their parent host.  I anticipate Alan making this change in short order, but for those interested:

Simply change line 93 From:

ForEach ($VM in (Get-vmhost $VMHost | get-vm))

 

To:

ForEach ($VM in (Get-vmhost $VMHost | get-vm -NoRecursion))

 

I've also included a screenshot of what my diagram looks like when I use my updated Stencil set.  I still need to work on text box sizing, but that's for another day.

Next up, of course, is taking Alan's script and porting it into a PowerGUI action.  While I'm at it, I'm also going to take a stab at mapping Network and Storage as well.

Trackback(0)
Comments (1)Add Comment
Alan
Alan
January 28, 2009
Votes: +0
Thanks

Hi Scott, im glad you like the script and thanks for the NoRecursion tip, I will add this to the original.

The new shapes look absolutely amazing, Hopefully we will all be able to use them soon !


Can't wait to see this in PowerGui, hopefully you will have more time to include storage and networking than Im getting.

Great work and Thanks for your help and use of the current shapes.

Alan

Write comment
You must be logged in to post a comment. Please register if you do not have an account yet.

busy
 

Buy on Amazon