Find the user name of connected people Foglight anytime

I found the method in the safety Interface that will give me the number of active users, but is there a way to find the username of people who are connected?

Following the code give me the int count of connected users, but I want the "username" instead of int count.

def securityService = Server ["SecurityService"]

Return (int) securityService.getActiveUserCount ();

Hi Jonathon,

As you mentioned, there is no method in SecurityService that returns a list of active users and getLastLogon solution would be misleading, because it refers users who may have already disconnected.

Here is a script that checks the audit all the logs of the user connection and disconnections and returns a hash table that shows you the last action that each user took.

Check the connection status of users for the last day. Note that, by default, inactive users are disconnected after 60 minutes.

def auditService is server. AuditingService

Calendar cal = Calendar.GetInstance)
Date endDate = cal.getTime () //now

Cal.Add (Calendar.DATE-1) //yesterday
Date startDate = cal.getTime)

auditRecList = auditService.getAuditLog (startDate, endDate)

[HashMap userStatus = []]

{auditRecList.reverseEach}
{IT.each}
auditRec->
If (auditRec.getServiceName () .equals ("SecurityService") & auditRec.getOperationName () .equals ("httpsession")) {}

userStatus.put (auditRec.getUserName (), auditRec.getName ())
}
}
}

return userStatus

In my lab, it returns this result:

[completed merve:Session, closed merve2:Session, foglight:Session creation]

Hope that helps.

Merve

Tags: Dell Tech

