Working wlst script on weblogic 10.3 for monitoring jvm,jdbc,serverstate,et

H team,
please provide me working wlst script on weblogic 10.3 on for monitoring jvm,jdbc,server state, threads, etc.
UNIX OS: solaris X86
email id: [email protected]
thanks
surya

H team,
please provide me working wlst script on weblogic 10.3 on for monitoring jvm,jdbc,server state, threads, etc.
UNIX OS: solaris X86
email id: [email protected]
thanks
surya

Similar Messages

  • WLST script is throwing errors under for loop

    I'm new to wlst and getting the below errros while running the script. the name variable within cd command does not replaced with right value and abort the error. I would appropriate if some can point me to right direction.
    cat serverName2.py
    connect('test','test123','t3://test-app-dev-a:12619')
    domainRuntime()
    svrs = adminHome.getMBeansByType('Server')
    for s in svrs:
    name = s.getName()
    cd('/ServerRuntimes/'+'name')
    ls()
    disconnect()
    java weblogic.WLST serverName2.py
    getting the below errors
    Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.
    For more help, use help(domainRuntime)
    No stack trace available.
    Problem invoking WLST - Traceback (innermost last):
    File "<iostream>", line 170, in cd
    WLSTException: 'Error cding to the MBean'

    You should remove quotes for name.
    cat serverName2.py
    connect('test','test123','t3://test-app-dev-a:12619')
    domainRuntime()
    svrs = adminHome.getMBeansByType('Server')
    for s in svrs:
    name = s.getName()
    cd('/ServerRuntimes/'+ name )
    ls()
    disconnect()
    Thanks,
    Krishna.

  • Help in writing scripts for monitoring

    Hi All,
    I am in the position to write scripts for monitoring JVM and JDBC. I know the concept of confiuration MBean and run Time MBean.I planned to use WLShell scripting.In my organization using WLShell is not preferred by anyone. I
    dont have any further idea about it. Any other possibilies are there to list the paramters of JVM and JDBC using any scripting.Please help me regrding this.
    Jasmine

    I solved that problem.Now i could enter into intractive mode.but couldnt connect to server using connect('weblogic','weblogic','t3://localhost:7001').The servers are up and running.
    I am getting the following error.
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.io.StreamCorruptedException
    at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:138)
    at weblogic.management.internal.RemoteMBeanServerImpl_812_WLStub.getServerName(Unknown Source)
    at weblogic.management.scripting.WLScriptContext.connect(WLScriptContext.java:129)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
    at org.python.core.PyMethod.__call__(PyMethod.java)
    at org.python.core.PyObject.__call__(PyObject.java)
    at org.python.core.PyObject.invoke(PyObject.java)
    at org.python.pycode._pyx4.connect$2(<iostream>:68)
    at org.python.pycode._pyx4.call_function(<iostream>)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyFunction.__call__(PyFunction.java)
    at org.python.pycode._pyx6.f$0(<input>:1)
    at org.python.pycode._pyx6.call_function(<input>)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyCode.call(PyCode.java)
    at org.python.core.Py.runCode(Py.java)
    at org.python.core.Py.exec(Py.java)
    at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
    at org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.java)
    at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java)
    at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java)
    at weblogic.WLST.main(WLST.java:113)
    Caused by: java.io.StreamCorruptedException
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1301)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
    at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:119)
    at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:112)
    at weblogic.management.internal.RemoteMBeanServerImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:353)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    --------------- nested within: ------------------
    weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested exception:
    <b>Please help me out.</b>
    Jasmine

  • 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.

  • Why this WLST script does not work from ant a task

    Hi,
              The following is my lovely WLST script to disable managed server hostname verification in a cluster environment.
              It works perfect if I run it from the OS command line,
              java -cp $WL_HOME/server/lib/weblogic.jar sslSetting.py weblogic weblogic t3://localhost:7001
              But if I run it from ant task, it never works. Nothing happens, not even any messages. Any idea?
              ------ sslSetting.py -----------
              # Disable HostnameVerification on managed servers
              # This is a ONLINE script. The admin server must be running
              # @param $1 BEA_USER_NAME
              # @param $2 BEA_USER_PWD
              # @param $3 admin server URL
              if (len(sys.argv) != 4):
              print "usage: " + sys.argv[0] + " domain-home "
              sys.exit()
              beaUserName=sys.argv[1]
              beaUserPwd=sys.argv[2]
              adminServerUrl=sys.argv[3]
              def handleServer(server):
              SSLPath="/Servers/" + server.getName() + "/SSL/" + server.getName()
              print("handleServer(1): " + SSLPath)
              try:
              cd (SSLPath)
              print("handleServer(2): " + SSLPath)
              set("HostnameVerificationIgnored", "true")
              except Exception, inst:
              dumpStack()
              print ("FAILED handleServer(): " + SSLPath)
              else:
              print ("DONE handleServer(): " + SSLPath)
              #===============================================================================
              # Main
              #===============================================================================
              try:
              connect(beaUserName, beaUserPwd, adminServerUrl)
              edit()
              startEdit()
              adminServerName=cmo.getAdminServerName()
              for server in cmo.getServers():
              if adminServerName != server.getName():
              handleServer(server)
              save()
              activate()
              except Exception:
              dumpStack()
              else:
              print ("=== DONE ===")

    OK, when I run the WLST script from command java, I only need the weblogic.jar in the classpath. But I'll need a couple other jar file for it to work inside an ant target, as showing below.
              <target name="run-wlst">
              <java classname="weblogic.WLST" fork="true">
              <classpath>
              <pathelement path="${props.JAVA_HOME}/lib/tools.jar"/>
              <pathelement path="${props.WL_HOME}/server/lib/weblogic_sp.jar"/>
              <pathelement path="${props.WL_HOME}/server/lib/weblogic.jar"/>
              <pathelement path="${props.WL_HOME}/server/lib/webservices.jar"/>
              </classpath>
              <sysproperty key="weblogic.Home" value="${props.WL_HOME}" />
              <arg line="sslSetting.py weblogic weblogic t3://localhost:7001"/>
              </java>
              </target>

  • 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

  • WLST script deploy EAR File in Weblogic Server

    Hi,
    Can any one help me providing the steps to deploy EAR file using WLST Script.
    Thanks in Advance.
    Regards
    Balaji S

    You can use the deploy command, for example,
    deploy('DeploymentName', path=LocationOfYourEARFile, targets='A Cluster or a Server');A complete example can be found here: http://middlewaremagic.com/weblogic/?p=6329
    And the reference: http://download.oracle.com/docs/cd/E17904_01/web.1111/e13813/reference.htm#i1024284

  • WLST Ant task not working -- error in finding weblogic.Home

    I am attempting to set up a WLST script to automatically set up my domain. The following is a minimal version of the Ant task I'm using:
    <wlst debug="true" failOnError="true">
        <classpath>
            <pathelement location="${weblogic10.home}/server/lib/weblogic.jar"/>
        </classpath>
        <script>
            connect('weblogic','weblogic','t3://localhost:5000')
        </script>
    </wlst>When I run the target, I get the following error:
    java.lang.RuntimeException: error in finding weblogic.Home
         at weblogic.ant.taskdefs.management.WLSTTask.execute(WLSTTask.java:168)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:301)
         at org.apache.tools.ant.Target.performTasks(Target.java:328)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:301)
         at org.apache.tools.ant.Target.performTasks(Target.java:328)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
         at org.apache.tools.ant.Main.runBuild(Main.java:632)
         at org.apache.tools.ant.Main.startAnt(Main.java:183)
         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:17)My weblogic10.home property (referenced in the ant target) points to the weblogic installation directory (C:/bea_10/wlserver_10.0). Weblogic.jar exists in the path specified, and contains the class weblogic.Home.
    What am I missing? Any help would be greatly appreciated. I'm using Ant 1.6.5 and Weblogic 10.0 on Windows XP, if that makes a difference.
    Thanks in advance!
    -Jake
    Edited by jakerobb at 07/12/2007 1:52 PM

    Hi,
    I too have this problem. I am trying to use my own ant installation. The docs say that we can do that. However, if i try to set the domain env then the ant command will point to bea's ant. Anyway I have defined the task using a taskdef as follows
    <path id="wl_classpath">
              <pathelement location="${BEA_HOME}/patch_weblogic922/profiles/default/sys_manifest_classpath/weblogic_patch.jar" />
              <pathelement location="${env.JAVA_HOME}/lib/tools.jar" />
              <pathelement location="${WL_HOME}/server/lib/weblogic_sp.jar" />
              <pathelement location="${WL_HOME}/server/lib/weblogic.jar" />
              <pathelement location="${WL_HOME}/server/lib/webservices.jar" />
         </path>
    <taskdef name="wlst" classname="weblogic.ant.taskdefs.management.WLSTTask">
              <classpath refid="wl_classpath" />
         </taskdef>
         <target name="start_appinstance" description="--> Starts the Appinstance"
              <wlst debug="true">
                   <script>
                        connect('weblogic','weblogic','t3://localhost:7001')
                   </script>
              </wlst>
         </target>there is no weblogichome or beahome attribute for this task.
    My objective is to control a server using the node manager. I believe the only way to do this is to use wlst and not wlserver.
    Thanks
    Shaival
    PS: i am using version 9.2MP2 for weblogic and ant 1.7

  • 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 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.

  • 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

  • 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

  • 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 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 )

