List all active login sessions IDs

Hi,
I want to enumrate all active login sessions for session IDs. I found some api SessionGetInfo which gives current user
session ID. and getutmpxent which gives process id of (as i understand id of process creating session) all sessions. I
want to map pid to session id. or is there any other way to list the session IDs of all logged in users.
Thanks.

Hi Nagendra,
You can get the informamtion through one more option also. In case of function module you need to execute the module again and again for each user or may be need to write a report. I would like to suggest you an alternative. That is making use of queries.
1. Go to transaction SQVI.
2. In the input field Quick View give the any name for query for example Z_EMAIL_ADD.
3. Choose create option. In the resulting pop up give description in Title field. In data source choose TABLE JOIN. Select Basis mode.
4. In the next screen choose INSERT TABLE pushbutton and in the pop up give USR21. Then again choose INSERT TABLE pushbutton and this time give ADR6.
5. Now go back using back arrow or F3.
6. Now in the new screen you will be under the tab strip List fld select.. From that entries under available filed (on right hand side) select User name in user master record and the first entry for Internet mail (SMTP) address. Now using single arrow pushbutton poitning towards left move these fields to tabstrip List fld select.
7. Now go to tabstrip selection filed. As done in step 6 move User name in user master record under it.
8. Save the changes and go back. A pop up will come asking you to save quick view Z_EMAIL_ADD. Choose yes.
9. Now execute the query. In the input field you can give one user or multiple users at a given time.
Regards,
Rajesh

