Skip to content

Commit

Permalink
Initial upload
Browse files Browse the repository at this point in the history
Initial upload
  • Loading branch information
alanrenouf committed Jul 13, 2013
1 parent 6c65751 commit 8679b12
Show file tree
Hide file tree
Showing 21 changed files with 501 additions and 1 deletion.
1 change: 1 addition & 0 deletions EndScript.ps1
@@ -0,0 +1 @@
# Everything in this script will run at the end of vCheck
Binary file added GlobalVariables.ps1
Binary file not shown.
Binary file added Header.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions Plugins/00 Connection Plugin for vCD.ps1
@@ -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


21 changes: 21 additions & 0 deletions Plugins/01 General Information.ps1
@@ -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 added Plugins/02 ORG Permissions and Roles.ps1
Binary file not shown.
Binary file added Plugins/03 ORG Policy Settings.ps1
Binary file not shown.
Binary file added Plugins/04 ORG Roles Defined.ps1
Binary file not shown.
Binary file added Plugins/05 ORG vApp Details.ps1
Binary file not shown.
Binary file added Plugins/06 ORG User Details.ps1
Binary file not shown.
Binary file added Plugins/07 ORG vApp Details.ps1
Binary file not shown.
Binary file added Plugins/08 ORG Catalog Details.ps1
Binary file not shown.
Binary file added Plugins/09 ORG Catalog List and Items.ps1
Binary file not shown.
Binary file added Plugins/10 ORG VDCs list.ps1
Binary file not shown.
Binary file added Plugins/11 vApp Network list.ps1
Binary file not shown.
Binary file added Plugins/12 VM Network list.ps1
Binary file not shown.
Binary file added Plugins/13 VApp Firewall rules.ps1
Binary file not shown.
15 changes: 15 additions & 0 deletions Plugins/VeryLastPlugin Used to Disconnect.ps1
@@ -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 added Plugins/vCDAuditPlugins.zip
Binary file not shown.
13 changes: 12 additions & 1 deletion README.md
@@ -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

0 comments on commit 8679b12

Please sign in to comment.