- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2017 03:51 PM
How to get the number of users logged in on each node through script? I know these stats are available in System Diagnostics page, but is there a way to pull that data to a script?
Thanks
Divya Yamani
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2017 04:09 PM
Hello Divya,
Thanks for the update. The below blog has detailed info on what you are looking for.
https://servicenowgems.com/2016/04/28/finding-logged-in-users/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2017 12:21 PM
The above link worked in logging users on different nodes, as the query runs on all the nodes each time and values are captured in log statements
As the above link mentions there is no possible way for different nodes in the same instance to communicate among themselves, so in that case how can we get the total logged in users on all nodes or on the instance as a whole?
I am also looking if these values can be sent to report section?
Thanks
Divya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2017 05:01 PM
best thing to do is to create a custom table to store the values using GlideRecord and have each node update the table with its values. This way it's then reportable.