Similar Messages

  • How to list all active logins or based on WWN's

    What are commands to list active logins, based on WWN's, in this way, I can find if these WWN are zoned.
    Thanks you!

    Hello,
    You can use this commands to see who is logged in the fabric and see the zone configuration.
    show flogi database
    show fcns database
    show zone active
    show run zone
    The recommendation is to use the wwpns to configure the zone. You can also create device-alias to simplified the process.
    This guide can help you with the commands:
    http://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus5000/sw/san_switching/b_Cisco_Nexus_5000_Series_NX-OS_SAN_Switching_Configuration_Guide/Cisco_Nexus_5000_Series_NX-OS_SAN_Switching_Configuration_Guide_chapter9.html

  • List all active change documents

    Is there a way to list all ACTIVE change documents? In other words - I only want ot know which change documents are being used in the system...
    Thanks

    Thanks Anji - Seems there is no place to show if a change document is active, but I was being silly since if a change document is not active or being used, it will not appear in CDHDR / CDPOS!
    A useful pool table is TCDOB - It lists all change documents with properties like which tables they monitor etc...

  • How to list all active local ports where a server/services is listening?

    How can I list all local ports where a local server or services is listening?
    The listing should contain the path and program name of the listening server/service.
    So I need something like:
    port=22 /lib/svc/method/sshd
    port=25 /bin/emailprgm
    port=1049 /ust/local/bin/myserver
    How can I do this?

    lsof (compile, sunfreeware.com, blaswave)
    it wont show full path i think (man lsof for more) however it gives pids/ports/exe name, so you could take that and script it or do something with the output.

  • Permission to execute syslogins to non sysadmins, to list all the logins

    Hi All:
    How can we grant the permission to non sysadmin user to pull the report of all the existing SA's on the server.
    With Sysadmin role i m able to execute the query but when non-sysadmins are running they are not getting full result what i m seeing...
    The following permission already granted on master DB:
    1) Readonly, View server state, Execute and select permissions
    Query:
    select SL.name
    from syslogins SL
    INNER JOIN sys.server_principals SP
    ON SL.name = SP.name
    where SP.is_disabled <>1 and SL.sysadmin = 1
    Thanks,
    Thanks, Satish Kumar. Please mark as this post as answered if my anser helps you to resolves your issue :)

    VIEW ANY DEFINITION should do, although I fail to see why you need to expose this information to non-sysadmin users. See repro with an improved query below:
    CREATE LOGIN yngve WITH PASSWORD = 'malmsten'
    go
    EXECUTE AS LOGIN = 'yngve'
    go
    SELECT sp.name
    FROM sys.server_principals sp
    WHERE sp.is_disabled = 0
    AND EXISTS (SELECT *
    FROM sys.server_role_members mb
    JOIN sys.server_principals sp2 ON mb.role_principal_id = sp2.principal_id
    WHERE mb.member_principal_id = sp.principal_id
    AND sp2.name = 'sysadmin')
    go
    REVERT
    go
    GRANT VIEW ANY DEFINITION TO yngve
    go
    SELECT sp.name
    FROM sys.server_principals sp
    WHERE sp.is_disabled = 0
    AND EXISTS (SELECT *
    FROM sys.server_role_members mb
    JOIN sys.server_principals sp2 ON mb.role_principal_id = sp2.principal_id
    WHERE mb.member_principal_id = sp.principal_id
    AND sp2.name = 'sysadmin')
    go
    REVERT
    go
    DROP LOGIN yngve
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Java Code to List All Active Windows Process in the System

    hi
    i need to help to resolve the below given points:
    1. Mapping Windows Process with their application names.
    2. Owner of the Process
    3. Process Start time and end time.
    Thanks
    Pruthvi.

    This is actually not a java question but:
    the windows command to get the processes:
    WMIC PROCESSWhen you invoke the process store the details in a collection along with the system time.
    Do the above a number of times per second and when a process disapears you know it has ended.
    to calculate an aprox duration of process life cycle:
    Duration = endTime - startTimeDetail List:
    Caption
    CommandLine
    CreationClassName
    CreationDate
    CSCreationClassName
    CSName
    Description
    ExecutablePath
    ExecutionState
    Handle
    HandleCount
    InstallDate
    KernelModeTime
    MaximumWorkingSetSize
    MinimumWorkingSetSize
    Name
    OSCreationClassName
    OSName
    OtherOperationCount
    OtherTransferCount
    PageFaults
    PageFileUsage
    ParentProcessId
    PeakPageFileUsage
    PeakVirtualSize
    PeakWorkingSetSize
    Priority
    PrivatePageCount
    ProcessId
    QuotaNonPagedPoolUsage
    QuotaPagedPoolUsage
    QuotaPeakNonPagedPoolUsage
    QuotaPeakPagedPoolUsage
    ReadOperationCount
    ReadTransferCount
    SessionId
    Status
    TerminationDate
    ThreadCount
    UserModeTime
    VirtualSize
    WindowsVersion
    WorkingSetSize
    WriteOperationCount
    WriteTransferCount

  • Broadcast message to all active sessions

    All,
    We have regular nightly restarts for our BO Enterprise ( SIA and tomcat) XI 3.1 SP2 - and it unfortunately is rather abrupt and some-times some users who are working late end up losing some of their work.
    I was wondering if there is a way to broadcast a warning message to all active infoview sessions before the system goes down? Can anyone suggest some ideas on how this can be done?
    Regards

    Hi,
    There's no way within the BOE system that I can think of, but here's a possibility.
    All actions essentially go through your application server so you could parse the last 30 or so minutes of the application servers access logs to get the IP addresses of the clients.  From there, you could use a net send or some other kind of utility to let those users know that the system is going offline.
    either that or your application server may have a way of sending a message to the client browsers that have open sessions.
    Thanks
    Jonathan

  • Active/Inactive sessions

    Within AMserver console --> Sessions, I can view a list of active/inactive sessions. Is there a configuration that will remove all sessions that are inactive? The list does not clear invalid sessions automatically.

    I have the same problem! Is there any solution ?

  • Is there a way to hide buddy icon/picture in messages? [In the left section that lists all chats]

    Is there a way to hide buddy avatars/pictures from Messages?  I don't mean in a the chat window, but in the left section that lists all active conversations.  I don't really use pictures with contacts, so all I see are gray faces.
    Using Messages 8.0 on Mavericks.

    Hi,
    The answer is No.
    Whilst the App can also use Buddy list (See Window Menu) for accounts which use AIM, Jabber or Yahoo an important part of these is the Buddy Pic.
    By default Messages in the iMessages account will send the My Card pic from the Contacts app for yourself.
    (if you have Buddy Lists  and change the pic for them, then it will send that pic)
    Also if you drag the side bar in the Chat (main Messages window) to it's smallest setting (move the divider to the left) you are left with just the Sender's pic (or lack of it) in  square spot that has no version of the last iMessages sent.
    9:30 pm      Tuesday; August 12, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • I want to get List of all active sessions in current system

    Hi experts
    How to get list of all active sessions in current system in any internal table along with details.
    A sample code wud be helpful
    Thanks in advance.

    try this code it might help u.
    Below report execution gets the active Session list to ABAP memory
    submit rsm04000_alv and return exporting list to memory.
    refresh: gt_listobj.
    Below FM get the List output from ABAP memory to gt_listobj in HEX
    call function 'LIST_FROM_MEMORY'
      tables
        listobject = gt_listobj
      exceptions
        not_found  = 1
        others     = 2.
    if sy-subrc <> 0. " Executed successfully ?
      message id sy-msgid type sy-msgty number sy-msgno
      with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    This FM converts ITAB gt_listobj from HEX to ASCII
    call function 'LIST_TO_ASCI'
      tables
        listasci           = it_list
        listobject         = gt_listobj
      exceptions
        empty_list         = 1
        list_index_invalid = 2
        others             = 3.
    if sy-subrc <> 0. " Executed successfully ?
      message id sy-msgid type sy-msgty number sy-msgno
      with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    This Shows the output in List format on screen
    call function 'REUSE_ALV_LIST_DISPLAY'
    exporting
       i_structure_name                  = 'line'
      tables
        t_outtab                          = it_list
    exceptions
       program_error                     = 1
       others                            = 2.
    if sy-subrc <> 0. " Executed successfully ?
    message id sy-msgid type sy-msgty number sy-msgno
             with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.

  • SA520 web access problem, all admin users sessions appears active when it is not true

    Hi, all the users for the management access to my SA520 are blocked via web, all the admin users sessions aparently they seem active, and when i do click on the "continue" button these sessions does not terminate. I guess i have to reset the firewall, but my question is if anybody has the same problem with this device.

    Hi Luis,
    What firmware version are you running? How frequent do you see this occurrence?
    If  possible, when you start to see this issue before all the admin sessions are reporting active,can you provide us the debug logs from your SA  520 so that I can forward to the development  team to investigate?  We are tracking an issue with a customer, but his device takes 3-4 months to show the symptoms you describe.
    To get the dbglog from SA520, login through web UI and in the browser enter the following URL:
    https://LAN_IP_address_of_SA520/scgi-bin/dbglog.cgi        
    These logs will store password, so please remove any sensitive information and passwords. Also if you are not comfortable posting the dbglog on the    community, you can send it directly to me through private message.
    Best regards,
    Julio

  • How can I get a list of active savepoints for the current session?

    Hi,
    In Oracle Applications, we are getting the following error while performing ROLLBACK to a Savepoint.
    "Unexpected Error: ORA-01086: savepoint 'PTNR_BULK_CALC_TAX_PVT' never establishe d ORA-06510: PL/SQL: unhandled user-defined exception"
    So how can I get a list of active savepoints for the current session?
    Could you please also let me know if there is any better way to debug this issue.
    Appreciate any quick response as the issue is very critical.
    Thanks,
    Soma

    user776523 wrote:
    Hi,
    In Oracle Applications, we are getting the following error while performing ROLLBACK to a Savepoint.
    "Unexpected Error: ORA-01086: savepoint 'PTNR_BULK_CALC_TAX_PVT' never establishe d ORA-06510: PL/SQL: unhandled user-defined exception"It sounds like there's an execution path in the code where the SAVEPOINT is never issued.
    There is no way to get a list of active savepoints. Is this your code or a "canned" procedure? If it is your code you can go through the code looking for answers, possibly tracing execution using DBMS_OUTPUT.PUT_LINE or writing messages to a log table. If its a "canned" procedure you may need to open an SR with Oracle

  • How to list the active savepoints in a session?

    How to list the active savepoints in a session?

    SR 3-4535479801: How to list the active savepoints in a session?
    Oracle Support - September 19, 2011 7:12:50 AM GMT-07:00 [ODM Answer]
    === ODM Answer ===
    Hello,
    That is the only way and it is also described in:
    How To Find Out The Savepoint For Current Process (Doc ID 108611.1)
    One thing to be aware in lower version is the dump if no savepoints are declared:
    ALTER SESSION SET EVENTS 'IMMEDIATE TRACE NAME SAVEPOINTS LEVEL 1' Raises ORA-03113/ORA-07445[SIGSEGV]/[STRLEN] Errors (Doc ID 342484.1)
    Best regards,
    George
    Oracle Support Database TEAM
    Oracle Support - September 19, 2011 6:36:39 AM GMT-07:00 [ODM Question]
    === ODM Question ===
    How to list the active savepoints in a session?
    Is there another way than the following as referenced in the Oracle forums: Re: How to list the active savepoints in a session? ?
    "alter session set events 'immediate trace name savepoints level 1';"
    A trace file is generated in the user_dump_directory.
    - September 17, 2011 5:12:53 PM GMT-07:00 [Customer Problem Description]
    Problem Description: How to list the active savepoints in a session?
    Is there another way than
    "alter session set events 'immediate trace name savepoints level 1';"
    A trace file is generated in the user_dump_directory.
    Re: How to list the active savepoints in a session?

  • NDS Gateway Active Sync Listing All users on each poll

    When Sun Identity Manager 6.0 sp1 runs an active sync poll event with the NDS Resource Adapter against the Gateway the following behaviour is exhibited within both the customer environment and the Lab environment.
    The Gateway will list all the users using the Novell Client, even users who have not had their modification timestamp updated since the last poll.
    The Gateway will then return the relevant users to the Sun Identity Manager application. Using the Search Parameter modification timestamp as can be seen below.
    �<SearchParameters>
    <Map>
    <MapEntry key='modificationTimestampFilter'>
    <Long>1166504812</Long>
    </MapEntry>
    </Map>
    </SearchParameters>
    This is causing the Synchronisation process at the customer to take much longer than necessary. Every time Sun Identity Manager polls the resource all the users are listed within the gateway service.
    Can you please confirm if this is the expected behaviour? Or should the gateway only be listing users that have been updated since the last poll event.

    Their is an issue with the NDS adapter. Contact Sun support, they have an appliance that can be installed to rectify.
    Good luck.

  • How to get all active session id's

    hai,
    i am new to servlet. i am tring to find out all active session id's for security perpose.
    and also i want to deactive a perticular session using that session id.
    but i don't know how to do. please help me.
    thanks in advance.

    Well to me.. I wud like to write a Listener class implementing HttpSessionListener in the following way....
    import javax.servlet.http.HttpSession;
    import javax.servlet.http.HttpSessionListener;
    import javax.servlet.http.HttpSessionEvent;
    import java.util.HashMap;
    public class SessionHandler implements HttpSessionListener{
    public static HashMap<String,HttpSession> SessionsMap = new HashMap<String,HttpSession>();
    public void sessionCreated(HttpSessionEvent se) {
    SessionsMap.put(se.getSession().getId(),se.getSession());
    public void sessionDestroyed(HttpSessionEvent se) {
    SessionMap.remove(se.getSession().getId());
    public static invalidateSession(String SessionId){
    HttpSession session =  SessionsMap.get(SessionId);
    SessionMap.remove(SessionId);
    session.invalidate();
    }Note:I'm assuming tht you are running the code on Jdk/jre 1.5+
    However, i think its more of core way of implementing this specially usage of static members howevr @ the given situation can very well cater your resources.added to it you add ActivationListener depending on your requirement.
    Hope this might help :)
    REGARDS,
    RaHuL

Maybe you are looking for

  • Creation of sales order/wbs element

    Hi SAP gurus, While creating a sales order after entering the WBS element, I am getting an error Profit Ctr not consistent between Plant and Material/WBS for line item 0010 can somebody throw light and help to solve. regards Pranav shah

  • How to Assignment between Material and Account Assignment Group

    Hi, When we are creating a sales order with material ABCD, then in material line item -->under Billing Document Tab --> in Accounting screen, there is field Acct asgnmt grp (Account Assignment Group). From where we can assign between Material and Acc

  • How do I download and save a pdf file on iPad2

    I just got and love my iPad2 and am learning a lot.  What I can't do is download a pdf file that is an attachment to my gmails.  It won't open the attachment nor when I click on it will it download.  I have installed both the iBook app and pdf-notes

  • Tab order moving to second page of form

    I have a two page form. I can set up the tab order perfectly on the first page, but when I try to set up the first object on the second page as the next tab after the last first page tab, it starts back at the first object on page one. Does anyone kn

  • OAS 4.0.8.1 JServlet: Extra path info not implemented?

    Didn't Oracle implement extra path info for servlets? According to the Java Servlets spec it should be possible to invoke a servlet with a URL like http://host/servlets/MyServlet/index.html where /index.html would be accessible through the getPathInf