Virtu-Al.Net

Virtually everything is poshable

Map your VI using Netmap

At the UK Powershell user group James used Netmap, I was intrigued with this and what it could do, with a few lines to integrate this into the VI toolkit I managed to get a nice map of which VM’s were on each host.

Download Netmap here and try it for yourself….

Connect-VIServer yourserver
$vmhs = Get-VM

$myCol = @()
ForEach ($vmh in $vmhs)
{
$myobj = “” | select-Object source, target
$myobj.source = $vmh.host
$myobj.target = $vmh.Name
$myCol += $myobj
}

$mycol | Export-Csv .\Temp.csv
Import-Csv .\Temp.csv | show-netmap

Im also working on a Visio script which will produce a much more pleasing to the eye report…Watch this space and let me know if you would like to test it for me in its early phases.

4 Responses to “Map your VI using Netmap”

  • techguru69 says:

    why do I get the error – “The term ‘show-netmap’ is not recognized as a cmdlet, funtion, operable program, or script file.” What do i need to load in PS to get that cmdlet?

  • techguru69 says:

    I would also be intersted in testing your Visio script. We have a very large global vmware installation and would be intersted in the results.

  • Virtu-Al says:

    You will need to download the netmap stuff from the link in the post and add my code to it. Drop me a mail and I will send you the Visio stuff when its ready, would also be interested to see the results of a global installation.

  • barry S says:

    how do you run the scruipt once the netmap has been downloaded

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>