Similar Questions

  • How can I get the user name of the current user? Not the name of the user, but the user name is connected to.

    Anyone know how I can get the username of the current user? Not the name of the user, but the user name is connected to.

    Thank you!

    Only two variables that Captivate allows to work with are cpQuizInfoStudentName and cpQuizInfoStudentID, but the latter is only really designed to be used for the internal information server, not a typical SCORM LMS solution.

    Sounds to me like you may need to get hands on with the services of a JavaScript programmer.

  • Cannot find the user name and password

    I tried to download firefox, but when I open the page he asks me a username and password. I tried everything, but insofar as cannot access the internet.

    ID it by default user name and password, or am, I sent one, if this is not how to solve this problem?

    Download Firefox from this page:

  • How to find the user name and a name indatapump import tablespace

    I have a datapump without the export log file. I would like to import it into a database. Before you begin the import, I would like to know the schema and the tablespace which exported so that I can remap the schema and the tablespace to others. Is there anyway that I can do

    You can run your import command, but add this:

    include tablespace, sqlfile = look.sql user =

    The look.sql file will have the tablespace create orders and orders for the user to create.

    Edit look.sql to see what are the names of tablespace and user.

    Dean

  • Sat T135D: error message 'the user name or password is incorrect' when connecting

    Hello!

    I bought a PC laptop Toshiba T 135 d, and after a few days, I worked with it, I changed something in the users account and now it gives me this error "the user name or password is incorrect" when connecting. I mention that I have not introduced any password before.

    Can you help me?

    > I changed something in the users account
    And how to help? Who knows what you did there.

    I can tell you that it's really bad situation now. Without correct password, you will not be able to start the new installation of the operating system using the HDD recovery procedure.

  • I'm trying to access my work PC to remote my PC at home. The box says Windows 2000 Server and I do not know where to find my user name or password

    Original title: Windows 2000 server

    Search results for "I try to access my work PC to remote my PC at home. I need to get through my credentials and don't know where to find the information. The box says Windows 2000 Server and I do not know where to find my user name or password. The one I use to log into my work PC or PC at home do not work. »

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • I can't seem to connect to my mail, I tried all the user names I can think. where can I get the correct information?

    I can't seem to connect to my mail, I tried all the user names I can think.  where can I get the correct information?

    Sounds like Hotmail you use. Yes?

    If so, repost to Forums Hotmail - Hotmail Sign In IssuesThreads section:

    http://windowslivehelp.com/forums.aspx?ForumID=b782602b-8e7c-40D8-a66b-b44824497a17

  • I added the user name to log on to the computer in the active directory after adding, I can't connect to the internal application by using the user name and password...

    Hello

    I added the user name to log on to the computer in the active directory after adding, I can't connect to the internal application by using the user name and password...

    Please give the solution

    What happens when you try to connect?

    If you are able to connect using the different account, try running gpupdate/force.

    If the problem persists, you can open the discussion on:

    http://social.technet.Microsoft.com/forums/Windows/en-us/home

    What is responsible technical issues forum.

  • is there a way to find the user (lanid) based on the name of the computer.

    is there a way to find the user (lanid) based on the name of the computer. I try nbtstat - has, but it don't did me not what I needed.

    is there a way to find the user (lanid) based on the name of the computer. I try nbtstat - has, but it don't did me not what I needed.

    Do you mean the name of a Windows of a remote computer logon account? There is more than one because Windows 7 allows multiple concurrent interactive sessions. In any case, this could point you in the right direction:

    PsExec \\NameOfPC cmd.exe / user: YourUserName
    PsLoggedOn
    The first command will not work unless you have an account admin on the remote machine.
    You can download the PS tools from here.
  • What should I do to remove the user name of the saved list when I connect

    What should I do to remove the user name of the saved list when I connect

    I think maybe he's talking about the list that is displayed when you connect to a web mail service. It shows several previous usernames used. How to remove one of them from the list?

  • Failed to connect with the user name "Administrator".

    Hello

    I want to configure vCD in VCO, but I am faced with error. I'm by train through the configuration of the vCO.

    I get the error message https://10.99.133.212:443 , Failed to connect with the user name "Administrator". And the description of the error is: "the API version information could not be obtained for the host https://10.99.133.212:443 () (administrator@System)!'."

    Here are the entries I provide:

    Host: 10.99.133.212

    Organization: System

    Authentication: basic

    Session: shared

    and name of user and password.

    What could be the error here? My vCO has IP 10.99.129.33. And I imported the vCD also SSL certificate.

    Kind regards

    Bethy

    You must first remove the new plug-in...

    VMware KB: Uninstall a plug-in for VMware vCenter Orchestrator

    Remember that you use step 6.3 in this article to delete the contents of the package as well. To verify that the workflow and actions have been removed, check that the following workflow category (and all children of it) no longer exist:

    / Library/vCloud Director

    And all related Action modules should have disappeared as well:

    com.vmware.library.vCloud. *.

    Once you have completed all steps of the KB, install version 5.1 of the plugin, configure and restart the vCenter Orchestrator Server service, once again to complete the installation.

  • Is there a way to connect to a protected area with an instead of the user name email address?

    Hello

    I want that the users have the possibility to connect to a protected address area whatever they used to register, not the user name, they created, because it is something that they too often forget.  Is this possible?

    Thanks in advance!

    If you set as email usernames you can connect using the e-mail. It is a factor of configuration you will need to do on the forms of registration etc.

  • How to display the user name for database connection using dreamweaver? [was: help]

    connect display mode database using dreamweaver user name

    LionelLionel wrote:

    OK, sorry 4 that; I use dreamweavercs6 and the script server is php.i as accurate must I set up a server (wampserver) local on my laptop for this level of competence of project.my with scripts php is very limited. and now, after you have created the database (in phpmyadmin), I want to display the user name of the user after login... I need help please.thx

    You want to display it where? On the login page of "success"?

    Add the below to each top of the page:

    Then add the following in the code where you want the ' user name to appear:

  • I have a problem with the connection to the computer after you change the user name.

    Original title: HELP

    I changed the username on my laptop and it is not letting me log

    I changed the username on my laptop and it is not letting me log

    Here you go:

    1. Set your BIOS so that it uses the DVD drive as its primary boot device.
    2. Start the computer with your Windows 7 repair CD.
    3. Press a key when prompted to boot from the DVD.
    4. Select 'PC Repair' in the menu.
    5. Select 'Repair' when prompted.
    6. When you are prompted, select System Restore.
    7. Configure Windows to a point before you have changed the user name.
    8. Plan ahead a little and create, test and document an alternative admin account, same as you have a spare emergency House key. This will save you a lot of trouble.
  • How to derive the user name in the bean connection in a Fusion ADF Web Application

    Hello

    I want to derive the username in the session Bean opening after successful authentication.

    I think writing a method in AM and use a VO for the user based on the user name ID.

    Could you please let me know is the best approach and if yes what is the steps to achieve this in Jdev 12.1.3. How to access the AM method in the LoginBean?

    Or create a viewCriteria in the VO and call it the Login bean?

    See you soon

    AJ

    How to access the AM method in the LoginBean?

    You must expose the method using the client interface of AM and go through links

    as the operation binding

    Oracle ADF - tips and Techniques: model ADF - Beginner: AMImpl expose methods like client interface

Maybe you are looking for