dbretty / EUCMonitoring

End User Compute Monitoring Platform that is FREE and based on PowerShell. Will cover Citrix, VMware and Microsoft technologies. Driven and written by the community for the community
http://bretty.me.uk
Apache License 2.0
37 stars 19 forks source link

Test-XDSessionInfo GetZone #63

Open Varjotiger opened 5 years ago

Varjotiger commented 5 years ago

Good afternoon all,

I was wondering if anyone would be able to assist with the issue below. I have tested loading the Snapin manually and this issue does not occur.

Error: The following PS Snapin does not appear to be loading as I am receiving a GetZone error. $ctxsnap = Add-PSSnapin Citrix.Configuration.Admin.* -ErrorAction SilentlyContinue $ctxsnap = Get-PSSnapin Citrix.Configuration.Admin.* -ErrorAction SilentlyContinue

Current Behavior

Get-ConfigZone : A database operation failed and could not be recovered : Reason Unrecognised operation name: GetZone At C:\Program Files\WindowsPowerShell\Modules\EUCMonitoring\2.0.1\Private\Test-XdSessionInfo.ps1:55 char:23

  • $ZoneNames = (Get-ConfigZone -AdminAddress $Broker).Name
  • 
    + CategoryInfo          : InvalidOperation: (:) [Get-ConfigZone], InvalidOperationException
    + FullyQualifiedErrorId : Citrix.XDPowerShell.Status.DatabaseError,Citrix.Configuration.Sdk.Commands.GetConfigZone
    Command

You cannot call a method on a null-valued expression. At C:\Program Files\WindowsPowerShell\Modules\EUCMonitoring\2.0.1\Private\Test-Series.ps1:372 char:37

  • ... if ("Boolean" -ne $Values.GetType().Name) {
  • 
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Your Environment

Function Test-XdSessionInfo { <#
.SYNOPSIS
Returns Stats of the XenDesktop Sessions .DESCRIPTION Returns Stats of the XenDesktop Sessions .PARAMETER Broker XenDesktop Broker to use for the checks .NOTES Current Version: 1.0 Creation Date: 29/03/2018 .CHANGE CONTROL Name Version Date Change Detail David Brett 1.0 29/03/2018 Function Creation Adam Yarborough 1.1 07/06/2018 Update to new object model Adam Yarborough 1.2 20/06/2018 Session Information .EXAMPLE None Required

Apologies if the format of this is not correct, I am new to github.

Many thanks,

Varjotiger

littletoyrobots commented 5 years ago

Is the Citrix Configuration Service running on the delivery controller you're querying against?