Identifying already logged in Users in Weblogic Servers

hi, we need to know if a user is already authenticated and logged in with a valid session currently on the server.
Is there any method call or a way in weblogic to know from the given user-id whethere he is already logger in with a valid session.
I am working on weblogic 8.1 SP4 on RHEL.
Pramod Mumbai.

Hi Sizo,
Thank you so much for your quick reply!
We can not access to SCC(SMP 2.3 03) while any user is on line/connected to the server as SCC gives some unknown error.
please refer below thread, people say this is a known error for SMP-2.3 03.
SCC gives, unknown error has occurred when we click the Agentry app in SCC.
Can't we forcefully session out after some specified time period.
Thanks,
Sudhir.

Similar Messages

  • How to find already logged on user

    Hi,
    Can any one suggest an apporach to find the already logged on user.
    Does any other table store info on users other than v$session.?
    Thanks

    Try this
    Thsi you get to know the user, the box they are running on and the program are in use by the user
    select
    substr(a.spid,1,9) pid,
    substr(b.sid,1,5) sid,
    substr(b.serial#,1,5) ser#,
    substr(b.machine,1,30) box,
    substr(b.username,1,10) username,
    substr(b.osuser,1,8) os_user,
    substr(b.program,1,30) program
    from
    v$session b,
    v$process a
    where
    b.paddr = a.addr
    and
    type='USER'
    order by
    spid;

  • How to list all logged in users in Weblogic?

    Dear All,
    I want to list all the logged in users in weblogic since we have assigned each user a separate login.
    Right now, weblogic console shows if any user is making any changes. However, I want to list all users logged in even if they are in idle state.
    I have also looked in domainRuntime location using WLST but couldn't find any info.
    Please suggest.
    Thanks,
    Karan

    Hi,
    can you try with this JMX code.
    import javax.naming.*;
    import javax.management.MBeanInfo;
    import weblogic.jndi.Environment;
    import weblogic.management.runtime.ServerRuntimeMBean;
    import weblogic.security.providers.authentication.DefaultAuthenticatorMBean;
    import weblogic.management.security.authentication.UserReaderMBean;
    import weblogic.management.security.authentication.GroupReaderMBean;
    import weblogic.management.MBeanHome;
    import weblogic.management.WebLogicMBean;
    import weblogic.management.tools.Info;
    import weblogic.management.Helper;
    import weblogic.management.security.authentication.*;
    public class ListUsersAndGroups
    public static void main(String[] args)
    MBeanHome home = null;
    try
    Environment env = new Environment();
    env.setProviderUrl(“t3://localhost:7001?);
    env.setSecurityPrincipal(“weblogic”);
    env.setSecurityCredentials(“weblogic”);
    Context ctx = env.getInitialContext();
    home = (MBeanHome)ctx.lookup(“weblogic.management.adminhome”);
    weblogic.management.security.RealmMBean rmBean = home.getActiveDomain().getSecurityConfiguration().getDefaultRealm();
    AuthenticationProviderMBean[] authenticationBeans = rmBean.getAuthenticationProviders();
    DefaultAuthenticatorMBean defaultAuthenticationMBean = (DefaultAuthenticatorMBean)authenticationBeans[0];
    UserReaderMBean userReaderMBean = (UserReaderMBean)defaultAuthenticationMBean;
    GroupReaderMBean groupReaderMBean = (GroupReaderMBean)defaultAuthenticationMBean;
    String userCurName = userReaderMBean.listUsers(“*”, 100);
    while (userReaderMBean.haveCurrent(userCurName) )
    String user = userReaderMBean.getCurrentName(userCurName);
    System.out.println(“\n User: ” + user);
    userReaderMBean.advance(userCurName);
    String cursorName = groupReaderMBean.listGroups(“*”, 100);
    while (groupReaderMBean.haveCurrent(cursorName) )
    String group = groupReaderMBean.getCurrentName(cursorName);
    System.out.println(“\n Group: ” + group);
    groupReaderMBean.advance(cursorName);
    catch (Exception e)
    e.printStackTrace();
    Regards,
    Kal

  • Widget for Logged On Users

    Is there a widget that will let one determine the users (IP or name) that are logged onto your machine, say for example, remotely? IS there there some other way of doing this?
    Thanks. Paulo.

    sm04-shows the logged on users of current server.
    AL08-shows logged on users of all servers in the network.
    Even you can access this from SM51 and selecting the server on which you want to see logged on users and hit user processes tab.
    mark as  answered if it solved the problem and reward points for the same.

  • Help required on Brodcast messages to logged on users in Portal- Weblogs

    Hi All
    The link to the weblog is
    Brodcast messages to logged on users in Portal(Part1)
    My doubts is
    1) Whenever user refreshes his/her page the popup gets displayed.
    User might get irritated everytime he will referesh the page.
    2) When does the data stored in container destroys?
    Please comment
    Points will be rewarded.
    Regards
    Sonal Mangla

    Hi Sonal,
    Did you find a solution yet ?
    I'm also interested.
    Regards,
    H. Cakir

  • Designer Window does not open: User already logged In: Reset Users,Continue

    Hi,
    When I try to login to Business Objects XI 3.2 data services Desginer-> It opens the 'SAP BusinessObjects Data Services Repository Login' Window. I eneter the ODBC data source, Username and Password correctly.
    It gives a message: The following users are already logged on: Do you want to 'Reset users', 'Continue', Exit.
    When I click on either 'Reset Users' or 'Continue'.... it opens the splash window, yellow color, 'SAP Business Objects Data Services XI' and hangs there....
    I tried re-installing 3.2, but that did not help...
    Also the user which it mentions in the error message, The following users are already logged on: , is the user which I use to log in to my system.
    Could anyone pls suggest, how do I resolve this, so that it opens the 'Designer window'.

    Hello LaRaju
    Is better to late than never...
    when you start BO you have got "cannot initialize application BODI 1270039" error message.
    I got that message on Business Objects XI 3.2 installation.
    Root cause of problem - BO uninstaller dont delete keys from Windows registry.
    you should to do next:
    1) uninstall BO when uninstaller asked you for reload your PC ask - NO (later)
    2) load registry editor
    3) find HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects
    4) delete that branch
    5) go to the BO installation directory -delete it with all content
    6)  reload your PC
    7) repeat installation process
    after that all will be work fine
    Regards
    Kanstantsin Chernichenka

  • How to log the user and group setup from weblogic console

    If I use the file realm to setup my acls, does it possible to log these
    action?
    Our customer ask us must to log which user or group you added, deleted.
    Thanks and Best Regards,
    Tom Hsu
    ³\®aºa (Tom Hsu)
    Project Manager
    Banking Solution Dept.
    Bull Information Systems Taiwan Ltd.
    8F, 2, Min-Sheng E. Road, Sec. 3,
    Taipei, Taiwan
    E-mail: [email protected]
    TEL¡G02-25013090 Ext:205
    FAX¡G02-25055439
    Mobil: 0939-869-316

    You might want to Try Re-run the Config utility from the Linux-Essbase server and Re-register the Essbase with HSS.
    Start the Essbase in Foreground and check if it is running
    Now log on to the EAS/AAS with default admin/password if you havent changed it :); add your Essbase server using the Super user/Owner of essbase i mean the id..if you are succesful; i would always create a Test user as before Externalisation i can create users at EAS/AAS and then using Admin id ; i will push the Users/groups to the HSS by Externalising.. let me know if that helped you. GUd Luck..
    Sriram

  • How has access.log file configured in WebLogic server 10.0?

    1.) I am using BEA Weblogic 10.0 and my access.log is not getting updated.
    2.) I also need any information as to how this Webblogic server forms chunks (ex....access00011.log,access00012.log) because i have a software called AWStats which merges all these chunks into 1 single access.log file under its subdirectory.
    3.) I also need information as to how and where the user can specify/ form his own fields which gets displayed in the access.log
    FYI i have 2 servers and i checked under Logging->HTTP->advanced, in both the servers options and configurations are same but in 1 it works fine and access.log is updating but not in the other one.
    Kindly let me know i you have any leads into this issue!
    Thanks,
    Varun

    Hi Ravish,
    Firstly thanks for the reply.
    1.) -----
    What you can do is to set the buffer-size-kb parameter value to "0" in config.xml so that it can start logging once the server starts coming up rather then waiting for the default size which is 8kb to pass.
    Something like below:
    <web-server-log>
    <buffer-size-kb>0</buffer-size-kb>
    <web-server-log>
    For more details check the below link:
    Search for: CR302493
    http://download.oracle.com/docs/cd/E11035_01/wls100/issues/known_resolved.html
    --- for this issue i had browsed throught the forum before posting but in my conf file i have something like this instead of <buffer-size-kb>0</buffer-size-kb>
    <web-server>
    <web-server-log>
    <number-of-files-limited>false</number-of-files-limited>
    <log-file-format>extended</log-file-format>
    </web-server-log>
    </web-server>
    So how do i go about the path of debugging now??
    2.) -------
    If you do not want rotation of access.log then you can just disable it from the below console path just by putting Rotation type as None
    Server -> <YOUR_SERVER_NAME> -> Logging (tab) -> HTTP (sub-tab) -> Rotation type: None
    ---- for this in both my servers i have the settings like this,
    Rotation type--> By Size
    Rotation File size 5000
    Begin rotation time 00:00
    rotation interval 24
    files to retain 7
    and Log file rotation directory is left blank (to get created in same directory)
    and also Rotate log file on startup is unchecked.
    so??? what do you suggest!?
    3.) ------
    I also need information as to how and where the user can specify/ form his own fields which gets displayed in the access.log
    ---- regarding this, in my main server the access.log is getting updated and after 4.8Mb its creating 5Mb chunks. So, for example if the entire log is of 15 Mb then access.log stops updating at 4.98Mb and accesslog.out0001 and accesslog.out0002 is created with 5Mb each but the latest entry will be stored in accesslog.out0002 file. I hope i didn't complicate this :)
    Regards,
    Varun

  • How to build quickly new weblogic Servers ?

    Hi all,
    I'd need to build additional Weblogic Servers,
    each one running on different ports.
    I still haven't found how to do it in the
    docs. From the console I have tried to add a new
    Server but then if check my weblogic tree I can
    see that I don't get built the structure of the
    Server (dirs: applications, log files:startWeblogic,stopWeblogic etc.)
    The only way to achieve it was to manually copy a server
    already installed (like petstore) and then cleaning
    all the files under applications and log and eventually
    modifying the config.xml renaming all the entries.
    (A very very dirty job!!!). Does anyone know a faster
    way to do it?
    Thanks
    Francesco

    thanks kumar. That works fine.
    Francesco
    Kumar Allamraju <[email protected]> wrote:
    This should do it.
    java weblogic.Admin -url <admin url> -username system -password <admin
    password> CREATE -name "DUNCAN" -type Server -domain mydomain
    BTW, applications dir is "domain wide", not per-server wide.
    I do agree that the above utility won't create any start scripts ;-(
    Kumar
    Francesco wrote:
    Hi all,
    I'd need to build additional Weblogic Servers,
    each one running on different ports.
    I still haven't found how to do it in the
    docs. From the console I have tried to add a new
    Server but then if check my weblogic tree I can
    see that I don't get built the structure of the
    Server (dirs: applications, log files:startWeblogic,stopWeblogic etc.)
    The only way to achieve it was to manually copy a server
    already installed (like petstore) and then cleaning
    all the files under applications and log and eventually
    modifying the config.xml renaming all the entries.
    (A very very dirty job!!!). Does anyone know a faster
    way to do it?
    Thanks
    Francesco

  • Security info propagation across weblogic servers

    Hi,
    I have a requirement wherein my biz layer needs info abt logged in user profile. the web layer authenticates user using weblogic internal ldap and calls session bean of biz layer. In the biz layer i m able to retrieve the loggedin userid using sessionContext.getCallerPrincipal(). But i do need more info like user_preferences,emp_id as well. Is there a way of setting these attributes in Context obj which gets propagated across weblogic servers transparently. Otherwise i need to modify all my session bean api to accept userPreferencesDTO as additional parameter.
    Please advise,
    venkat

    have you find any solution for this...

  • Agentry 7 and SMP 3.0: Already logged in elsewhere

    Hi,
    I've seen similar threads with this error but for other versions and different reasons.
    In my case, the SMP 3.0 crashed for some unknown reason, after that I restarted the service and even the SMP cockpit was showing 0 users connected, when trying to connect with the Agentry client it says "Already logged in Elsewhere". After that I tried to restart the full Windows server but I'm still getting this error.
    In previous versions I could use the AgentryCmd.exe to kick users that were not really logged in, but in SMP 3.0 I don't know what can I do to solve that.
    Can you help me please?
    Thank you.
    Tags edited by: Michael Appleby

    Thanks Jason,
    Following your tip I found this wiki explaining how to connect to the SMP 3.0 Derby database. http://wiki.scn.sap.com/wiki/display/SAPMOB/Access+SMP+3.0+tables+on+the+Default+database+shipped+with+SMP+3.0
    I downloaded the DbVisualizer client and successfully connected to the database.
    It has many tables but it was easy to identify the one called AGENTRY_CLUSTER_USER_AUDIT that contains the field informing if a user/application is already logged on.
    I executed the following SQL command to manually log out my user and it worked
    UPDATE AGENTRY_CLUSTER_USER_AUDIT
    SET IS_LOGGED_ON = 0
    WHERE USER_ID = 'xxxxx'
      AND APP_ID = 'SAPWorkMgr6.1_JVA'

  • Multiple simutaneously logged in users accessing AFP home directories?

    Hi,
    Many of our problems are described in this guy's blog:
    http://alblue.blogspot.com/2006/08/rantmac-migrating-from-afp-to-nfs.html
    The basic capability we want is to have multiple simultaneously logged in users to have access to their AFP mounted home directory, which is configured in a sane, out-of-the box setup using WGM and Server Admin.
    Multiple user access could take the form of FUS (fast user switching), or simply allowing a user to SSH into a machine that another user is already logged into and expect to be able to manipulate the contents of her home directory.
    From my extensive searches, I have no reason to believe this is currently possible with 10.4 Server and AFP.
    (here's the official word from apple: http://docs.info.apple.com/article.html?artnum=25581)
    I've read that using NFS home directories will work, though.
    I want to believe that Apple has a solution for this by now (it's been almost a year since we first had difficulty), or at least a sanctioned workaround. If Apple doesn't have one, maybe someone else has come up with something clever. I find it hard to believe that more people haven't wanted this capability! (not being able to easily search the discussion boards doesn't help, though...)
    Thanks for your help!
    Adam

    Parallels Issue. Track at http://forum.parallels.com/showthread.php?p=135585

  • Message:You are already logged on to the system in the following sessions

    Hi Experts,
    We are implementing SAP SRM7.0 with Portal integration.
    After logging in when we click on the shop link , it is taking us to the new screen and getting message saying "You are already logged on to the system in the following sessions"
    and also providing the details of the user.
    This is happening for all the users created in portal.
    can someone help me to resolve the issue.it would be really appreaciated.
    Thanks & Regards,
    Prashanth P.

    Hi Prashanth,
    You can enable multiple login in two ways.
    goto SICF and open service.
    1.Navigate to default_host->sap->bc->bsp->sap->srm(double click on srm service)
    2.Open Error Pages tab and clcik on Configuration button.
    3.Check whether check for multiple logon is enabled.
    or
    goto RZ10
    To allow the user to have multiple login in SAP R/3, one have to set the Profile Parameters u201CLogin/disable_multi_gui_loginu201D OR u201CLogin/multi_login_usersu201D.
    1. Login/disable_multi_gui_login
    Controls whether multiple logins are enabled or disabled. 0 = enable 1 = disable
    2. Login/multi_login_users
    Here a list [user IDs] can be deposited that would allow users a multiple login even though the multi login is generally disabled. The multiple login information are stored in the table URSR41_MLD.
    Note: Select extented administration and clcik display. this is the place to maintain parameters.
    Ref:
    [Configuration Settings|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/3a0623902131c3e10000000a42189d/frameset.htm]
    [Login Parameters|http://help.sap.com/saphelp_nw04s/helpdata/en/22/41c43ac23cef2fe10000000a114084/frameset.htm]
    I  suggest to get basis team support for this.
    Regards,
    Anand G

  • Closing the browser in InfoView doesn't log the user off.

    In Business Objects XI R2 Infoview, closing the browser in InfoView doesn't log the user off no matter how you answer the subsequent popup question "A window has closed. Log off as well?" Is there a fix for this somewhere?

    hi,
    In InfoView, with Performance Management installed, user sessions fail to be released immediately when the Log Off button is clicked.
    If you click the logoff button in Infoview and watch the address bar you will notice that it actually goes to another page called default.htm. It does this really fast. That page is located at C:\Program Files\Business Objects\Tomcat\webapps\businessobjects\enterprise115\desktoplaunch\InfoView. Remove both the default.htm and index.html and reboot your Tomcat server. Open a browser and go to Infoview. Once you have gotten in to Infoview click the log off button. You will get and error from the tomcat server and that is because the page does not exist anymore. If you look in CMS under servers and CMS you will also notice it dropped the session as well. So if you create another Default.htm page of your own and just redirect to another page it all should work.
    However I did notice an interesting ADAPT in CHF15 :-
    http://support.businessobjects.com/CommunityCS/FilesAndUpdates/boxir2_en_chf15_readme.pdf
    ADAPT00576483 Patch ID: 39,216,665
    Also did u do any customization setting before ?

  • Write to application log in user exit

    Hi all,
    I want to write a collection messages to the application log in user exit EBIA0003, user exit for transaction EA00, but I only can write one if I just use
    message eYYY(x) with lv_msgv1
                                      lv_msgv2
                                      lv_msgv3
                                      lv_msgv4.
    It will be placed in the log after the exit.
    I've already tried with the BAL functions, but it doesn't seem to work or maybe I'm doing something wrong. Is there a way to write a collection of messages in to the application log in this user exit?
    greetz Pieter

    Hi Pieter,
    you can do using BAL functions if the lop is already opened. Try to find out what parameters the transaction uses for LOG access (handle!). Do the calls in the exit accordingly.
    We append messages to the current log using FUNCTION 'BAL_LOG_MSG_ADD'. If the log handle is not available, you might access it using dynamic assign like
      ASSIGN ('(<program>)<field>') TO <field> .
    Regards,
    Clemens

Maybe you are looking for