Setting multiple targets for AppDeployments or Libraries in wlst off-line

I am currently struggling to add targets/change to Apps and libraries in wlst offline mode. Setting one target is succesfull, but every way i can think of setting multiple targets does fail.
If someone has a good hint.....
What i tried (with errors and outcomes) ;
readDomain('/u01/app/oracle/user_projects/domains/bip_domain')
cd('/AppDeployment/wsm-pm')
et=get('Target')
print etarray(weblogic.management.configuration.TargetMBean,[Proxy for bi_cluster: Name=bi_cluster, Type=Cluster, Proxy for AdminServer: Name=AdminServer, Type=Server])
set('Target',et)Error: set() failed. Do dumpStack() to see details.
dumpStack()com.oracle.cie.domain.script.jython.WLSTException: java.lang.IllegalArgumentException: Param type [Lweblogic.management.configuration.TargetMBean; not supported
Caused by: java.lang.IllegalArgumentException: Param type [Lweblogic.management.configuration.TargetMBean; not supported
        at com.oracle.cie.domain.script.jython.WLScriptContext.set(WLScriptContext.java:1296)
s
cmo.setTargets(et)>cd('/Clusters/bi_cluster')>tcl=cmo>cd('/AppDeployment/wsm-pm')>newTargets=array([,Class.forName('weblogic.management.configuration.TargetMBean'))newTargets.append(tcl)
print newTargets
array(weblogic.management.configuration.TargetMBean,[Proxy for bi_cluster: Name=bi_cluster, Type=Cluster])
set('Target',newTargets)Error: set() failed. Do dumpStack() to see details.
dumpStack()com.oracle.cie.domain.script.jython.WLSTException: java.lang.IllegalArgumentException: Param type [Lweblogic.management.configuration.TargetMBean; not supported
Caused by: java.lang.IllegalArgumentException: Param type [Lweblogic.management.configuration.TargetMBean; not supported
set('Target','bi_cluster')>print get('Target')array(weblogic.management.configuration.TargetMBean,[Proxy for bi_cluster: Name=bi_cluster, Type=Cluster)set('Target','bi_cluster,AdminServer')
print get('Target')
Error: getTargets() failed. Do dumpStack() to see details.
dumpStack()com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.ScriptException: com.oracle.cie.domain.script.ScriptException: No JMSServer object with name AdminServer
set('Target','AdminServer')
print get('Target')array(weblogic.management.configuration.TargetMBean,[Proxy for AdminServer: Name=AdminServer, Type=Server])
bTargets=array([],Class.forName('javax.management.ObjectName'))
cd('/AppDeployment/wsm-pm')set('Target',bTargets)
Error: set() failed. Do dumpStack() to see details.
dumpStack()com.oracle.cie.domain.script.jython.WLSTException: java.lang.IllegalArgumentException: Param type [Ljavax.management.ObjectName; not supported
>
cmo.
cmo.setTargets(newTargets)
ls()...
-rw- StagingMode nostage
-rw- Target bi_cluster
-rw- ValidateDdSecurityData false
print get('Target')array(weblogic.management.configuration.TargetMBean,[Proxy for bi_cluster: Name=bi_cluster, Type=Cluster])
cd('/Servers/AdminServer')
tsvr=cmo
cd('/AppDeployment/wsm-pm')
newTargets.append(tsvr)
print newTargetsarray(weblogic.management.configuration.TargetMBean,[Proxy for bi_cluster: Name=bi_cluster, Type=Cluster, Proxy for AdminServer: Name=AdminServer, Type=Server])
cmo.setTargets(newTargets)Error: setTargets() failed. Do dumpStack() to see details.
dumpStack()com.oracle.cie.domain.script.jython.WLSTException: java.lang.NullPointerException
at com.oracle.cie.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:51)
at com.oracle.cie.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:1538)
at com.oracle.cie.domain.script.jython.ScriptInvocationHandler.invoke(ScriptInvocationHandler.java:143)
at $Proxy1.setTargets(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.WLST.main(WLST.java:29)
Caused by: java.lang.NullPointerException
at com.oracle.cie.domain.script.jython.ScriptInvocationHandler.set(ScriptInvocationHandler.java:175)
at com.oracle.cie.domain.script.jython.ScriptInvocationHandler.invoke(ScriptInvocationHandler.java:103)
... 25 more

Finally solved it myself. For the interest of others.
With 2 calls of moveTargets, the target bi_cluster is replaced with BIP_Cluster_1 for all Library and AppDeployments.
moveTargets('bi_cluster','BIP_Cluster_1','Library')
moveTargets('bi_cluster','BIP_Cluster_1','AppDeployment')
#=======================================================================================
# moveTargets - target configBeans from oldDestination to newDestination
#=======================================================================================
def moveTargets(oldDest, newDest, cfgBean) :
  print 'Moving configBean ' + cfgBean + ' from ' + oldDest + ' to ' + newDest
  cd('/' + cfgBean)
  bag=ls(returnMap='true')
  for bean in bag:
     cd('/' + cfgBean + '/' + bean )
     workBean = cmo
     print "cfgBean " + workBean.getName() + " "
     # if oldDest is in Target of cfgBean
     if str(get('Target')).count(': Name=' + oldDest + ",")!=0:
       # unassign oldDest
       unassign(cfgBean,bean,"Target",oldDest)
       print " +- unassigned " + oldDest + " "
       # if newDest is not in Target of cfgBean
       if str(get('Target')).count(': Name=' + newDest + ",")==0:
         # assign newDest
         assign(cfgBean,bean,"Target",newDest)
         print " +- assigned " + newDest + " "

Similar Messages

  • How to set multiple senders for one account

    Hi all,
    I have a BIS account with my provider and a paid gmail account which collect for me mails from different address. Is it possible to set multiple senders for this account, thus it seems that I'm replying from one of these address and not only from my google address? In fact, it's important for me also that all mails come out from the same SMTP server (google).
    Thanks in advance.
    Best regards,
    Pierluigi

    For the BlackBerry to "send using" a specific email account, it must be set up on your BIS account as an email account, otherwise, you can send from that account.
    You can do that, and then block ALL incoming emails from those accounts, and allow only incoming mail from your one Gmail account, if you desire.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Set multiple passwords for single PDF

    Hi All,
    Do it is possible to set multiple passwords for single PDF i.e) a single PDF can be accessed using predefined passwords. It would be great if any one could can help me .
    Thanks
    Augustine

    Thank you.
    Do you mean different IDs can be used for a single PDF and can make the PDF protected.
    Regards
    Augustine

  • I like to watch tvcatchup or sky go or I player on my iPad while falling asleep, the problem is that the iPad then stays on all night. I would like to find an app that allows me to set a timer for the iPad to switch itself off automatically.

    I like to watch tvcatchup or sky go or I player on my iPad while falling asleep, the problem is that the iPad then stays on all night. I would like to find an app that allows me to set a timer for the iPad to switch itself off automatically, like the sleeper function on a TV.
    Does such an app exist? Can anyone help me? Thanks

    You can try the Sleep Timer.
    https://itunes.apple.com/sg/app/music-sleep-timer/id320583424?mt=8

  • How to sets the Reason for Rejection of the Open Sales Order Lines

    Hello gurus,
              I want to set the Reason for Rejection of the Open Sales Order Lines, Case is like :
    If current date is exeed the Auto Void Confirmed Back Order Days(for item level) +  date (last responding from customer), then reason for rejection should be set, So i want the logic to find out the date is exceed or not.
    Thanks
    Anjana

    Hello anjana,
       Actually your question is some confusing, but if u want to get eldest change as active sales order then logic is as follows:
    1.  On base of OBJNR u have to get UDATE from JCDS table
    2. then write logic as:
    SORT i_jcds BY objnr stat chgnr DESCENDING.
          LOOP AT i_jcds INTO wa_jcds1.
            CLEAR lv_stat.
            lv_stat = wa_jcds1-stat.
            AT NEW objnr.
              AT NEW stat.
                CLEAR: wa_tab.
                wa_tab-objnr = wa_jcds1-objnr.
                wa_tab-stat = lv_stat.
              ENDAT.
            ENDAT.
            IF wa_jcds1-inact = 'X'.
              CLEAR lv_tabix.
              IF sy-tabix > 1.
                lv_tabix = sy-tabix - 1.
              ELSE.
                lv_tabix = 1.
              ENDIF.
              READ TABLE i_jcds INTO wa_jcds2 INDEX lv_tabix.
              IF sy-subrc = 0.
                wa_tab-chgnr = wa_jcds2-chgnr.
                wa_tab-udate = wa_jcds2-udate.
                wa_tab-utime = wa_jcds2-utime.
                APPEND wa_tab TO i_tab.
              ENDIF.
              CONTINUE.
            ELSE.
              wa_tab-chgnr = wa_jcds1-chgnr.
              wa_tab-udate = wa_jcds1-udate.
              wa_tab-utime = wa_jcds1-utime.
            ENDIF.
            AT END OF objnr .
              AT END OF stat.
                APPEND wa_tab TO i_tab.
              ENDAT.
            ENDAT.
          ENDLOOP.
          DELETE ADJACENT DUPLICATES FROM i_tab COMPARING objnr stat.
          SORT i_tab BY objnr stat udate utime.
          DELETE ADJACENT DUPLICATES FROM i_tab COMPARING objnr.
    3. now in i_tab table u'll get eldest UDATE
    Hope its work for u.
    Thanks & Regards,
    Sumit Joshi

  • How to set a target for iView?

    Hi,
    I am facing a critical situation. I have created a page with narrow:wide layout and in the left hand side panel and displaying a JSP page which is with the URL links(<a href=...>..</a>). My requirement is when i click the link in the left hand side panel the page should be displayed in the right hand side panel iView. Now I am doing this by setting the target attribute of the <a> tag, but this is not recommended as i have to change code when ever i change the target. So i am looking for an option where i can set the target option for the iView.PLease help me.
    Thanks in advance.
    Ashok Chava

    Hi Ashok,
    I think you can use EPCF in you case.
    Refer the following link
    http://help.sap.com/saphelp_erp2004/helpdata/en/ce/3e98408d953154e10000000a1550b0/frameset.htm
    Do revert if you have any more doubts.
    Regards
    Rajeev.
    Do award points for helpful answers in SDN

  • Can I create multiple Targets for one Trigger?

    What I would ultimately like to have is a target by my trigger as well as another target at a different location on the page, both appear when I rollover the trigger.
    Please let me know of ways I can achieve this.
    Thanks guys!

    Hi Jendarhy, I'm also trying to get one trigger to display multiple targets. Were you able to figure out how to do it? If so, would you be kind enought to share the answer?
    I saw someone post this answer but I still can't figure out how to set it up:
    In this case, the target container is a canvas. You can draw anything you like in this container. If you want two targets, draw them both, seperatly, but inside of the target container. everything in that container will appear when you activate the trigger.

  • Setting multiple paswords for sys user

    hi there
    is it possible that we set multi passwords for user : SYS ?
    i'v heard it can be done
    plz confirm this and tell me how if it is possible
    thanks

    mahdin-sotoudeh wrote:
    hi there
    is it possible that we set multi passwords for user : SYS ?
    i'v heard it can be done
    plz confirm this and tell me how if it is possible
    thanksNo it's not possible. The password for the Sys can be just one and is setup in teh password file .
    HTH
    Aman....

  • Multiple targets for a same interface

    Hi,
    I am having a scenario that, a single source table should be mapped to two target oracle tables.
    Is the only way is to create two interfaces. Cant we have the same interface in which two target tables are assigned?
    Thanks in Advance,
    Ram Mohan T.

    A single interface targets only a single table/datastore.
    If you are having to load the data from an external source, and load into two tables, an approach is to separate the load and integration phases. Have one interface load the data into a temporary table in the work schema, then two interfaces which read that data and load it into your target tables. (You could also use only two interfaces, where you set the integration KM option to DELETE_TEMPORARY_OBJECTS in the first to no, and read the loading table created there in the first interface as the source for your second interface). I prefer the 3 interface option, it ends up being cleaner and clearer.

  • MX Electronic accounting - Set multiple UUID for single MIRO Document number

    Greetings everyone
    In my company already implemented the neccesary changes required by the new laws in MX Electronic Accounting inside the MIRO transaction (note 2093189), as well as the related notes requested for electronic accounting. Everything's working fine so far since right now we save the UUID field from CFDI XML file into an Invoice Document number. But now in my company request to save multiple CFDI invoices into a single Invoice document number. My approach seems to be simple because we only need to generate a new window to save the multiple UUID numbers and link the Invoice Document Number (BELNR), company code and fiscal period/year and UUID document into a Z custom table. But I have some questions that I'm not sure how will affect:
    How does affect the montly policies report that we need to send to the government (SAT).
    How do we need to handle the policies XML file in this type of scenarios
    Any of you have the same scenario?
    how do you handle this kind of scenarios?
    So far I read the following notes but I can't find a clue so far for this kind of scenario (Am I missing something?)
    (MX) Contabilidad Electrónica - RME 2014 Anexo 24
    Notes:
    http://service.sap.com/sap/support/notes/2041490
    http://service.sap.com/sap/support/notes/2093189
    http://service.sap.com/sap/support/notes/2042663
    Thanks in advance and best regards
    Lorenzo Martín Olmos

    Hi Shekhar
    Thanks a lot for you comments and I apologize for the late reply. As you point this is the most common scenario. In my case when the creditor is the Mexican Social Security Institute (IMSS), and after the payment, either IMSS and INFONAVIT (the governments institute for workers housing) generates different CFDI invoices.
    How do you currently handle this scenario?
    Thanks for your comments. Warm regards
    Lorenzo Martín Olmos

  • Setting multiple values for query prompt: In List...

    Dear All,
    I have used "Radio Button" component which has labels like A, B and C. If user selects A then Radio button save 10 as its value on Excel and which being used in queries prompts. If user select B then Radio button save 20 on Excel at Destination cell and all queries use this for prompt value. But when user select C which is the for both values 10 and 20. No queries executed successfully, values are in String and I tried following values for C in excel
    "10,20"
    10,20
      '10,20'
    10;20
    '10','20'
    10 20
    But when I execute this query at Dashboard Query Panel and selects both 10 and 20 as Inputs since I'm using In List operator then the query executes perfectly. See below the query:
    SELECT   Table__1."0CALMONTH",   SUM(Table__1."0INV_QTY"),   SUM(Table__1."0NETVAL_INV"),   Table__1."0DOC_CURRCY" FROM   "SD_C_ZSDIC"."PUBLIC"."IC_ZSDIC"  Table__1 WHERE   (    Table__1."0CALDAY"  BETWEEN  {d '2014-01-01'}  AND  {d '2014-06-13'}    AND    Table__1."0ACCNT_GRP"  =  'ZLOC'    AND    Table__1."0COMP_CODE"  =  '1000'    AND    Table__1."0MATERIAL__0DIVISION"  IN  ('10','20')    AND    Table__1."0CALMONTH"  <>  0    AND    Table__1."REFERENCE_DATE"  =  {d '2014-06-13'}   ) GROUP BY   1,    4 HAVING   SUM(Table__1."0INV_QTY")  <>  0 ORDER BY   1
    1. In which format I should save value of C, so that I can have '10','20' for the query prompts value?
    2. Am I missing something or my format of C values at Excel sheet is not correct on?
    I will appreciate your reply in this regard.
    Many thanks!!!
    Tariq Ashraf

    put the output of C
    in 2 cell
    for eg
    C1=10
    C2=20
    and map the 0MATERIAL__0DIVISION(prompt) to cell C1 and C2
    NOTE
    we have to write  formula in C1 and C2
    C1 = if radiobutton=b then 20 else 10.
    C2 = if radiobutton=c then 20 else ""
    map both cell c1 and c2 to the list prompt
    it will work

  • Can i set multiple users for 1 ipad

    I got my wife an Ipad. I want to know if I can set 2 users on it?

    No. iOS is not a multi-user operating system. You can use
    web-based email to keep your accounts separate and private,
    but you can not have different logon environments like on
    a desktop or laptop computer.

  • Can i daisy chain external drives and use multiple disks for my iTunes libraries

    It's amazing how much content you can acquire. I've filled my 2TB external drive with content. I purchased another drive and daisy chained them. How do I get additional uploads to automatically go to the new drive? Itunes is indicating that the drive is "full".
    Please help! I've got 6 downloads effectively "paused"

    No, sorry, Time Machine can only back up to a single volume.
    Short of getting a larger disk, your best bet is to back up one drive (probably the OSX drive) with Time Machine, and use a different app to back up the other one to a different drive.  See the green box in Time Machine - Frequently Asked Question #27 for some suggestions.

  • Setting target for the handler in CPO

    Hi,
    I would like to know how to set the target while invoking a handler at CPO end from CPSC. For testing at CPO end, i usually set the target at start time or as a default target. But i need to select the target based on the user who invokes the process. So how can i set the target for this scenario? My process is a webservice triggered and user trigerred one. There is an option of setting the target of Webservice triggering event's target. But am not able to configure that properly. Could anyone please help how to resolve this?
    Anish

    "Web Service Trigger" will always have the same target (Automation Service), so that will not be particularly helpful to what you are trying to achieve.
    I think you may want to approach this a little different.
    Suppose process A is the process for which you want to dynamically choose a target, based on how it is invoked (via a Northbound Web Service with some parameters or by a end-user or perhaps on a schedule).
    Move most of the functionality of the process A into process B.
    Modify process A to call process B.
    Add "steps" to process A, before the call to B, to find the target that you want. You can use "Find Target" activity and utilize properties of the trigger to determine the right target. For example, if the name of the target is passed as a parameter to the process or if there by looking up the target in a table variable "username to target".
    Call process B and use the target found in "Find Target" activity, instead of the one that process A is running on.
    I hope that makes sense.

  • Setting targets for the KPI's

    Where and how do you set the target for the KPI?
    I see that there are input ready quesries available to set targets how to use them?
    Can you only set targets for base KPI's?
    How and where is the data collected stored for the KPI's? in the standard cube given as business content?
    I would really appreciate your input Gurus.

    Hi Sijesh,
    I am also, currently working on a project implementing BO SuPM Version 1.0. Landscape is ECC -> BI -> SuPM dashboards.
    I have created a KPI in SuPM dashboard.
    Case 1 : Automatic data collection - This KPI is marked for Automatic data collection. So, maintained Scripts with Connectivity and SAP BW Query name. I save this KPI and include in a new report and Run it. There are no records displayed.
    Case 2: Manual data collection - This KPI is marked for manual data collection. So, maintained values in SuPM portal itself. I save this KPI and include in a new report and Run it. There are no records displayed.
    Could you please help me how KPI in SuPM be filled manually and automatically ( from BW Query)?
    Thanks,
    Best Regards
    PhaniRaj

Maybe you are looking for