WLST - Multiple Server Connects

Im currently using WLST on WLS10 Platform
The issue: Im trying to have WLST connect to a server, add some users, then reconnect to another server. The server info is being passed via a property file
It appears the "For x" does read the property file, but when it connects, it only connects to the last entry.
Any advice/assistance is greatly appreciated.
***SCRIPT*****
import java.util.Properties as Properties
import java.io.FileInputStream as FileInputStream
from weblogic.management.security.authentication import UserEditorMBean
from weblogic.management.security.authentication import GroupEditorMBean
# Read the properties file for the domain.
props=Properties()
props.load(FileInputStream(System.getProperty('PROP_FILE')))
#Servers=serverlist.split(',')
serverList=props.get('serverList').split(',')
for x in serverList:
username=props.get(x + '.username')
print username
password=props.get(x + '.password')
print password
adminURL=props.get(x + '.adminURL')
print adminURL
print "BEFORE CONNECT"
connect(username,password,adminURL)
print "END CONNECT"
atnr=cmo.getSecurityConfiguration().getDefaultRealm().lookupAuthenticationProvider("DefaultAuthenticator")
atnr.createUser("USER1","PASSWORD1","Deployer Administrator")
atnr.createUser("USER2","PASSWORD2","Monitor Administrator")
atnr.addMemberToGroup('DEPLOYERS',USER1)
atnr.addMemberToGroup('MONITORS','USER2')
disconnect()
exit()

solved.
issue was as simple as the indents being used.

