ALSB Newbie: WLST script for SLA Alerts

Hi,
I am new to ALSB 2.6. Can anybody give me an idea how to write a WLST script to automate creation of SLA Alerts for all the proxy services(60) and business services(60).
Thanks,
Sunny

Hi,
I am new to ALSB 2.6. Can anybody give me an idea how to write a WLST script to automate creation of SLA Alerts for all the proxy services(60) and business services(60).
Thanks,
Sunny

Similar Messages

  • WLST Script for Disabling/Enabling Global SLA Alerting.

    Hello,
    I wanna find a way from the WLST to disable and enable the SLA Alerting which is under Operations-->Global Settings in the sbconsole. This is the global setting not per sercive!
    I have found how to create a session and how to disable the alerts per service, but i cannot find which MBean is accessed when throught the sbconsole the global SLA alerting is disabled/enabled.
    Can anybody point me to the right direction or help me to find how to do this from WLST.
    Thanks.

    Hi Ganesh,
    I have finally created the script i was looking for.. I copy-paste it below as a sample... For sure you need all the lines of code until the comment i have put "#####you need this code above"
    now the code you see below the comment is for disabling the global sla alerting... you have to write a bit to target a specific service that you want to disable.
    Keep in mind that after you make your change you hava to include those lines in order to activate the changes and disconnect and exit..
    sessionMBean.activateSession(sessionName, "enable SLA")
    disconnect()
    exit()
    If you have access to oracle support search for wlst script for osb it has a lot and you can find how to target a specific service...
    I hope that i help a little bit
    import sys
    import wlstModule
    from com.bea.wli.sb.management.configuration import SessionManagementMBean
    from com.bea.wli.sb.management.configuration import ALSBConfigurationMBean
    #from com.bea.wli.sb.management.configuration import ProxyServiceConfigurationMBean
    from com.bea.wli.sb.management.configuration.operations import OperationsConfigMBean
    from com.bea.wli.config import Ref
    from com.bea.wli.sb.util import Refs
    # Connect (username, password, URL)
    connect('weblogic', 'password', 't3://localhost:7001')
    domainRuntime()
    # Create a session name
    sessionName =sessionName = String("SessionScript"+Long(System.currentTimeMillis()).toString())
    print('... after session. Session is: ', sessionName)
    # Get the session MBean and create a session
    sessionMBean = findService(SessionManagementMBean.NAME,SessionManagementMBean.TYPE)
    print('-debug-this is the sessionbean',sessionMBean)
    print('SessionMBean is: ', sessionMBean)
    sessionMBean.createSession(sessionName)
    print(String('Session was created ... ').concat(sessionName))
    #####you need this code above
    domainCustom()
    cd('com.bea')
    #path='com.bea:Name=OperationsConfig.'+sessionName+',Location=AdminServer,Type=com.bea.wli.sb.management.configuration.operations.OperationsConfigMBean'
    cd('com.bea:Name=OperationsConfig.'+str(sessionName)+',Location=AdminServer,Type=com.bea.wli.sb.management.configuration.operations.OperationsConfigMBean')
    set('DomainSLAAlertingEnabled',java.lang.Boolean("true"))
    # Now commit (activate) the changes
    sessionMBean.activateSession(sessionName, "enable SLA")
    disconnect()
    exit()

  • WLST scripts for deploying and migrating OSB project required

    Hi,
    I need sample/reusable WLST scripts for the following requirements:
    1. deploying OSB project developed on workbench to the remote server.
    2. migrating OSB project from Remote Server A to Remote Server B.
    I know other mechanisms to register an OSB project with the server but appreciate if some one can share the above scripts and associated documentation with me.
    Regards,
    CC

    http://download.oracle.com/docs/cd/E13171_01/alsb/docs21/deploy/config_appx.html
    http://www.oracle.com/technology/sample_code/products/osb/samples/PARAMETERIZE.zip (other samples here : http://www.oracle.com/technology/sample_code/products/osb/index.html )

  • Can't find sample WLST Scripts for OSB10gR3

    Hello,
    I have installed OSB 10gR3. I do not find sample WLST Scripts to create a OSB Domain etc. Sample scripts are available in ALSB 2.5 under C:\bea\alsb25\weblogic92\samples\server\examples\src\examples\wlst\online.
    Can you please post WLST Scripts for creating a ALSB Domain, cluster configuration etc for 10gR3.
    Thanks in advance.

    Hi,
    Pls choose custom install and choose Samples for Weblogic Server, Once installed check
    c:\beahome\wlserver_10.3\samples
    You will have samples for WLST
    http://edocs.bea.com/wls/docs100/config_scripting/intro.html#wp1034451

  • Example WLST scripts for creating clustered domain for soa suite 11.1.1.4?

    Hello,
    does anyone know sample wlst scripts for creating domain for soa suite 11.1.1.4 on top of weblogic 10.3.4?
    I try to create a domain having a cluster with two managed servers in two linux machines.
    Any help appreciated.
    regards, Matti

    Please refer -
    http://download.oracle.com/docs/cd/E17904_01/web.1111/e13715/domains.htm
    http://download.oracle.com/docs/cd/E17904_01/web.1111/e13715/intro.htm#WLSTG112
    Regards,
    Anuj

  • Does anybody have a WLST script for step-by-step cluster restart?

    Does anybody have a WLST script for step-by-step "smart" cluster restart?

    Dear SAM,
    are you looking for exchange 2013 installation. Please follow below link. I have done the same scenario as yours
    1. install first VM - 2012
    2. Static IP / loopback as primary DNS
    3. install ADDS /DNS (forwarder to ISP)
    4. install second VM - Static IP again
    5. DNS of second VM to be the IP of first VM
    6. this will join the domain
    7. installation of exchange will be simple, configuration from this link : http://www.techieshelp.com/exchange-2013-step-by-step-configuration/
    MARK AS USEFUL/ANSWER IF IT DID
    Thanks
    Happiness Always
    Jatin

  • WLST Script for RDBMS Event Generator

    Hello WLI Gurus,
    I need the WLST Script for RDBMS Event Generator. There was a script in dev2dev but is no longer accessible. I need it for WLI 9.2.
    Thanks in advance.
    Varun

    If you are using a cluster you need to make sure the connection pool and data source are deployed on the admin server. I have had this problem many times before.

  • WLST script for changing password for userid in Weblogic 9.2

    Hello Everyone,
    We want to change password for userid in weblogic 9.2. Is there a way we can do this by using WLST script? If so please provide me with steps for doing that using WLST. Thanks in advance.
    - - Weblogic Consultant

    Did you try going to the WLST documentation and searching for it? Go to [http://edocs.bea.com/wls/docs92/pdf/config_scripting.pdf] and search for "Changing a Password". The example there seems to be what you need.

  • WLST Script for Increase Log Level

    Hi All,
    How do we increase the log level of the log files using WLST ?
    I know, how to increase the log levels using the EM Console page, but I want to know, if it can be done using WLST or Python script.
    Thanks.

    Here is a WLST script that you can adjust to meet your requirements.
    connect('weblogic', 'welcome1', 'localhost:7001')
    edit()
    startEdit()
    cd('/Servers/AdminServer/Log/AdminServer')
    cmo.setLoggerSeverity('Info')
    activate()
    Run with $ java weblogic.WLST ScriptBoot.py
    Note my server is called AdminServer, so you will need to adjust for your server name and change logging level as desired.
    Mark

  • Shell script for oracle alert.log file

    Hi Gurus,
    I wanted to write shell script to know the last 10 shutdown timings of the database from alert log file. I'm working on oracle 9i.
    Could anyone please advice on this.
    Thanks in advance
    regards,
    Shaan
    Edited by: Shaan_dmp on Jan 5, 2009 1:27 PM
    Edited by: Shaan_dmp on Jan 5, 2009 1:28 PM

    Use awk. I don't have a 9i to hand but here is a very simple version for 10g XE
    My awk file (the line numbers are for the notes below - don't include them:
    01:BEGIN { prevline = "";}
    02:
    03:/Completed: alter database close/ {print prevline,FS,$0;}
    04:
    05:{prevline = $0;}The command line and results (from my 300k alert log)
    $ awk -f alert.awk.txt alert_xe.log
    Fri Apr 11 18:08:40 2008   Completed: alter database close normal
    Fri May 16 18:53:21 2008   Completed: alter database close normal
    Tue May 20 17:28:23 2008   Completed: alter database close normal
    Thu Jul 17 19:08:52 2008   Completed: alter database close normal
    Fri Aug 15 15:12:48 2008   Completed: alter database close normal
    Wed Nov 05 08:52:59 2008   Completed: alter database close normal
    Fri Nov 14 16:36:03 2008   Completed: alter database close normal
    Tue Dec 09 10:46:23 2008   Completed: alter database close normal
    Mon Jan 05 11:12:22 2009   Completed: alter database close normalWhat it means:
    1) the BEGIN section at line 01 defines the variable to hold the previous line
    2) the /search string/ at line 03 finds the marker in the file for a shutdown, then does the required action (print the time which was in the previous line, and then this line; use FS (the awk field separator - normally space) as a separator
    3) at line 05 is an instruction we do on every line - so we remember it in case it is the timestamp for the shutdown.
    Now, you can include more of the corner cases for shutdowns by adding more search patterns etc. For more information, google for awk examples.
    Awk is really good at this sort of thing!
    HTH
    Regards Nigel

  • ALSB Deployment using WLST scripts

    Hi
    Any body can help me with WLST scripts for Deployments on ALSB ?

    Also, for ALSB particular questions, you should use the SOA Suite forum:
    SOA Suite

  • Wlst script to change values for Logging.

    Hi,
    i am trying to write a wlst script to change attributes for the following.( i am new to wlst scripting)
    For all servers in a domain,
    Logging --> General --> Check Limit number of retained files
    --> Files to retain to different number.
    --> Log file Severity Level
    --> Standard out Severity Level
    --> Demain log broadcaster Severity level
    --> Memory Buffer Severity Level
    Logging --> HTTP --> Check Limit number of retained files
    --> Files to retain to different number.
    I was able to figure out the path for some of the attributes in Logging --> General.
    wls:/wl9xdomain/serverConfig/Servers/AdminServer/Log/AdminServer>
    wls:/wl9xdomain/serverConfig/Servers/AdminServer/Log/ManagedServer1>
    Can you help in finding the paths for above attributes.
    And this is the sample script i wrote, and succeded in changing "Files to retain to different number" in Logging --> General.
    connect('weblogic','weblogic','t3://localhost:7001')
    edit()
    startEdit()
    cd('/Servers/AdminServer/Log/AdminServer')
    set('FileCount',10)
    validate()
    save()
    activate()
    disconnect()
    exit()
    Thanks,
    Krishna.
    Edited by: user2656687 on Apr 15, 2009 4:46 PM

    Thanks for the response. I was able to figure out that access.log file attributes are in /Servers/AdminServer/WebServer/AdminServer/WebServerLog/AdminServer.
    And now i trying change script to apply for all the servers.
    when i use for loop it is failing. any thougts on it. may i know the syntax in this case..
    connect('weblogic','weblogic','t3://localhost:7001')
    edit()
    startEdit()
    cd('/Servers/AdminServer/Log/AdminServer')
    cmo.setNumberOfFilesLimited(true)
    cmo.setFileCount(100)
    cmo.setDomainLogBroadcastSeverity('Warning')
    cmo.setMemoryBufferSeverity('Warning')
    cmo.setLogFileSeverity('Warning')
    cmo.setStdoutSeverity('Warning')
    cd('/Servers/AdminServer/WebServer/AdminServer/WebServerLog/AdminServer')
    cmo.setNumberOfFilesLimited(true)
    cmo.setFileCount(100)
    save()
    activate()
    Thanks,
    Krishna.

  • Alert and Monitoring Scripts for Hyperion Applications

    Hi Gurus,
    Can you please provide me with any customized scripts for automating alert mails and monitoring activities pertaining to Hyperion Applications.
    If not, can you please suggest some alternatives where i can get hold of some scripts. Any kind of help is greatly appreciated.
    Also can someone please throw some light about the APPMULE and how to procure their services or we can get it for free trial.
    Regards,
    Uday

    Any kind of leads on this is really appreciated.
    Regards,
    Uday

  • Why do we use WLST Scripting when things can be done manually??

    Hi experts ,
    It may be a stupid question ,
    why do we use WLST scripting for things like deleting Queue _ _ etc ,      which can be done manually (through console)Please help i am newbie in this technology

    In addition to the practical reasons which Barosa supplied, it is also a best practice for addtional reasons:
    <ul><li>removing human errors from typos, omissions, etc
    </li>
    <li>making certains tasks (domain creation, configuration, application deployments, etc) repeatable, especially ones with many steps
    </li>
    <li>tasks that are repeatable, once tested, have a high degree of confidence that they will be done exactly the same way next time with a script
    </li>
    </ul>
    There are many more, but hopefully this gives you an idea of the benefits.

  • Script for Member Count in list of Distribution List

    Hi All,
    Would like to see your help in some powershell scripting. I am still a newbie in scripting for Exchange 2010 (Office 365). I am tasked to write a script that will count how many members in a list of distribution list. I have manage to come up with most of
    the task, but I am not able to get the count. The error says Object not found. Below is my simple script. Hope someone can help me to see where are my mistakes in the script. This is how my script works, 
    1. Generates a TXT file for the list of DLs
    2. Get reads the TXT file and generates the user counts for each DL in the TXT file.
    3. Output the results into a CSV file.
    Get-DistributionGroup -Identity DL-ATD* | Select-Object DisplayName > DL.txt
    $data = @()
    $dls = get-content DL.txt
    foreach ($dl in $dls) {
     $data += New-Object -TypeName PSObject -Property @{
      DisplayName = $dl
      Count = (Get-DistributionGroupMember -Identity  $dl  | Measure-Object).Count
    $data | Export-Csv -Path mydllist.csv -NoTypeInformation
    Thanks in advance.

    Hi,
    Thanks for the scripts, but the scripts mentioned are searching for all the DL which are available in the server. Is there a way I can look for like selected ones, for example any DL that starts with DL-ATD.xxxxx.
    Thanks.

Maybe you are looking for

  • 16:9 letterboxed project questions

    This is my first 16:9 project and it's a little confusing... My source footage is cropped to 16:9 aspect ratio from 4:3 but it's not anamorphic, it's only letterboxed. The frame size came out to be 720X404 when cropped and compressed with Compressor.

  • Please share your PDF/UA-compliance experiences

    I encourage others to share your experiences in remediating PDFs for ISO 14289 (PDF/UA) compliance. Let’s learn from each other’s experiences. I am working with documents that previously passed the Acrobat checker and PAC 1.3 along with manual checks

  • Bug in PDF and print output with gradients?

    I've got a document that makes use of a gradient fill in a table, and I find that (at least for the < 2pt border widths) the border has a thin white line to either side. It shows up readily in both the print and PDF outputs. Is this a known issue? Wh

  • RAW files converted to JPGs - why?

    Pics shot in RAW format in my Minolta A2 camera appear correctly as MRW files of 11.6mb each when imported into iPhoto. However, when I look for them in the iPhoto Library (in their correct catalogue position under year/month/date) they are displayed

  • How to implement drag-and-drop functionality in xMII iGrid?

    Hi, Is it possible to implement the drag and drop functionality between two iGrids of xMII in an irpt page? If yes can anyone please explain how? Thanks in advance, Dipankar