Skip to content

Instantly share code, notes, and snippets.

@rnelson0
Created September 20, 2016 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rnelson0/a1acf936d858adc3836c130418cbe8e6 to your computer and use it in GitHub Desktop.
Save rnelson0/a1acf936d858adc3836c130418cbe8e6 to your computer and use it in GitHub Desktop.
vCheck SSL/TLS errors
[14:26:15] ..start calculating Snapshot activity by Chris Monahan, but is a minor mod of two plugins by Raphael Schitz
and Frederic Martin v1.0 [79 of 90]
Exception calling "CreateCollectorForEvents" with "1" argument(s): "The underlying connection was closed: Could not
establish trust relationship for the SSL/TLS secure channel."
At C:\powershell\vCheck-vSphere\Plugins\00 Initialize\00 Connection Plugin for vCenter.ps1:256 char:4
+ $eventCollector = Get-View ($eventMgr.CreateCollectorForEvents($eventFilter))
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : WebException
You cannot call a method on a null-valued expression.
At C:\powershell\vCheck-vSphere\Plugins\00 Initialize\00 Connection Plugin for vCenter.ps1:257 char:4
+ $eventsBuffer = $eventCollector.ReadNextEvents($eventnumber)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\powershell\vCheck-vSphere\Plugins\00 Initialize\00 Connection Plugin for vCenter.ps1:262 char:4
+ $eventCollector.DestroyCollector()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
[14:26:15] ..finished calculating Snapshot activity by Chris Monahan, but is a minor mod of two plugins by Raphael Schi
tz and Frederic Martin v1.0 [79 of 90]
[14:26:15] ..start calculating VMs with CPU or Memory Reservations Configured by Dan Jellesma v1.0 [80 of 90]
[14:26:15] ..finished calculating VMs with CPU or Memory Reservations Configured by Dan Jellesma v1.0 [80 of 90]
[14:26:15] ..start calculating VM Logging by Bob Cote v1.0 [81 of 90]
[14:26:17] ..finished calculating VM Logging by Bob Cote v1.0 [81 of 90]
[14:26:17] ..start calculating Find Phantom Snapshots by Mads Fog Albrechtslund v1.1 [82 of 90]
[14:26:29] ..finished calculating Find Phantom Snapshots by Mads Fog Albrechtslund v1.1 [82 of 90]
[14:26:29] ..start calculating VM Tools Not Up to Date by Alan Renouf, Shawn Masterson v1.0 [83 of 90]
[14:26:29] ..finished calculating VM Tools Not Up to Date by Alan Renouf, Shawn Masterson v1.0 [83 of 90]
[14:26:29] ..start calculating Multi-writer by Petar Enchev, Luc Dekens v1.0 [84 of 90]
[14:26:30] ..finished calculating Multi-writer by Petar Enchev, Luc Dekens v1.0 [84 of 90]
[14:26:30] ..start calculating BusSharingMode - Physical and Virtual by Petar Enchev, Luc Dekens v1.0 [85 of 90]
[14:26:30] ..finished calculating BusSharingMode - Physical and Virtual by Petar Enchev, Luc Dekens v1.0 [85 of 90]
[14:26:30] ..start calculating NonPersistent Disks by Petar Enchev, Luc Dekens v1.0 [86 of 90]
[14:26:31] ..finished calculating NonPersistent Disks by Petar Enchev, Luc Dekens v1.0 [86 of 90]
[14:26:31] ..start calculating VMs on Ephemeral Portgroup by Tim Williams v1.0 [87 of 90]
Get-VDPortgroup : 9/20/2016 2:26:31 PM Get-VDPortgroup The underlying connection was closed: Could not
establish trust relationship for the SSL/TLS secure channel.
At C:\powershell\vCheck-vSphere\Plugins\60 VM\200 VMs on ephemeral portgroup.ps1:4 char:31
+ $EphemeralPG = Get-VDSwitch | Get-VDPortgroup | where {$_.PortBinding -eq "Ephem ...
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-VDPortgroup], ViError
+ FullyQualifiedErrorId : Client20_MoServiceImpl_GetViNetView_ViError,VMware.VimAutomation.Vds.Commands.Cmdlets.Ge
tVDPortgroup
Get-NetworkAdapter : The input object cannot be bound to any parameters for the command either because the command
does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline
input.
At C:\powershell\vCheck-vSphere\Plugins\60 VM\200 VMs on ephemeral portgroup.ps1:5 char:9
+ @($VM | Get-NetworkAdapter | where {$_.NetworkName -contains $EphemeralPG} | Sel ...
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (VMware.Vim.VirtualMachine:PSObject) [Get-NetworkAdapter], ParameterBin
dingException
+ FullyQualifiedErrorId : InputObjectNotBound,VMware.VimAutomation.ViCore.Cmdlets.Commands.VirtualDevice.GetNetwor
kAdapter
[14:26:31] ..finished calculating VMs on Ephemeral Portgroup by Tim Williams v1.0 [87 of 90]
@meoso
Copy link

meoso commented Sep 20, 2016

@rnelson0 , unfortunately i'm not literate enough to answer your questions, i'm just another end-user of this product.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment