0 Replies Latest reply on Feb 12, 2018 1:55 PM by Geoff Smith

    Citrix Broker and Establishment time

    Geoff Smith

      Hello, in looking for how to better track Citrix, I setup this simple script to monitor MIn, Max, Ave for BrokeringDuration and EstablishmentDuration in the previous 30 minutes.  I haven't been able to figure out how to get Solarwinds to track the durations of the various startup Phases, and if anyone has any suggestions I'm all ears.

       

      Add-PsSnapIn Citrix.Broker.Admin.V2;

       

       

      $BrokerInfo = Get-BrokerSession -Filter { BrokeringTime -ge '-0:30' -and BrokeringDuration -gt 0 -and EstablishmentDuration -gt 0 } -CatalogName NTNX*

       

       

      #$BrokerInfo | Measure-Object -Property EstablishmentDuration -Minimum -Maximum -Average

      $Establishment_Info = $BrokerInfo | Measure-Object -Property EstablishmentDuration -Minimum -Maximum -Average

       

       

      #$BrokerInfo | Measure-Object -Property BrokeringDuration -Minimum -Maximum -Average -Median

      $Brokering_Info = $BrokerInfo | Measure-Object -Property BrokeringDuration -Minimum -Maximum -Average

       

       

       

       

      write-host "Statistic.Established_Average:"([math]::Round($Establishment_Info.Average,2))

      write-host "Statistic.Established_Min:"$Establishment_Info.Minimum

      write-host "Statistic.Established_Max:"$Establishment_Info.Maximum

       

       

      write-host "Statistic.Brokering_Average:"([math]::Round($Brokering_Info.Average,2))

      write-host "Statistic.Brokering_Min:"$Brokering_Info.Minimum

      write-host "Statistic.Brokering_Max:"$Brokering_Info.Maximum