Author Topic: Get IDs of all logged in Agents?  (Read 602 times)

Offline CallMeMaybe

  • Newbie
  • *
  • Posts: 9
  • Karma: 1
Get IDs of all logged in Agents?
« on: July 28, 2022, 12:47:31 AM »
How do I do this via the stat server?

Marked as best answer by CallMeMaybe on August 06, 2022, 10:58:28 AM

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 501
  • Karma: 23
Re: Get IDs of all logged in Agents?
« Reply #1 on: August 01, 2022, 10:08:00 AM »
I have never done that, but here comes a suggestion on how I would attempt to approach it and see if it actually works:

I would create one (or more) VAGs for your switch (or multiple switches) using the LoggedIn function for the script of the VAG (

Then, get the ExtendedCurrentStatus statistic for that VAG object and get the agents from the Actions property in object returned.

If, however, that does not work, another approach could be connect to Configuration Server, query for all Person objects with IsAgent = 2, and then use that result to query individual Agent objects (iterate through Configuration Server results) against Stat Server for any Statistical Type that has Category as CurrentNumber and LoggedIn as part of the Main Mask.