Maybe you are looking for

  • Scripts works in Simulator and Apple DVD player but not on TV

    I have a basic project with two different tracks. The first one is video and audio. Plays "as is". The second has video, two audio and one subtitle. Depending on which button, the second Track should be played with different audio and with/without su

  • Fonts showing up as Unix executible files in snow leopard

    Hello, We just upgraded to new imacs with Snow Leopard 10.6.4 and almost all of our fonts located on the hard drive are showing up as Unix Executable files with 0kb. Besides having problems installing these into Suitcase Fusion 2, I think the fact th

  • V31.0 Mac OS 10.6.8 erratic vertical scrolling; v.30.0 is fine (2 imacs)

    I recently had our computers checked at Elite Mac Techs, they are both working fine under OSX 10.6.8; we are reluctant to upgrade OS because we use (and love) Eudora and are not sure if it will work well in 10.7. Anyway, when we upgraded one of the t

  • Report Painter - Add PS master data columns

    Dear Experts, I created new reports for Project System via the transaction CJE2 . I will wish now create columns containing master datas of the PS objects : For definition of the project, WBS Elements and networks - Start date, end date - Person resp

  • How to customise the default business component wizard

    I Would like to customize the default Business component wizard for my application so that some of the option should be dissabled. (e.g when I associate my business component with several tables I see a window which shows insert '+', delete 'x' etc)