This message was deleted.
# citrix-vad
s
This message was deleted.
w
Maybe something like (Get-BrokerSession -AdminAddress <DDCName> -DesktopGroupName <DGName>).Count I have no way to test this.
r
The Monitor API has a SessionActivitySummary API call you can use. Ill try to get soimething for you to work wiht.
Do you wnat it hourly
r
Yes sir. I am trying to write something myself. LOL but it is a failure so far.
Also, thanks Carl. Didn't mean to ignore your comment.
So far I have this # Import the Citrix Broker PowerShell module #Import-Module Citrix.Broker.Admin.V2 asnp Citrix* # Connect to the Citrix Delivery Services environment $adminAddress = "ddc01.lab.local" $site = Get-BrokerSite -AdminAddress $adminAddress # Get all delivery groups in the environment $deliveryGroups = Get-BrokerDesktopGroup # Create an empty array to store the sessions $sessions = @() # Iterate through each delivery group and retrieve the sessions foreach ($deliveryGroup in $deliveryGroups) { # Get the sessions for the delivery group $groupSessions = Get-BrokerSession -AdminAddress $adminAddress -DesktopGroupName $deliveryGroup.Name # Add the sessions to the array $sessions += $groupSessions } # Create the HTML report $html = $sessions | ConvertTo-Html -Property DesktopGroupName, ClientIP, UserName, StartTime, SessionType, SessionId, MachineName # Save the HTML report to a file $html | Out-File "C:\Temp\sessions.html" Just need to figure out how to put columns in the html part
w
i thought you wanted only how many, not details. my doc scripts have included session data since 2013
r
Sorry, I did not explain it right then. This client wants a report every hour on DG name, username, How many session are in use on each DG, IP name. Things like that.
w
run the appropriate script as a scheduled task with -section groups -dg
r
The documentation script you have? Sorry Assuming that is the one you are talking about?
w
yes, for whichever xa/xd/cvad/daas you have
r
Ahh, Geez. I feel dumb now. Oh well. Thanks for pointing me there.
w
it may be more data than you need, but it gets you what you require
r
na its fine, It will be good. Thanks you sir.
w
what version of cvad?
r
2203
w
then use the v3 script
using the default html output with -adddatetime and each run of the script creates a unique file
and runs very fast
r
works good.
Thank you.
w
You are welcome