Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
21 changed files
with
501 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Everything in this script will run at the end of vCheck |
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
$Title = "Connection settings for vCD" | ||
$Author = "Alan Renouf" | ||
$PluginVersion = 1.0 | ||
$PluginCategory = "vCDAudit" | ||
$Display = "List" | ||
$Header = "Connection Settings" | ||
$Comments = "Connection Plugin for connecting to vCD" | ||
|
||
# Start of Settings | ||
# End of Settings | ||
|
||
# Adding PowerCLI vCD snapin | ||
if (!(get-pssnapin -name VMware.VimAutomation.Cloud -erroraction silentlycontinue)) { | ||
add-pssnapin VMware.VimAutomation.Cloud | ||
} | ||
|
||
Write-CustomOut "Connecting to CI Server" | ||
$CIServer = $Server | ||
$CIConnection = Connect-CIServer $CIServer -User Administrator -Password Ra1nb0w | ||
if (-not $CIConnection.IsConnected) { | ||
Write-Host "Unable to connect to vCloud Director, please ensure you have altered the vCloud Director server address correctly " | ||
Write-Host " to specify a username and password edit the connection string in the 00 Connection Plugin" | ||
break | ||
} | ||
|
||
Write-CustomOut "Collecting CIVM Objects" | ||
$CIVM = Get-CIVM | Sort Name | ||
Write-CustomOut "Collecting Catalog Objects" | ||
$Catalog = Get-Catalog | Sort Name | ||
Write-CustomOut "Collecting vApp Objects" | ||
$CIvApp = Get-CIVapp | Sort Name | ||
Write-CustomOut "Collecting Org Objects" | ||
$Org = Get-Org | Sort Name | ||
Write-CustomOut "Collecting OrgVDC Objects" | ||
$OrgvDC = Get-OrgvDC | ||
Write-CustomOut "Collecting ProviderVDC Objects" | ||
$ProviderVDC = Get-ProviderVdc | ||
Write-CustomOut "Collecting User Objects" | ||
$CIUser = Get-CIUser | ||
Write-CustomOut "Collecting Role Objects" | ||
$CIRole = Get-CIRole | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
$Title = "General Information" | ||
$Header = "General Information" | ||
$Comments = "" | ||
$Display = "List" | ||
$Author = "Alan Renouf" | ||
$PluginVersion = 1.0 | ||
$PluginCategory = "vCDAudit" | ||
|
||
# Start of Settings | ||
# End of Settings | ||
|
||
$Info = New-Object -TypeName PSObject -Property @{ | ||
"Number of Orgs:" = (@($Org).Count) | ||
"Number of Org VDCs:" = (@($OrgVDC).Count) | ||
"Number of Provider VDCs:" = (@($ProviderVDC).Count) | ||
"Number of vApps:" = (@($CIvAPP).Count) | ||
"Number of VMs:" = (@($CIVM).Count) | ||
"Active VMs:" = (@($CIVM | Where { $_.Status -eq "PoweredOn" }).Count) | ||
"In-active VMs:" = (@($CIVM | Where { $_.Status -eq "PoweredOff" }).Count) | ||
} | ||
$Info |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Start of Settings | ||
# End of Settings | ||
|
||
# Everything in this script will run at the end of vCheck | ||
If ($CIConnection) { | ||
$CIConnection | Disconnect-CIServer -Confirm:$false | ||
} | ||
|
||
$Title = "Disconnecting from vCD" | ||
$Display = "None" | ||
$Author = "Alan Renouf" | ||
$PluginVersion = 1.0 | ||
$PluginCategory = "vCDAudit" | ||
$Header = "Disconnect from vCD" | ||
$Comments = "Disconnect Plugin for vCD" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
vCheck-vCDAudit | ||
=============== | ||
|
||
vCheck vCD Audit | ||
vCheck Audit version for VMware vCloud Director (vCD) | ||
|
||
vCheck is a PowerShell HTML framework script, the script is designed to run as a scheduled task before you get into the office to present you with key information via an email directly to your inbox in a nice easily readable format. | ||
|
||
Unlike the vSphere health check script this is an audit script which retrieves and presents key vCD Data which is otherwise hard to find in a centralized place. | ||
|
||
More Info | ||
========= | ||
|
||
For more information please read here: http://www.virtu-al.net/vcheck-pluginsheaders/vcheck/ | ||
|
||
For an example vCDAudit output (doesnt contain all info) click here http://virtu-al.net/vcheck/ExamplePages/vCloudvCheck_8-3-2012.htm |
Oops, something went wrong.