Similar Messages

  • How to find the server connected from multiple switched netwtwork

    I have one server connected to distrubted switch or acces switch  in network .
    They were 45 switches in netwrok and need help how to find that server  connected switch  from  Core switch ?
    How many  mehtodes and process we can use to find that connected physical switch ?
    Thanks in advance !!!

    It's a bit of a tedious process. but if you ping the IP address of the server from the core switch and then check the ARP entry to get its MAC address, you can then trace the address tables in the switches to find the switch that the server is physically connected to. Once you have the MAC address, you'll have to check the address table in each switch in the path between the core and the server to find it.

  • Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection

    "[DBNETLIB] Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection"
    After patches applied on patch Tuesday the database reports the above error. 
    All accounts are domain accounts and SQLServer uses Windows auth.
    DCDIAG show no errors
    All servers and DC have been restarted,
    Message in db log confirms the connection is being denied due to trust.
    Event log shows same rejection
    Protocols enabled: named pipes, tcpip, memory
    TESTS:
    PortQry: "
    TCP port 1433 (ms-sql-s service): LISTENING"
    Connect with domain admin accounts works from multiple clients systems to DB.
    Cannot connect with newly created domain admin account
    Can connect if new admin account connect to server in terminal server session and uses UDL wizard or any other tool including isql.
    New standard user also fails to connect.
    NOTES:
    I removed the SSL patch and the IE security update to see if that was an issue.
    ¯\_(ツ)_/¯

    Has someone left the company or has an account of some nature been dropped/replaced?
    Please click "Mark As Answer" if my post helped. Tony C.
    Hi Tony,
    Srry but No.  We just installed the monthly updates.
    I went back and found I had missed removing a patch.  I missed the rollup for Windows Server 2003:
    Event Type: Information
    Event Source: NtServicePack
    Event Category: None
    Event ID: 4382
    Date:  3/12/2015
    Time:  12:26:04 PM
    User:  NETTEST\admin
    Computer: DATA1
    Description:
    Windows Server 2003 KB954920 was removed from your computer, and the previous Windows Server 2003 configuration was restored.
    After I removed that is still didn't work but after about five minutes it started working.
    I guess I ned to report that to MS after I research what might be changed to make the patch work.
    Every time I get stuck and ask for help it seems to be just before I stumble on the solution.
    Thanks for replying.
    Well - maybe this will help someone else.
    Thanks again for replying Tony
    ¯\_(ツ)_/¯

  • How to provide access to multiple users connected to a Dumb switch? (multi-auth/multi-domain)

    Good morning everybody,
    I am writing on behalf of not being able to implement a desired outcome in our company network. In fact the situation is as follows:
    What I want to do is to be able to authenticate users (802.1x authentication) in our company radius server and authorize them access by having a dynamic VLAN assignment in a multi-user environment on one and the same port of a Cisco 2960 switch. So far, the authentication and authorization has been working completely smoothly (there are no problems with itself). The concept involves the configuration of both DATA and VOICE VLANs as I there is also phone authentication implemented. In order to simulate this environment I introduce a Dumb switch connected to my Cisco 2960 Catalyst.
    What I have successfully managed to get to work so far is this:
    1) On one switch port I have tried the “authentication host-mode multi-domain” and it worked perfectly for a PC behind a telephone, or with one PC connected to a the dumb switch + the telephone connected to another port of the dumb switch. Logically it is the same situation as there is a separation in two domains – DATA and VOICE. Bellow is an output from show authentication sessions for this scenario.
    Interface  MAC Address     Method   Domain   Status         Session ID          
    Fa0/23     0021.9b62.b79b  dot1x    DATA     Authz Success  C0A8FF69000000F3008E (user1)
    Fa0/23     0015.655c.b912  dot1x    VOICE    Authz Success  C0A8FF69000000F9009F (phone)
    2) On the other hand, when I try the same scenario with the “authentication host-mode multi-auth”, the switch still separates the traffic in two domains and is able to authenticate all users, AS LONG AS they are in the same VLAN.
    show authentication sessions:
    Interface  MAC Address     Method   Domain   Status         Session ID          
    Fa0/23     0021.9b62.b79b  dot1x    DATA     Authz Success  C0A8FF69000000F3008E (user1)
    Fa0/23     b888.e3eb.ebac   dot1x    DATA     Authz Success  C0A8FF69000000F8008C (user2)
    Fa0/23     0015.655c.b912  dot1x    VOICE    Authz Success  C0A8FF69000000F9009F (phone)
    However, I cannot succeed authentication of many users from DIFFERENT VLANs, neither in multi-auth nor in multi-domain modes.
    What I want to get is an output like this:
    Interface  MAC Address     Method   Domain   Status         Session ID          
    Fa0/23     0021.9b62.b79b  dot1x    DATA     Authz Success  C0A8FF69000000F3008E (user1)
    Fa0/23     b888.e3eb.ebac dot1x    DATA     Authz Success  C0A8FF69000000F8008C (user2)
    Fa0/23     0015.655c.b912  dot1x    VOICE    Authz Success  C0A8FF69000000F9009F (phone)
    I want the switch to authenticate the users anytime they connect to itself and for them to have an instant access to the network. (I tell this because I tried scenario 1) with multi-domain mode and authentication violation replace, and it worked but, two users never had access to the “Internet” simultaneously!!!
    The configuration of the interface connected to the Dumb switch is as follows.
    interface FastEthernet0/x                                                      
     description Connection to DUMBswitch                                            
     switchport mode access                                                         
     switchport voice vlan XXX                                                      
     switchport port-security maximum 10                                            
     switchport port-security                                                       
     switchport port-security violation protect                                     
     authentication host-mode multi-auth                                            
     authentication priority dot1x                                                  
     authentication port-control auto                                               
     authentication timer reauthenticate 4000                                       
     authentication violation replace                                               
     dot1x pae authenticator                                                        
     dot1x timeout tx-period 10                                                     
     spanning-tree portfast                                                         
    The way I see it is explained in the following steps:
    - PC1 connects to the Dumb switch. This causes the Cisco switch to authenticate user1. This creates an auth. session with its MAC address linked to a domain DATA.
    - When PC2 connects to the Dumb switch, this causes the violation replace which replaces the recent authenticated MAC address with the MAC of PC2. I would like it once authenticated to appear in the authentication sessions with a link to a new DATA domain linked to the VLAN assigned from the RADIUS server.
    Is this possible? I think (in theory) this is the only way to provide authenticated access to multiple users connecting through Dumb switch to the network.
    Has anybody ever succeeded in such a configuration example and if yes, I would be love to get some help in doing so?
    Thank you
    Stoimen Hristov

    Hi Stoimen,
    I have done a setup similar to yours with the only exception being VLAN assignment. When I used dACLs only, it makes things somewhat easier as the VLAN no longer matters. Remember that the switchport is in access mode and will only allow a single VLAN across it (with the exception of the voice VLAN). I think that is the real cause of your problem.
    From what I can see, you have 2 options available to you:
    1) Use dACLs instead of VLAN assignment. This means that an access list will be downloaded from the radius server straight to the authenticated user's session. I have tested this and it works perfectly. Just Google Cisco IBNS quick reference guide and look for the section that deals with Low Impact mode.
    2) Get rid of the dumb switches and use managed switches throughout your network. Dumb switches will always be a point of weakness in your network because they have no intelligence to do advanced security features like port security, 802.1x, DHCP snooping, etc.
    Hopefully someone else will chime in with another option.
    Xavier

  • MS SQL DB User Management Connector Unable to Select Multiple Server

    Hi,
    We are trying to connect to multiple server using MS SQL DB user management connector but receive the error below when selecting server.
    <Sep 3, 2012 4:28:59 PM MYT> <Error> <XELLERATE.APIS> <BEA-000000> <Class/Method: tcLookupOperationsBean/getLookupValuesForColumnFilteredData encounter some problems: Lookup.PDBUM.MSSQL.DBNamesis not a valid form field>
    Running InitUtil
    Running ExecuteStoredProcForAuthTypeUser
    Running SetProcessFormData
    <Sep 3, 2012 4:30:13 PM MYT> <Error> <XELLERATE.ADAPTERS> <BEA-000000> <Class/Method: tcAdpEvent/verifyServer encounter some problems: IT Resource Type mismatch found for Adapter variable MSSQL_ITRVerify that IT Resource selected on Process Form matches IT Resource type selected for variable>
    Running InitUtil
    Running ExecuteStoredProcForAuthTypeUser
    Running SetProcessFormData
    Running COMBINENAMEWITHSUFFIXPA
    Target Class = com.thortech.xl.util.adapters.tcUtilStringOperations
    Running COMBINENAMEWITHSUFFIXPA
    Target Class = com.thortech.xl.util.adapters.tcUtilStringOperations
    Running InitUtil
    Running ExecuteStoredProcForAuthTypeUser
    Running SetProcessFormData
    <Sep 3, 2012 4:33:13 PM MYT> <Error> <XELLERATE.ADAPTERS> <BEA-000000> <Class/Method: tcAdpEvent/verifyServer encounter some problems: Could not determine IT Resource Key for variable MSSQL_ITR>
    delete mds name:/db/MSSQL DB User Privilege Login Requestrecon.profile
    Unable to delete profile with mds name:/db/MSSQL DB User Privilege Login Requestrecon.profile
    <Sep 3, 2012 4:33:43 PM MYT> <Warning> <Socket> <BEA-000450> <Socket 8 internal data record unavailable (probable closure due idle timeout), event received 17>
    <Sep 3, 2012 4:33:48 PM MYT> <Warning> <Socket> <BEA-000450> <Socket 4 internal data record unavailable (probable closure due idle timeout), event received 17>
    MS SQL DB connector version is 9.1.0.4
    Any ideas on this error above?
    Thank you.
    Edited by: 950985 on Aug 17, 2012 12:21 AM

    verify lookup : Lookup.DBUM.MSSQL.Configuration and provide the required information (eg: provide query property file)
    --nayan                                                                                                                                                                                                                                                                   

  • Multiple IDLE connections

    Hi,
    I have two IDLE enabled IMAP accounts and I'm trying to work out if everything is working properly as it doesn't feel like it is.
    When I check netstat it shows multiple established connections for each account which seems to many for it to be right.
    Any thoughts on what to check? Server is showing two connections which would be right.
    Thanks,
    Adam

    If you must have a 1-1 app user/connection to database user/connection, then using a DatabaseSession would probably be the easiest solution. The means that each user would create and connect to their own DatabaseSession when they login to the app. You could still share the same TopLink project instance to reduce some of the connecting/initialization overhead, but there would be no way to pool connections. Using a DatabaseSession would not allow for any shared caching across users.
    Do you need to be connected as the user for reading, or just for writing to the database? If you can use a shared user/connection for reading, then you could use a ServerSession and have a shared cache. Define the shared user in the ServerSession, and when each user connects acquire a ClientSession through the acquireClientSession(DatabaseLogin) API, which allows you to specify the user/password to connect as for writing.
    In TopLink 10.1.3 you may also wish to investigate the VPD and exclusive client connection support. This allows for some of your data to be read through a user/VPD secure connection, and other shared data to still be cached. It also allows for the user/VPD to be switched on a pooled connection.

  • Simulate Multiple users connecting to same session

    Hi All,
    Is there anyway we can simulate multiple users connecting to the same session in oracle using PL/SQL.
    Thanks,
    MK.

    As per the architects in our company, lots of users connect to the same session and access the database.Exactly what does this mean? A single session can service one user at a time. I would wager that the architects are envisioning (or describing) a connection pooling setup where the middle tier server maintains a relatively small number of connections to the database (each with its own session most likely) and users operate by getting a connection from the pool, making a request, and returning the connection back to the pool. At any given point, only one user can be using a connection.
    If that's the case, you would simulate this by simply executing code in a loop in PL/SQL.
    Of course, if this is the case, each connection in the connection pool would its own copy of the collection and so each connection would get its own list of order numbers. You'd have to develop some way to ensure that each session populated its collection with a different set of order numbers.
    Justin

  • Multiple db connections for one report

    Hi all,
    I am using Oracle Reports 10g R2. Could someone tell me if Oracle Reports supports multiple database connections for one rdf file, like this (using servlet)
    http://your_web_server:port_num/reports/rwservlet?server=server_name&report=myreport.rdf& userid1=username/password@my_db1&userid2=username/password@my_db2 &desformat=pdf&destype=cache
    I am asking this question because my report needs data from two separate Oracle databases.
    Edited by: user12239004 on Apr 27, 2010 2:14 AM

    No, you can only have one login.
    However, this is simple to resolve by creating a database link in one database to the other database.

  • Running Multiple Server Instance in Weblogic Server

    Hi
    I am using Weblogic 5.1.0 with SP6. I am trying to run multiple server
    instances
    of Weblogic Server. The one that comes by default is "myServer".
    My question is if i were to create multiple server instances, do i need to
    copy the
    weblogic.properties file in each of folder corresponding to respective
    application
    server instance. I am not using Clusters.
    Also if i need to include some classes or jar files in my application server
    instance
    classpath, how do i do it. cuz in weblogic.properties file i didn't find any
    property
    corresponding to classpath.
    The classpath i need to set is for my creating a JDBC pool for connectivity
    to my
    AS400 DB2 database using the Type 4 (AS400JDBCDriver) Driver. Is there some
    other way to do it.
    Thanks in advance
    Niranjan

    There is an answer on your first question at
    weblogic.support.interest.clustering
    I asked a similar question. Search for a message posted by me on 24/11/00
    Rgds,
    Mike
    "Niranjan Soni" <[email protected]> wrote in message
    news:[email protected]..
    Hi
    I am using Weblogic 5.1.0 with SP6. I am trying to run multiple server
    instances
    of Weblogic Server. The one that comes by default is "myServer".
    My question is if i were to create multiple server instances, do i need to
    copy the
    weblogic.properties file in each of folder corresponding to respective
    application
    server instance. I am not using Clusters.
    Also if i need to include some classes or jar files in my applicationserver
    instance
    classpath, how do i do it. cuz in weblogic.properties file i didn't findany
    property
    corresponding to classpath.
    The classpath i need to set is for my creating a JDBC pool forconnectivity
    to my
    AS400 DB2 database using the Type 4 (AS400JDBCDriver) Driver. Is theresome
    other way to do it.
    Thanks in advance
    Niranjan

  • Programmatically start/stop applications without admin server connection

    I know I can programmatically start/stop an application through WebLogic's deployment API, but the call needs to go through admin server. I was wondering if there's a way for an application to start/stop another application on the same managed server when the admin server is down. I remember a managed server could be started without an admin server (unless it's started for the first time). So I suppose there must be some way to programmatically start/stop local applications without an admin server as well.
    Thank you for your help in advance.

    Hai,
    I read the Oracle weblogic wlst script document without Admin server you cannot connect the managed server through the WLST script. see the below lines
    "The start command starts Managed Servers or clusters in a domain using Node Manager.
    To use the start command, WLST must be connected to a running Administration Server.
    To start Managed Servers without requiring a running Administration Server, use the
    nmStart command with WLST connected to Node Manager."
    "You shut down a server to which WLST is connected by entering the shutdown command
    without any arguments.
    When connected to a Managed Server instance, you only use the shutdown command to shut
    down the Managed Server instance to which WLST is connected; you cannot shut down another
    server while connected to a Managed Server instance.
    WLST uses Node Manager to shut down a Managed Server. When shutting down a Managed
    Server, Node Manager must be running.
    In the event of an error, the command returns"
    They are two option if you are using adminserver then we can stop the any Managed server.
    The option is if you are using the nodemanager without admin server we can stop the any Managed server.
    The last final solution to kill the particular Managed server pid.
    Regards,
    S.vinoth babu

  • Multiple http connection

    is it possible for me to make multiple http connection to server?
    I'm trying to send data for about 40kb, i send the data into 80 parts ( a part about 500 bytes)..
    is it possible to make about 80 thread in the same time??
    I do this way to reduce time consumption...
    Help me please..

    No, in this case, more threads will most likely slow down the data transfer:
    - more threads means more TCP connections, means more overhead
    - CPU scheduling will make it slower than using one thread, they can't work symultanious anyway
    - One thread is probably already capable of fully filling the network bandwidth with data

  • Smsy_setup and The SLD server connection is inactive

    Hi all,
    I am trying to use smsy_setup to populate systems in smsy.
    when I run the program I get the following error.
    Solution Manager 4.0 by the way
    The SLD server connection is inactive
        Message no. SCDT_LIS_IF011
    Diagnosis
        An error occurred during communication with the System Landscape
        Directory.
    Procedure
        Access the SMSY_SETUP transaction to check the connection data for SLD
        in the expert settings.
    The expert settings in smsy_setup contain the follwing values.
    Write Data Back into SLD
    Default CPU Load AC
    Multiple SLD Servers    
    Hide Progress Display   
    SLD Host             apslm
    Namespace in SLD     sld/active
    SLD Server Port             50100
    SLD User             slddsuser
    AC CPU Load Warning Value     65
    doe anyone have idea as to what could be wrong?
    regards,
    Kevin Hill

    Hi Sasha,
    Are you able to connect to the SLD through the browser via http://server:port/sld
    I removed everyhing from the smsy_setup except for the namespace at it works fine now.
    Have you entered all the relevant data in sldapicust transaction ?
    regards,
    Keivn Hill

  • Multiple SharePoint Connections Appearing

    Has anyone else encountered multiple SharePoint connections appearing for the same server in Office 2013.  We are using Office 365 and I work on office across multiple devices.  This anomaly seemed to pop up when I started using Office for iPad,
    though I've no idea if its connected.  I can remove the extra account and then all works fine, but on reboot the extra account reappears and then I can't open files from the web interface - most frustrating.

    Hi,
    It could be that the cache for the account was still being stored in the registry.
    I suggest you try the method below to delete the Office profile that may still be cached:
    Important
    Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you modify it,
    back up the registry for restoration in
    case problems occur.
    From Registry Editor, browse to: HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Identity\Identities
    Choose the Office profile that you want to delete, and then choose Delete.
    From the Identity hive, navigate to the Profiles node, choose that same identity, open the shortcut menu (right-click), and then choose
    Delete.
    The steps above are quoted from this article below, you may also learn something useful from it:
    https://technet.microsoft.com/en-us/library/jj683102.aspx?f=255&MSPPError=-2147217396
    Regards,
    Melon Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Establishing multiple WLEC connection pools

    Running WLS 6.0 communicating with WLE 4.2:
    I'm looking at setting up multiple connection pools to communicate with multiple
    WLE application domains.
    The code fragment below is from the BEA documentation and works fine if you know
    the domain(pool) name. My code uses the "lookup" method in the InitialContext
    class to get the pool name for single WLEC pool/domain configuration. Is there
    a method to return a list of domain(pool) names?
    Each WLEC connection pool has a Tobj_Bootstrap object that lets you access the
    associated WLE domain. The WLEC component provides an object called BootstrapFactory
    which provides access to the Tobj_Bootstrap object for a particular WLE domain.
    Include the following code in your WebLogic Server client to connect to a WLE
    domain:
    Tobj_Bootstrap myBootstrap = Tobj_BootstrapFactory.getClientContext("myPool");
    where
    The getClientContext() method returns the Tobj_Bootstrap object that is associated
    with myPool. If getClientContext() cannot find a WLEC connection pool with this
    name, it returns null.
    myPool is the name of a WLEC connection pool for the desired WLE domain. This
    WLEC connection pool needs to be defined in the Administration Console.

    Well ... It boiled down to ACLs.
    "Sreeram" <[email protected]> wrote:
    >
    Hi
    I have WLI application ( 7.0 ) and another J2EE appliction configured
    on WLS (
    7.0 ). If I have multiple jdbc connection pools configured to access
    different
    ( or even the same ) databases, I am unable to get the connection to
    execute a
    sql query in the J2EE app. The connection pool gets initialized properly
    during
    the server startup and I can see them in the console but when I try to
    acquire
    a connection from the pool for execution of a jdbc stmt, I am unable
    to obtain
    a connection. Did any one succeed in configuring mulitple jdbc connection
    pools
    and WLI and another J2EE app to run together on WLS 7.0? Any suggestions
    are welcome.
    Thanks
    Sreeram

  • Deleting old server connection - sufficient privileges

    I am attempting to delete an old server connection, but when I do I get a message saying I do not have sufficient privileges. I have tried to "get info" to change the privileges but I can't even get in to that. Command - I doesn't work either. Any other suggestions?

    I think AJ would've cured it 'twere it a Cache problem.
    I think the problem is that it's trying to connect before all the Networking stuff is up & running.
    Some workarounds from the past are...
    Disable Auto Login.
    Mount that Share once, then once the Globe Icon shows up on the Desktop, drag that Globe Icon to the right side of the Dock between Applications & Trash. You now have a Dynamic Mount, a quick click on the Icon in the Dock will connect you.
    On the multiple Shortcuts...
    Mount them all, when show up on the Desktop, then create a new Folder maybe named Shares on/in the Desktop, drag all those Shares shown on the Desktop to that Folder, (you can even rename them once there, if you wish), drag that Folder to the right side of the Dock between Applications & Trash, this should give you a popup menu to select from.:-)

Maybe you are looking for

  • OutBound Status in Message Processing

    Hi, I am trying to call a BAPI and pass the data to BAPI and getting the response from the BAPi. I am capturing the response from BAPI. Once I capture the message I am trying to transform the message . This transformation step is always showing as "

  • What Are Application Keywords in Snow Leopard?

    I recently updated to Snow Leopard, and I've been trying out the expanded syntax coloring. However, I cannot find one example of code colored as an application keyword. I set the color for application keywords to bright red so it would stand out. I h

  • AP Drilldown Reports - FKI3

    Hello All - I was wondering in the due date analysis report for ap drill downs if we can add a special gl selection AND normal transaction on the same selection screen like we can in FBL1N? Right now my client has to run the report for normal transac

  • Other login option is not consistent

    Hello, Does anyone know how to get the "other" log in option to appear consistently or is this just the behavior of OS X. I have 27, 10.4.7 IMacs that I deployed using a disk image. I configured the Directory Access, Active Directory plug-in on the m

  • Why do my audio files import as loops?

    Hi peeps. Wondering if someone could help clear this one up. Whenever i import/drag in audio files they import as loops with a little up/down arrow on the top left of the region. This makes it very tricky to do edits as i frequently click on the arro