vCheck has now been extended to work with Microsoft VMM with thanks to Jan Egil Ring over at blog.powershell.no, you can now check your VMM system with this report and retrieve a daily report showing the following great information:
- General Information
- Basic Host Information
- VMs with Snapshots
- New VMs
- VM Operating system Statistics
- VMs with mounted ISO
- Hyper-V Legacy VM Nic Adapters
- VMs with Static MAC Addresses
- Hyper-V Cluster shared volumes
- Dynamically Expanding Disks
- Dynamically Expanding Disks Consolidation Forecast
- Hyper-V Integration Components Version
- Hyper-V Capacity Reporter
Example Page
An example of the SCVMM report can be viewed by clicking here.
Download
To download this version of vCheck you can download the following file which includes the base script and all SCVMM plugins:
For more information on the base vCheck script and its framework including a demo of how to use it visit this page.
Windows2k8r2 sp1 — SCVMM 2k8r2
Basic PS user.
This is the first time you have run this script or you have re-enabled the setup
wizard.
To re-run this wizard in the future please use vCheck.ps1 -Config
To define a path to store each vCheck report please use vCheck.ps1 -Outputpath C
:\tmp
Please complete the following questions or hit Enter to accept the current setti
ng
After completing ths wizard the vCheck report will be displayed on the screen.
Index operation failed; the array index evaluated to null.
At D:\scvmm\vCheck.ps1:25 char:22
+ $Question = $file[ <<<< $Line]
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArrayIndex
[]:
Index operation failed; the array index evaluated to null.
At D:\scvmm\vCheck.ps1:25 char:22
+ $Question = $file[ <<<< $Line]
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArrayIndex
[]:
More errors………….
PS C:\vcheck> .\vCheck.ps1
Cannot index into a null array.
At C:\vcheck\vCheck.ps1:71 char:44
+ $SetupSetting = invoke-Expression (($file:[ <<<< $SetupLine]).Split("="))[1]
+ CategoryInfo : InvalidOperation: (0:Int32) [], RuntimeException
+ FullyQualifiedErrorId : NullArray
The expression after '.' in a pipeline element produced an invalid object. It m
ust result in a command name, script block or CommandInfo object.
At C:\vcheck\vCheck.ps1:344 char:54
+ $TTR = [math]::round((Measure-Command {$Details = . <<<< $_.FullName
}).TotalSeconds, 2)
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : BadExpression
I keep getting mulitple errors when using vcheck on SCVMM 2008 R2. There is atleast one error per plugin (see output below):
PS C:\> C:\vCheck\vCheck.ps1
Invoke-Expression : Cannot bind argument to parameter ‘Command’ because it is n
ull.
At C:\vCheck\vCheck.ps1:71 char:34
+ $SetupSetting = invoke-Expression <<<< (($file[$SetupLine]).Split("="))[1]
+ CategoryInfo : InvalidData: (:) [Invoke-Expression], ParameterB
indingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,M
icrosoft.PowerShell.Commands.InvokeExpressionCommand
Unexpected token '}' in expression or statement.
At C:\vCheck\Plugins01 SC VMM Connection Plugin.ps1:2 char:6
+ } <<<<
+ CategoryInfo : ParserError: (}:String) [], ParseException
+ FullyQualifiedErrorId : UnexpectedToken
8:53:17 AM ..finished calculating by v
Unexpected token '}' in expression or statement.
At C:\vCheck\Plugins02 General Information.ps1:2 char:2
+ } <<<< | Select-Object "Number of Hosts:","Number of VMs:","Number of Cluste
rs:","Active VMs:","In-active VMs:"
+ CategoryInfo : ParserError: (}:String) [], ParseException
+ FullyQualifiedErrorId : UnexpectedToken
8:53:17 AM ..finished calculating by v
8:53:17 AM ..finished calculating System Center Virtual Machine Manager – Basic
Host Information by Jan Egil Ring v1.0
8:53:17 AM ..finished calculating VMs with old snapshots by Jan Egil Ring v1.0
8:53:17 AM ..finished calculating New VMs by Jan Egil Ring v1.0
8:53:17 AM ..finished calculating VM Operating System Statistics by Jan Egil Rin
g v1.0
Unexpected token '}' in expression or statement.
At C:\vCheck\Plugins07 VMs with mounted ISO.ps1:2 char:6
+ } <<<<
+ CategoryInfo : ParserError: (}:String) [], ParseException
+ FullyQualifiedErrorId : UnexpectedToken
8:53:17 AM ..finished calculating VM Operating System Statistics by Jan Egil Rin
g v1.0
Unexpected token '}' in expression or statement.
At C:\vCheck\Plugins08 Hyper-V Legacy VM NIC Adapters.ps1:2 char:6
+ } <<<<
+ CategoryInfo : ParserError: (}:String) [], ParseException
+ FullyQualifiedErrorId : UnexpectedToken
8:53:17 AM ..finished calculating VM Operating System Statistics by Jan Egil Rin
g v1.0
Unexpected token '}' in expression or statement.
At C:\vCheck\Plugins09 VMs with static MAC address.ps1:2 char:6
+ } <<<<
+ CategoryInfo : ParserError: (}:String) [], ParseException
+ FullyQualifiedErrorId : UnexpectedToken
8:53:17 AM ..finished calculating VM Operating System Statistics by Jan Egil Rin
g v1.0
8:53:17 AM ..finished calculating Hyper-V Cluster Shared Volumes by Jan Egil Rin
g v1.0
Unexpected token '}' in expression or statement.
At C:\vCheck\Plugins11 SC VMM Dynamically Expanding Disks.ps1:2 char:6
+ } <<<<
+ CategoryInfo : ParserError: (}:String) [], ParseException
+ FullyQualifiedErrorId : UnexpectedToken
8:53:17 AM ..finished calculating Hyper-V Cluster Shared Volumes by Jan Egil Rin
g v1.0
Unexpected token '}' in expression or statement.
At C:\vCheck\Plugins12 SC VMM Dynamically Expanding Disks Consolidation Forec
ast.ps1:2 char:2
+ } <<<<
+ CategoryInfo : ParserError: (}:String) [], ParseException
+ FullyQualifiedErrorId : UnexpectedToken
8:53:17 AM ..finished calculating Hyper-V Cluster Shared Volumes by Jan Egil Rin
g v1.0
Unexpected token '}' in expression or statement.
At C:\vCheck\Plugins13 Hyper-V Integration Components Version.ps1:2 char:2
+ } <<<<
+ CategoryInfo : ParserError: (}:String) [], ParseException
+ FullyQualifiedErrorId : UnexpectedToken
8:53:18 AM ..finished calculating Hyper-V Cluster Shared Volumes by Jan Egil Rin
g v1.0
8:53:18 AM ..finished calculating Hyper-V 2008 R2 SP1 Capacity Report by Jan Egi
l Ring v1.0
8:53:19 AM ..finished calculating Plugins not up to date or not installed by Ala
n Renouf, Jake Robinson, Frederic Martin v1.3
Set-Location : Cannot find path 'C:\Plugins' because it does not exist.
At C:\vCheck\Plugins\Report on Plugins.ps1:20 char:5
+ cd <<<
Pingback: vNiklas Virtualization blog » SCVMM vCheck updated plugin for CSV status reporting
Pingback: System Center Virtual Machine Manager vCheck - PowerShell Tips
The problem was resolved, the if condition on the head of file “001 SC VMM Connection Plugin.ps1″ is wrong
I’ve this error: WARNING: SC VMM PowerShell cmdlets not available, the script is terminating
Can you help me?
Pingback: System Center Virtual Machine Manager vCheck - Jan Egil`s blog on Microsoft Infrastructure
Pingback: System Center Virtual Machine Manager vCheck « blog.powershell.no