Hello
I have to inventory a running VI3 envirement for migration to another location. For this i have to do an collection of all existing items from this like:
- Cluster Name
- Host Name
- Host Type (System, RAM, CPU)
- VM Name
- VM Configuration (vCPU, vRAM, Limits, Reservations, vHDDs, ...)
- Cluster Performance over last month (RAM, CPU)
- Host Performance over last month (RAM, CPU)
Best way is only press a button to collect this data from VC. Output like an Excel Sheet where prefered.
The envirement looks like:
1 VC
100 Hosts
1100 VMs
Did anyone knows a tool which can do this?
Greets
Dschingis
Hello,
Check out Veeam Reporter as well as Alan Renouf's vDiagram Script (http://www.virtu-al.net)
Best regards,
Edward L. Haletky
VMware Communities User Moderator, VMware vExpert 2009
====
Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.
Blue Gears and SearchVMware Pro Blogs -- Top Virtualization Security Links -- Virtualization Security Round Table Podcast
http://www.thevesi.org/index.jspa
check those out....
-
@Texiwill
THX looking great ... but i doesn't get it working.
I installed Powershell, i installed VI Toolkit, Viso allready exist.
If i run script in a powershell, i get the following messages:
PS D:\> D:\VMware\vDiagram\vDiagram.ps1 -VIServer 164.26.203.75
Connecting to 164.26.203.75
The term 'Connect-VIServer' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again.
At D:\VMware\vDiagram\vDiagram.ps1:58 char:29
+ $VIServer = Connect-VIServer <<<< $VIServer
Exception calling "Add" with "1" argument(s): "
Datei nicht gefunden."
At D:\VMware\vDiagram\vDiagram.ps1:62 char:34
+ $stnObj = $AppVisio.Documents.Add( <<<< $stnPath + $shpFile)
You cannot call a method on a null-valued expression.
At D:\VMware\vDiagram\vDiagram.ps1:63 char:30
+ $VCObj = $stnObj.Masters.Item( <<<< "Virtual Center Management Console")
You cannot call a method on a null-valued expression.
At D:\VMware\vDiagram\vDiagram.ps1:64 char:32
+ $HostObj = $stnObj.Masters.Item( <<<< "ESX Host")
You cannot call a method on a null-valued expression.
At D:\VMware\vDiagram\vDiagram.ps1:65 char:30
+ $MSObj = $stnObj.Masters.Item( <<<< "Microsoft Server")
You cannot call a method on a null-valued expression.
At D:\VMware\vDiagram\vDiagram.ps1:66 char:30
+ $LXObj = $stnObj.Masters.Item( <<<< "Linux Server")
You cannot call a method on a null-valued expression.
At D:\VMware\vDiagram\vDiagram.ps1:67 char:34
+ $OtherObj = $stnObj.Masters.Item( <<<< "Other Server")
You cannot call a method on a null-valued expression.
At D:\VMware\vDiagram\vDiagram.ps1:68 char:31
+ $CluShp = $stnObj.Masters.Item( <<<< "Cluster")
The term 'Get-Cluster' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again.
At D:\VMware\vDiagram\vDiagram.ps1:70 char:17
+ If ((Get-Cluster) <<<< -ne $Null){
Exception calling "SaveAs" with "1" argument(s): "
Konflikt bei der Dateifreigabe. Auf die Datei kann nicht wie gewünscht zugegriffen werden."
At D:\VMware\vDiagram\vDiagram.ps1:171 char:15
+ $DocObj.SaveAs( <<<< "$Savefile")
Document saved as d:\Documents and Settings\karn.jochen\My Documents\My_vDrawing.vsd
{color:#ff0000}The term 'Disconnect-VIServer' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again.
At D:\VMware\vDiagram\vDiagram.ps1:176 char:20
+ Disconnect-VIServer <<<< -Server $VIServer -Confirm:$false
Did you have any idea what happen?
Thx
Dschingis
Thanks for recommending my script guys
@dschingis, If you are running it straight as a script rather than through powergui or another editor or the VI toolkit prompt you will need to add the following to the top:
Add-PSSnapin VMware.VimAutomation.Core
This adds the VI Toolkit snapin to powershell.
If you found this information useful, please consider awarding points for Correct or Helpful.
Alan Renouf
I would definitely try VESI though, its great and has not only the vDiagram script built in but some really nice html exports and exports to csv, xml and many other features.
Check here for some screenshots of the html reports...
http://www.virtu-al.net/2009/04/15/the-turtle-has-landed-the-ves-is-here/
If you found this information useful, please consider awarding points for Correct or Helpful.
Alan Renouf
Also take a look at this VMware Health Check Script I wrote: http://communities.vmware.com/docs/DOC-9420 (there are some samples of what the output may look like)
=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at:
If you find this information useful, please award points for "correct" or "helpful".