<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question determine which node a user is logged into? in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/determine-which-node-a-user-is-logged-into/m-p/743603#M315382</link>
    <description>&lt;P&gt;I would like to be able to determine which node a user is logged into? I'm able to see logged in users (v_user_session) but if I understand correctly this list only contains user sessions on the node that I'm currently logged into. Is there a way to determine which node a user is logged into (which node they have an active session on)?&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;-Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 02 Dec 2014 17:02:03 GMT</pubDate>
    <dc:creator>bbarnard</dc:creator>
    <dc:date>2014-12-02T17:02:03Z</dc:date>
    <item>
      <title>determine which node a user is logged into?</title>
      <link>https://www.servicenow.com/community/itsm-forum/determine-which-node-a-user-is-logged-into/m-p/743603#M315382</link>
      <description>&lt;P&gt;I would like to be able to determine which node a user is logged into? I'm able to see logged in users (v_user_session) but if I understand correctly this list only contains user sessions on the node that I'm currently logged into. Is there a way to determine which node a user is logged into (which node they have an active session on)?&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;-Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2014 17:02:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/determine-which-node-a-user-is-logged-into/m-p/743603#M315382</guid>
      <dc:creator>bbarnard</dc:creator>
      <dc:date>2014-12-02T17:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: determine which node a user is logged into?</title>
      <link>https://www.servicenow.com/community/itsm-forum/determine-which-node-a-user-is-logged-into/m-p/743604#M315383</link>
      <description>&lt;P&gt;Hi Bryan,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;You can do a /stats.do after your Service-Now instance URL and in the following information you will be able to see your logged in Node.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;For User sessions you can use the Claimed By column to see which node the user is logged into.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Subhajit&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Dec 2014 17:47:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/determine-which-node-a-user-is-logged-into/m-p/743604#M315383</guid>
      <dc:creator>Subhajit1</dc:creator>
      <dc:date>2014-12-02T17:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: determine which node a user is logged into?</title>
      <link>https://www.servicenow.com/community/itsm-forum/determine-which-node-a-user-is-logged-into/m-p/743605#M315384</link>
      <description>&lt;P&gt;Claimed by on which table? I do not see a 'Claimed By column on the v_user_session table.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Dec 2014 17:58:59 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/determine-which-node-a-user-is-logged-into/m-p/743605#M315384</guid>
      <dc:creator>bbarnard</dc:creator>
      <dc:date>2014-12-02T17:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: determine which node a user is logged into?</title>
      <link>https://www.servicenow.com/community/itsm-forum/determine-which-node-a-user-is-logged-into/m-p/743606#M315385</link>
      <description>&lt;P&gt;Please ignore the earlier comment........i got confused between Running Scheduled jobs and Active Transactions.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Dec 2014 18:02:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/determine-which-node-a-user-is-logged-into/m-p/743606#M315385</guid>
      <dc:creator>Subhajit1</dc:creator>
      <dc:date>2014-12-02T18:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: determine which node a user is logged into?</title>
      <link>https://www.servicenow.com/community/itsm-forum/determine-which-node-a-user-is-logged-into/m-p/743607#M315386</link>
      <description>&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://www.servicenow.com/6.0.3.0/images/emoticons/happy.png"&gt;&lt;/SPAN&gt; no worries. I did a quick search of the dictionary and found claimed by on sys_trigger, thought maybe I was missing something. I don't think there is currently a way to achieve what I'm trying to do but hoping someone out there may have some up with a way to accomplish this. I think this could be accomplished by adding some event handler (script_action) and listening to login and session expiration events but that will require some modifications and I was hoping for an OOB solution for this.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Dec 2014 18:05:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/determine-which-node-a-user-is-logged-into/m-p/743607#M315386</guid>
      <dc:creator>bbarnard</dc:creator>
      <dc:date>2014-12-02T18:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: determine which node a user is logged into?</title>
      <link>https://www.servicenow.com/community/itsm-forum/determine-which-node-a-user-is-logged-into/m-p/743608#M315387</link>
      <description>&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Have you found something around this?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;BR&lt;BR /&gt;Marc.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Jan 2015 07:24:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/determine-which-node-a-user-is-logged-into/m-p/743608#M315387</guid>
      <dc:creator>march</dc:creator>
      <dc:date>2015-01-06T07:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: determine which node a user is logged into?</title>
      <link>https://www.servicenow.com/community/itsm-forum/determine-which-node-a-user-is-logged-into/m-p/743609#M315388</link>
      <description>&lt;P&gt;I think a simple way to do this for an individual user is to query the syslog_transaction table. Here's a basic script that should suite your needs. You can add it to a Script Include and call it from a UI Action on the User table to provide a quick way to find a user's node. Just keep in mind that any given user can have multiple sessions open with different browsers -- so you might want to use the session field of the syslog_transaction table to account for this. &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;function findUserNode(userID) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (userID)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; var logs = new GlideRecord('syslog_transaction');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; logs.addQuery('sys_created_by', userID);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; logs.addQuery('sys_created_on', '&amp;gt;', gs.minutesAgo(15)); // This is arbitrary&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; // You should add an order by here -- use sys_created_on &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; logs.setLimit(1);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; logs.query();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; if (logs.next()) &amp;nbsp; // change to a loop if you want nodes for multiple sessions.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; var node = logs.system_id.toString();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; var num = node.indexOf(':');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; var nodeName = node.substring(parseInt(num + 1), parseInt(node.length));&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; gs.addInfoMessage("User " + userID + " is currently logged into node: " + nodeName);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; else &lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; gs.addInfoMessage("User " + userID + "is not currently logged in");&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Jan 2015 15:07:34 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/determine-which-node-a-user-is-logged-into/m-p/743609#M315388</guid>
      <dc:creator>andrew_lawlor</dc:creator>
      <dc:date>2015-01-23T15:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: determine which node a user is logged into?</title>
      <link>https://www.servicenow.com/community/itsm-forum/determine-which-node-a-user-is-logged-into/m-p/743610#M315389</link>
      <description>&lt;P&gt;I'm working on something similar, and after thinking about it for awhile, we can get much more useful and relevant information using GlideAggregate instead:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;function getSessionInfo(userID) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;if (userID)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;{&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var ga = new GlideAggregate('syslog_transaction');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;ga.addQuery('sys_created_on', '&amp;gt;', gs.minutesAgo(15)); // again, this is arbitrary.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;ga.addQuery('sys_created_by', userID);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;ga.groupBy('session'); // This gives us relevant data for each session -- one user might have multiple sessions going.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;ga.groupBy('system_id'); // Also grouping by node.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;ga.addAggregate('AVG', 'network_time'); // Additional info, if you want it.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;ga.addAggregate('AVG', 'response_time');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;ga.query();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;while (ga.next())&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;{&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;gs.print("Data for session ID: " + ga.session);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;gs.print("User: " + userID);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;gs.print("Node: " + ga.system_id);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var secs = (parseFloat(ga.getAggregate('AVG', 'response_time')))/1000;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;gs.print("AVG Response Time: " + secs); &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;} // end while&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;} // end if&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Something like this would work well in a UI action (infomessage), homepage widget or as its own UI Page/GlideDialogWindow. &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 25 Jan 2015 21:01:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/determine-which-node-a-user-is-logged-into/m-p/743610#M315389</guid>
      <dc:creator>andrew_lawlor</dc:creator>
      <dc:date>2015-01-25T21:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: determine which node a user is logged into?</title>
      <link>https://www.servicenow.com/community/itsm-forum/determine-which-node-a-user-is-logged-into/m-p/743611#M315390</link>
      <description>&lt;P&gt;If your just looking to find what node a user is on you can check it 2 different ways.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1. Have the user type stats.do in the left nav. Then ask them for the cluster node name.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2. Under System Diagnostics &amp;gt; Active Transactions (All Nodes) add the user field to your list view and search for the user that way.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Nadia&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Jan 2018 18:01:16 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/determine-which-node-a-user-is-logged-into/m-p/743611#M315390</guid>
      <dc:creator>nadiarussell</dc:creator>
      <dc:date>2018-01-02T18:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: determine which node a user is logged into?</title>
      <link>https://www.servicenow.com/community/itsm-forum/determine-which-node-a-user-is-logged-into/m-p/743612#M315391</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screen Shot 2018-01-03 at 2.32.46 PM.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/91656i86E0F8A4A74A56AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-01-03 at 2.32.46 PM.png" alt="Screen Shot 2018-01-03 at 2.32.46 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;Transaction(All user ) &amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;System Id will tell you node &amp;nbsp; , created by will be the user&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Jan 2018 19:34:29 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/determine-which-node-a-user-is-logged-into/m-p/743612#M315391</guid>
      <dc:creator>SangramN</dc:creator>
      <dc:date>2018-01-03T19:34:29Z</dc:date>
    </item>
  </channel>
</rss>

