wlstbyexamples.blogspot.com Open in urlscan Pro
2a00:1450:4001:806::2001  Public Scan

Submitted URL: http://wlstbyexamples.blogspot.com/2010/02/server-state-using-wlst.html
Effective URL: https://wlstbyexamples.blogspot.com/2010/02/server-state-using-wlst.html
Submission: On July 04 via manual from MX — Scanned from DE

Form analysis 2 forms found in the DOM

https://wlstbyexamples.blogspot.com/search

<form action="https://wlstbyexamples.blogspot.com/search" class="gsc-search-box" target="_top">
  <table cellpadding="0" cellspacing="0" class="gsc-search-box">
    <tbody>
      <tr>
        <td class="gsc-input">
          <input autocomplete="off" class="gsc-input" name="q" size="10" title="search" type="text" value="">
        </td>
        <td class="gsc-search-button">
          <input class="gsc-search-button" title="search" type="submit" value="Search">
        </td>
      </tr>
    </tbody>
  </table>
</form>

POST //translate.googleapis.com/translate_voting?client=te

<form id="goog-gt-votingForm" action="//translate.googleapis.com/translate_voting?client=te" method="post" target="votingFrame" class="VIpgJd-yAWNEb-hvhgNd-aXYTce"><input type="text" name="sl" id="goog-gt-votingInputSrcLang"><input type="text"
    name="tl" id="goog-gt-votingInputTrgLang"><input type="text" name="query" id="goog-gt-votingInputSrcText"><input type="text" name="gtrans" id="goog-gt-votingInputTrgText"><input type="text" name="vote" id="goog-gt-votingInputVote"></form>

Text Content

Writing a WLST script is an art of Administration. You will be using Python
code, Jython scripting for building WebLogic platforms SOA, OSB, Portals,
WebCenter, FMW. WLST is a Weapon in the hands of Middleware Engineers, Most of
the WLST automations makes life easy for WebLogic Administrator, Configuring,
Monitoring JDBC, JMS, JVM, Threads made simple.




MENU

 * Home
 * Basics
   * Overview of WLST
   * Input and Output
   * File Operations
   * OOP in WLST
   * Online vs Offline
   * Regular Expressions
   * Best Editors
 * Configurations
   * Base Domain
   * Managed Server
   * WorkManagers
   * Domain migration
   * NodeManager
   * Cluster Domain
   * Simple Cluster Domain
   * Logger Configurations
 * JMS
   * JMS Server
   * Foreign Server
   * JMS modules
   * JMS Queues
   * JMS Bridges
 * JDBC
   * Generic datasource
   * Multidatasource
   * GridLink Datasource
 * Monitoring
   * Server state
   * Thread Pool
   * JMS Queues
   * Multidatasource
   * ConnectionPool
   * Server State Mail
   * JVM using WLST
 * Tricks & Tips
   * Getoptions
   * Switching from tree
   * Tips & Tricks
   * Cosmotizing
   * 24X7 Restart
   * Server start-time
   * 8.1 model thread count
   * Errors and Exceptions
   * starting issues
 * Deploy
   * Multiple components
   * Side-By-Side
   * App Status
 * SOA
   * Composite Management
   * SOA Bounce
 * Other Features
   * WLST from ant
 * Multitenancy
   * Security
   * User Group
   * Virtual Target
   * Partition
   * IDD
   * Partition Control
   * Partition Deployment






SEARCH THIS BLOG






SUNDAY, FEBRUARY 12, 2023


SERVER STATE USING WLST


Hello! Dear Automation focused engineer we have this post about how to work
simple server status list for a WebLogic domain. This logic can be build and
executed for huge number of WebLogic or FMW Servers in Produciton helps to view
all at a time hostnames, their corresponding states.   

WHY WE NEEDWEBLOGIC SERVER STATE? WHAT ALL THOSE STATES?

While trouble shooting Middleware/FMW administrator need to check the status of
all the WebLogic server instances. This is the basic need when the all the
servers are in bounced for production code move. This same script can be
applicable for the pre-production or staging environment too. WLST provides the
built-in methods, which gives the status of the Server instance or servers in a
Cluster. Here we will deal with individual instance wise data.



WebLogic Server Life cycle state diagram



There are several ways to list out the servers. The simple way here you go with
interactive way...
In the following example 
 1. We are collecting all the list of servers present in the WebLogic domain
 2. state function applied on each server as item  passed to it
 3. repeat this step 2 until all server list ends

 

wls:/demodomain/serverConfig> x=ls('Servers',returnMap='true')
dr--   demoadm
dr--   demoms1
dr--   demoms2

wls:/demodomain/serverConfig> x
[demoadm, demoms1, demoms2]
wls:/demodomain/serverConfig> for i in x:
... state(i,'Server')
...
Current state of "demoadm" : RUNNING
Current state of "demoms1" : SHUTDOWN
Current state of "demoms2" : SHUTDOWN



Cluster listing

wls:/demodomain/serverConfig> c=ls('Clusters',returnMap='true')
dr--   clstr01

wls:/demodomain/serverConfig> c
[clstr01]
wls:/demodomain/serverConfig> state(c[0],'Cluster')

There are 2 server(s) in cluster: clstr01

States of the servers are
demoms1---SHUTDOWN
demoms2---SHUTDOWN



ServerLIfecycleRuntime Mbean tree



Using above shown MBean hierarchy we can fetch the all WebLogic domain server
instance's states. If your production WebLogic domain consists of two digit (eg.
60 instances) or three digit number (eg. 120 instances) of managed server then,
it is difficult to see all server’s state at once. Weblogic Administration
console is unable to show all the servers in the domain on a single page.
Navigating in between also a time eating process so think! think better way!!
WLST has the solution.

To get the status of all servers in the domain can be obtained with the
following steps

 1. Connect to the WebLogic Admin Server
 2. Fetch the Managed server list from the domainRuntime MBean
 3. Iterate the loop and get the state of each Managed Server with
    ServerLifeCycle Runtime MBean
 4. Repeat if required the step 3 as per the user input to Continue...
 5. Finally if all desired output is visible then disconnect from the
    AdminServer and exit.


################################################## 
# This script is used to check the status of all WL instances including the admin
###########################################################

def conn():
    UCF='/path/.AdminScripts/userConfigFile.sec'
    UKF='/path/.AdminScripts/userKeyFile.sec'
    admurl = "t3://hostname:wlport"

    try:
        connect(userConfigFile=UCF, userKeyFile=UKF, url=admurl)
    except ConnectionException,e:
        print '\033[1;31m Unable to find admin server...\033[0m'
        exit()

def ServrState():
    print 'Fetching state of every WebLogic instance'
#Fetch the state of the every WebLogic instance
    for name in serverNames:
        cd("/ServerLifeCycleRuntimes/" + name.getName())
        serverState = cmo.getState()
        if serverState == "RUNNING":
            print 'Server ' + name.getName() + ' is :\033[1;32m' + serverState + '\033[0m'
        elif serverState == "STARTING":
            print 'Server ' + name.getName() + ' is :\033[1;33m' + serverState + '\033[0m'
        elif serverState == "UNKNOWN":
            print 'Server ' + name.getName() + ' is :\033[1;34m' + serverState + '\033[0m'
        else:
            print 'Server ' + name.getName() + ' is :\033[1;31m' + serverState + '\033[0m'
        quit()

def quit():
    print '\033[1;35mRe-Run the script HIT any key..\033[0m'
    Ans = raw_input("Are you sure Quit from WLST... (y/n)")
    if (Ans == 'y'):
        disconnect()
        stopRedirect()
        exit()
    else:
        ServrState()

if __name__== "main":
    redirect('./logs/Server.log', 'false')       
    conn()
    serverNames = cmo.getServers()
    domainRuntime()
    ServrState()


Smart Script


Recently I have online discussion with Dianyuan Wang, state of the Managed
servers can be obtained with state() command. This function can be used in two
ways: 
 * To get individual managed server status you need to pass arguments as managed
   server name, type as 'Server'. 
 * Other one is to get individual Cluster wise status. 

This can be achieved by passing two arguments cluster name and type as
'Cluster'. The following script will be illustrate the second option, which I
found that shorten code that gives same script outcome as above script. It could
be leverage your scripting thoughts it is like a plain vanilla form as shown
below:

Note: Hope you follow the WLST Tricks & tips


try:
    connect(url = "t3://adminhostname:adminport")
except:
    print "Connection failed"
state('appclstr','Cluster')
state('web1clstr','Cluster')

...
state('webNclstr','Cluster')


-->



Extra Stroke of this new script is that prints how many servers available in
each given cluster.




SERVER STATE WITH REDIRECTING, RE IN WLST

Wang mailed me his situation clarity of explanation why he chosen state command.
And how he resolved with Python script tricks here. Its a great learning for me
so sharing with you when I saw same question in StackExchange today(28 April
2014) after 3 years!! "The reason I do not use (for now) domainConfig is because
some how few Weblogic domains are not in a good state, and when I run the
domainConfig command, it complains that it is not enabled. Hence the alternative
way I've selected here is using state command. But it don't return the state. It
always return None. But it prints out the state of the server. Here you go,
Better way is capture that printing output to a file using WLST command
redirect-stopRedirect and then, use the Python regular expression to extract the
state of each server. The following is the Python snippet how I use the
redirect:


 
# Fill your own connection details 
  serverlist=cmo.getServers()   
  for s in serverlist:   
    server_nm = s.getName()
    urldict[server_nm]='t3s://'+s.getListenAddress()+':'+str(s.getAdministrationPort())   
    #domainRuntime()
    #cd('ServerLifeCycleRuntimes/'+server_nm)
    fileName='/tmp/myserver_state.txt'
    redirect(fileName)
    state(server_nm,'Server')
    stopRedirect()
    f = open(fileName)
    try:
      for line in f.readlines():
        if re.search('Current state',line):
          status[server_nm]=line
    except:
      continue
 
  Ks = status.keys()
  for s in Ks:   
    if re.search('RUNNING',status[s]):
		try:
		connect(username,password,urldict[s])
		except:
		continue
		cd("/Servers/" + s)  


...


best regards! Dianyuan Wang



Here I request you please write back your experiencing with this posting looking
ahead for your issues/ suggestions as comments.


Posted by Pavan Devarakonda [PD] at 5:50 AM
Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest
Labels: cluster state, Color Output, Jython, Python, server state,
ServerLifecycleRuntime, WebLogic, WebLogic 11g, WebLogic 12c, WebLogic 9.2, WLST


33 COMMENTS:

 1.  HMarch 9, 2010 at 9:16 AM
     
     Hi Pavan,
     
     Thank you so much for these examples you put online. These are immense help
     in learning WLST.
     
     I have a quick question: I want to modify the server state monitoring
     script you have to allow monitoring multiple admin and their managed
     servers (I have 6 different admin servers with 6 managed servers each. They
     are not clustered).
     
     I am trying to find out if WLST has the capability of reading from a txt
     file where I can put the admin server URL, username, pass.
     
     Could you please give me some hints on how I can try to implement this?
     
     ReplyDelete
     Replies
     Reply
     
     
 2.  Pavan Devarakonda [PD]March 9, 2010 at 3:26 PM
     
     use loadProperties instead of file reading.
     
     ReplyDelete
     Replies
     Reply
     
     
 3.  Loukas RougkalasJanuary 26, 2011 at 2:56 AM
     
     Hello Pavan,
     
     I have modiefied a bit the script like this:
     
     def ServerConn():
     username = 'weblogic'
     password = 'wlsfusion01'
     url = 't3://muciipd01:7011'
     connect(username, password, url)
     
     
     def ServrState():
     print 'Fetching state of every WebLogic instance'
     #Fetch the state of the every WebLogic instance
     for name in serverNames:
     cd("/ServerLifeCycleRuntimes/" + name.getName())
     serverState = cmo.getState()
     if serverState == "RUNNING":
     print 'Server ' + name.getName() + ' is :' + serverState
     
     
     print 'End of script ...'
     
     
     when I run it I get:
     
     [oracle11@muciipd01 ~]$ java weblogic.WLST state.py
     
     Initializing WebLogic Scripting Tool (WLST) ...
     
     Welcome to WebLogic Server Administration Scripting Shell
     
     Type help() for help on available commands
     
     End of script ...
     
     
     
     I guess I should explicity define the domainRuntime() in the beginning
     because I am not sure that after logging the cmo is the domainRuntime().
     
     Thanks in advance.
     
     Loukas
     
     ReplyDelete
     Replies
     Reply
     
     
 4.  Pavan Devarakonda [PD]January 26, 2011 at 5:07 AM
     
     Hey Loukas,
     
     You can run the above script as is by updating your credentials. If you
     don't want colors in ur output then you can goahead with your way of
     script, Yes you required domainRuntime tree to fetch the Managed servers
     state. By default it will be on serverConfig tree when you connect the
     admin server. Define your module on top it will be easy to access. Remember
     to use python indentation blocks (4 spaces or a tab) while writing the
     blocks of code. Hope this will help you.
     
     Please comment if anything missing...
     
     ReplyDelete
     Replies
     Reply
     
     
 5.  Loukas RougkalasJanuary 26, 2011 at 6:04 AM
     
     Hey Pavan,
     
     unfortunately I cannot replay the same exact script as your since I have
     not configured yet sec config files for the credential. But it doesn't
     matter. Basically i get your script and I am trying to do something very
     simple but still it doesn't work.
     I am writting my script on the Eclipse (Oracle Enterprise Pack for Eclipse
     (OEPE))
     By the way what is the editor you are using and it is shown in the
     screenshot above? Hiw can I tag my code so that you can see my script with
     the indentation blocks?
     
     I tried to even more make it more simple like following:
     
     print 'starting the script ....'
     
     def getServerNames():
     domainConfig()
     return cmo.getServers()
     
     def serverStatus(server):
     cd('/ServerLifeCycleRuntimes/' +server)
     return cmo.getState()
     
     def printStatus():
     print 'Fetching state of every WebLogic instance'
     connect('weblogic','welcome1','t3://localhost:7001')
     serverNames = getServerNames()
     domainRuntime()
     for name in serverNames:
     serverState = serverStatus(name.getName())
     print serverState
     
     
     print 'End of script ...'
     
     and it is still failing with a funny output:
     
     
     Initializing WebLogic Scripting Tool (WLST) ...
     
     Welcome to WebLogic Server Administration Scripting Shell
     
     Type help() for help on available commands
     
     starting the script ....
     End of script ...
     
     Am I possibly missing some libraries in the Eclipse? The Eclipse is
     throwing many warning for "Undefined variables" which are by default int he
     WLST like:
     cmo
     domainConfig()
     connect
     
     etc,
     
     Kind Regards,
     
     Loukas
     
     ReplyDelete
     Replies
     Reply
     
     
 6.  Pavan Devarakonda [PD]January 28, 2011 at 1:17 PM
     
     Hi Lokus,
     
     With your comment I started using OEPE first time. Initially I had seen
     similar issue when I directly tried out the sample WLST script. To find the
     mystery I build the script from the scratch. newWLST.py run as WLST Run.
     Then after finding SUCCESS print in the output then started editing the
     script. It works many times unstoppable then onwards :)
     
     I had refer
     http://biemond.blogspot.com/2010/08/wlst-scripting-with-oracle-enterprise.html
     
     Now I am pasting the same code which you tried I got the output:
     
     
     #Conditionally import wlstModule only when script is executed with jython
     
     def serverStatus(server):
     cd('/ServerLifeCycleRuntimes/' +server)
     return cmo.getState()
     
     if __name__ == '__main__':
     from wlstModule import *#@UnusedWildImport
     
     print 'starting the script ....'
     username = 'weblogic'
     password = 'weblogic1033'
     url='t3://localhost:7001'
     
     connect(username,password,url)
     
     
     try:
     
     print "script returns SUCCESS"
     
     domainConfig()
     
     serverNames = cmo.getServers()
     domainRuntime()
     for name in serverNames:
     print name.getName()
     print serverStatus(name.getName())
     
     
     
     except Exception, e:
     print e
     print "Error while trying to save and/or activate!!!"
     dumpStack()
     raise
     
     ReplyDelete
     Replies
     Reply
     
     
 7.  cdmonlineMarch 7, 2011 at 9:09 PM
     
     I've been looking for just such functionality since I discovered WLST. I've
     got the script running BUT it only reports on the status of the first of
     about a dozen Server instances that I have configured. What could be going
     wrong?
     
     - CDM
     
     ReplyDelete
     Replies
     Reply
     
     
 8.  Pavan Devarakonda [PD]March 8, 2011 at 12:08 AM
     
     Hey CDM,
     
     The script which I had posted that is working for me more than 70 servers
     without any hassle. I m not clear about your problem with number of
     servers. Are you able to get the Exception?
     What does it tells you?
     
     ReplyDelete
     Replies
     Reply
     
     
 9.  cdmonlineMarch 8, 2011 at 2:54 PM
     
     There's no exception being thrown. The script appears to work fine but it's
     only returning results for the first server in the list:
     
     Here are all the servers that I have:
     
     wls:/testEnvironment/serverConfig> ls('Servers')
     dr-- AdminServer
     dr-- alfrescocloneServer
     dr-- alfrescoclonesandboxServer
     dr-- boweb1Server
     dr-- boweb2Server
     dr-- ctrac1Server
     dr-- ctrac2Server
     dr-- ctrac3Server
     dr-- ctrac4Server
     dr-- esp1Server
     dr-- esp2Server
     dr-- qualitycentreServer
     
     This is what the script is returning:
     
     
     Fetching state of every WebLogic instance
     Server AdminServer is :RUNNING
     Re-Run the script HIT any key..
     Are you sure Quit from WLST... (y/n)y
     
     ReplyDelete
     Replies
     Reply
     
     
 10. Pavan Devarakonda [PD]March 8, 2011 at 7:30 PM
     
     after 20 line print servers
     give me reply
     
     ReplyDelete
     Replies
     Reply
     
     
 11. cdmonlineMarch 9, 2011 at 4:11 PM
     
     Sorry but I'm not sure what you mean by that?
     
     - CDM
     
     ReplyDelete
     Replies
     Reply
     
     
 12. UnknownMarch 15, 2011 at 12:07 AM
     
     From which file it wil get the status of the servers.
     I want to manually check the status of the admin server not from console.
     is there any other ways to find the status........
     
     ReplyDelete
     Replies
     Reply
     
     
 13. Pavan Devarakonda [PD]March 26, 2011 at 2:00 PM
     
     @Chinni, you have two options. you can redirect the smart script as posted
     above and read it. Other option is on the first script you can print the
     state of managed server to a file instead of Standard output. You need to
     use Jython File operation.
     
     write back your updates... :)
     
     ReplyDelete
     Replies
     Reply
     
     
 14. HMay 26, 2011 at 10:12 AM
     
     Hi Pavan,
     
     I am running this script as is (modifying the credentials and admin URL)
     and it is only printing the admin server state (managed are running fine as
     I see from the console).
     
     I put a print statement after line 20 and its output is:
     
     array([[MBeanServerInvocationHandler]com.bea:Name=CAMAdminServer,Type=Server,
     [MBeanServerInvocationHandler]com.bea:Name=CAMServer1,Type=Server,
     [MBeanServerInvocationHandler]com.bea:Name=CAMServer2,Type=Server,
     [MBeanServerInvocationHandler]com.bea:Name=CAMServer3,Type=Server,
     [MBeanServerInvocationHandler]com.bea:Name=CAMServer4,Type=Server],
     weblogic.management.configuration.ServerMBean)
     
     I see that it is returning all the servers, but not printing the status for
     any of the managed servers. It only prints the first server in the list
     (the admin):
     
     Server CAMAdminServer is :RUNNING
     Re-Run the script HIT any key..
     Are you sure Quit from WLST... (y/n)
     
     Any ideas why it would be doing that? and how can i get it to display state
     of all the managed servers as well?
     
     ReplyDelete
     Replies
     Reply
     
     
 15. Pavan Devarakonda [PD]May 26, 2011 at 8:52 PM
     
     the script was made for WebLogic 9 version. may be that is the reason.
     20 is looking for server names. you might get it by get(Name)
     
     ReplyDelete
     Replies
     Reply
     
     
 16. JeremyJune 15, 2011 at 12:31 PM
     
     For 10.3 use:
     
     domainRuntime()
     for server in cmo.getServerLifeCycleRuntimes():
     serverName = server.getName()
     serverState = server.getState()
     
     ReplyDelete
     Replies
     Reply
     
     
 17. JeremyJune 15, 2011 at 12:32 PM
     
     This comment has been removed by the author.
     
     ReplyDelete
     Replies
     Reply
     
     
 18. JenniferSeptember 22, 2011 at 3:25 AM
     
     This comment has been removed by a blog administrator.
     
     ReplyDelete
     Replies
     Reply
     
     
 19. Alessandro I.September 27, 2011 at 5:07 AM
     
     Thanks for sharing, well done. But the guy saying the script only shows
     admin server is right. you need to put the quit() call out of the loop.
     Moving at the end of the main made the trick for me.
     
     ReplyDelete
     Replies
     Reply
     
     
 20. AnonymousFebruary 14, 2012 at 7:45 PM
     
     I really liked ur blog..It has helped me a lot.
     
     Keep posting
     
     Regards,
     Fabian
     
     ReplyDelete
     Replies
     Reply
     
     
 21. Purnya AwasthiJanuary 21, 2015 at 4:22 AM
     
     't3://'+str(s.getListenAddress())+':'+str(s.getAdministrationPort()) ,
     getAdministrationPort() seems a wrong method giving syntax error
     
     ReplyDelete
     Replies
     Reply
     
     
 22. BloggerJune 23, 2017 at 8:03 PM
     
     If you need your ex-girlfriend or ex-boyfriend to come crawling back to you
     on their knees (even if they're dating somebody else now) you got to watch
     this video
     right away...
     
     (VIDEO) Text Your Ex Back?
     
     ReplyDelete
     Replies
     Reply
     
     
 23. VJuly 24, 2018 at 9:28 AM
     
     Hi Pavan,
     
     Thanks for the write up, it is useful indeed, however, there is one more
     issue that I am facing, a few of my servers health shows up as "Not
     Reachable" even when the State is RUNNING. Is there a script to find out
     the Health as displayed on the Admin Console.
     
     
     ReplyDelete
     Replies
     Reply
     
     
 24. UnknownAugust 9, 2018 at 9:10 PM
     
     Nice blog it is informative thank you for sharing Python Online Training
     Bangalore
     
     ReplyDelete
     Replies
     Reply
     
     
 25. martin vellyDecember 27, 2019 at 3:51 AM
     
     This is realy a Nice blog post read on of my blogs It is really helpful
     article please read it too my blog FACEBOOK IMAGES NOT LOADING.
     
     ReplyDelete
     Replies
     Reply
     
     
 26. UnknownJuly 15, 2020 at 2:51 AM
     
     Your pants, they bother me. Take them off! Hey, i am looking for an online
     sexual partner ;) Click on my boobs if you are interested (. )( .)
     
     ReplyDelete
     Replies
     Reply
     
     
 27. vishSeptember 9, 2020 at 6:57 AM
     
     hey . is there any way we can get instance health using shell script. my
     production machine doesnot have python installed so any suggestion is
     appreciated
     
     ReplyDelete
     Replies
     Reply
     
     
 28. UnknownJune 28, 2021 at 3:08 AM
     
     Hi all, is anyone have script, such as it will shows all servers status
     including Nodemanager & after that has option to start & stop individually
     
     ReplyDelete
     Replies
     Reply
     
     
 29. Kiran Reddy GAugust 3, 2021 at 11:35 AM
     
     Hi Pavan Garu,
     Can you please share the wlst script to monitor server health not state.
     
     ReplyDelete
     Replies
     Reply
     
     
 30. Harry WallaceAugust 29, 2022 at 12:44 AM
     
     This comment has been removed by the author.
     
     ReplyDelete
     Replies
     Reply
     
     
 31. Praveen SharmaAugust 29, 2022 at 12:51 AM
     
     Hi, nice article. Linux VPS hosting have been pondering concerning this
     matter, so thanks for sharing.
     
     ReplyDelete
     Replies
     Reply
     
     
 32. Rental Property in DelhiJanuary 2, 2023 at 2:06 AM
     
     If you are looking for flats for rent in greater kailash 1, Delhi then
     connecting with Reallworld can be the best suit for you, as our time will
     assist you in renting or even buying property in the greater kailash, Delhi
     location. Feel free to connect to Reallworld today, as we are the leading
     housing, property renting & real estate company in Delhi.
     
     ReplyDelete
     Replies
     Reply
     
     
 33. Rental Property in DelhiFebruary 23, 2023 at 9:07 PM
     
     While renting the 3 bhk flats in Gk 1 from a private individual, ensure
     that you have a stranger’s social security number and bank account details,
     and they conduct the credit check for you.
     
     ReplyDelete
     Replies
     Reply
     
     

Add comment

Load more...



Please write your comment here




Newer Post Older Post Home

Subscribe to: Post Comments (Atom)


POPULAR POSTS

 * Self-tuned Thread Pool Count
   --> Thread Pool count will give you the idea about the WebLogic Server
   instance throughput. First let us see how to monitor a serve...
 * WLST Errors and Exceptions
   When first time you started using WLST you might get many of these Python
   based WLST Errors. Here I had collected few of them which are ve...
 * Server State using WLST
   Hello! Dear Automation focused engineer we have this post about how to work
   simple server status list for a WebLogic domain. This logic can...
 * Configuring a Generic Datasource
   Configuring the datasource is one time activity for any project in production
   environment but where as for development or testing environmen...
 * Logging configuration for domain and WebLogic server
   Why we need Logging ? To understand in a basic level, when we run the
   WebLogic Servers we don't know what is happening inside the proce...
 * JDBC Monitoring
   JDBC Monitoring with LWLST script One fine morning we (WLA support Team) got
   an assignment, The summary of the assignment was to find &q...
 * WLST Programming Controls
   Effective programming could be developed using right decision making in your
   scripts. Here I would like to share some basics of Python prog...
 * Configuring WorkManager using WLST
   The WorkManager configuration can be possible only when you navigate on
   SelfTuning tree. After navigating with cding to SelfTuning MBean hi...
 * Configuration of GEOCODE Datasource for Oracle MapViewer
   Couple of years back in the same blog I've posted how we can configure a
   generic datasource in WebLogic domain using WLST. Working in to...
 * Get Options for command line in WLST script
   Problem Statement Required a Python script for check if the WebLogic admin
   server is 'Running' or Not recursively To execute this...





ABOUT ME

Pavan Devarakonda [PD] Never stop learning because Life teaches everyday new
lesson View my complete profile




TUNE YOUR SKILL SHINE YOUR CAREER !!!


MAIL US: VYBHAVATECHNOLOGIES@GMAIL.COM




CONTENT

 1.  Overview of WLST
 2.  Input and Output in WLST
 3.  WLST Online vs Offline
 4.  Best WLST Editor: OEPE
 5.  WLST Errors and Exceptions
 6.  WLST Program controls
 7.  WLST Regular Expressions
 8.  Store output using WLST Files
 9.  Object-Oriented WLST
 10. Switching from edit tree
 11. WLST starting issues
 12. NodeManager with WLST
     
 13. Configuring a Base Domain
 14. Configure Managed Servers with WLST
 15. Configuring Clustered Domain with WLST
 16. Configuring a Generic datasource
 17. Configuring Multi-datasource by WLST
 18. Configuring GridLink Datasource
 19. Configuring WorkManagers with WLST
 20. JMS Server
 21. JMS modules
 22. Configuration of JMS Bridges using WLST
 23. Foreign Server
 24. WLST Tips & Tricks
 25. Command line options for WLST
 26. StoreUserConfig in WLST
 27. WLST from ant
 28. WebLogic domain migration with WLST
 29. NodeManager Status with WLST
 30. Server state by WLST
 31. Monitoring JVM using WLST
 32. Monitoring Thread Pool
 33. Monitoring JMS using WLST
 34. Monitoring Multi-datasource/connection pool
 35. Monitoring Connection pool with admhome
 36. ServerState Mail with WLST
 37. Side by Side Deployment with WLST
 38. 24X7 Restart strategy with WLST
 39. Server start-time using WLST
 40. Cosmotising your WLST TTY output
 41. WebLogic 8.1 model thread count
 42. WLST Book Review
 43. WebLogic 12c new features





I RECOMMAND MARTIN'S BOOK FOR WLST & JMX

Martin Heinzil great book on WLST & JMX Share



WLST BY EXAMPLES





TOTAL PAGEVIEWS

1306508



GOOGLE AFFILIATED ADS






GOOGLE ANALYTICS





LABELS

WLST (36) WebLogic 11g (19) WebLogic 9.2 (19) Python (15) Weblogic scripting
tool (12) WebLogic (11) WebLogic 10 (10) WLST Online (8) Jython (6) Cluster (3)
Deployment (3) NodeManager (3) ServerLifecycleRuntime (3) sample (3)
ActivationTime (2) Generic (2) JDBC Connection Pool Monitoring (2) JMS
monitoring (2) JMSRuntime (2) Multi DataSource (2) NameError (2) Production (2)
Self-tune ThreadPool (2) ServerState (2) WLST Offline (2) can't write cache file
for (2) writeDomain (2) 8.1 Thread Model (1) Capacity Constraint (1) Create
Datasource (1) Development (1) Errors (1) Exceptions (1) File (1) IndexError (1)
JDBCDataSourceRuntimeMBeans (1) JDBCServiceRuntime (1) JMX (1) JVM monitoring
(1) KeyError (1) MBean (1) ManagedServer (1) MaxThreadsConstraints (1)
Monitoring (1) Oracle (1) SBS (1) STATE_ACTIVE (1) STATE_RETIRED (1) Server
Start Time (1) ServerRuntimes (1) Side-by-Side deployment (1) Stop (1) Store
output (1) SyntaxError (1) Thread Count (1) ValueError (1) WLST COLOR OUTPUT
WEBLOGIC 9.2 (1) WLST Issues (1) WLST class object (1) Weblogic scripting tool
tutorial (1) WorkManager (1) domain (1) domainRuntime (1) java.lang.Thread (1)
nostage (1) output (1) queue (1) readDomain (1) readDomainTemplate (1) sendmail
(1) server state (1) smtp (1) version (1)



WORDLE




 * Dynamic Cluster Scaling with WLST
 * Server State using WLST
 * Database connection from WLST offline/Jython
 * JMS Module with ConnectionFactory and Queue configuration using WLST
 * How to include modules and Java Options in WLST Shell?







BLOG ARCHIVE

 * ▼  2023 (3)
   * ►  May (1)
   * ▼  February (2)
     * Dynamic Cluster Scaling with WLST
     * Server State using WLST

 * ►  2022 (2)
   * ►  August (2)

 * ►  2021 (1)
   * ►  August (1)

 * ►  2018 (3)
   * ►  August (1)
   * ►  July (1)
   * ►  February (1)

 * ►  2017 (3)
   * ►  July (1)
   * ►  April (1)
   * ►  February (1)

 * ►  2016 (7)
   * ►  June (1)
   * ►  January (6)

 * ►  2015 (3)
   * ►  November (1)
   * ►  July (2)

 * ►  2014 (8)
   * ►  December (4)
   * ►  October (1)
   * ►  September (1)
   * ►  August (1)
   * ►  June (1)

 * ►  2013 (11)
   * ►  August (1)
   * ►  June (4)
   * ►  April (2)
   * ►  March (1)
   * ►  January (3)

 * ►  2012 (3)
   * ►  November (1)
   * ►  June (2)

 * ►  2011 (5)
   * ►  October (1)
   * ►  July (1)
   * ►  March (1)
   * ►  February (2)

 * ►  2010 (15)
   * ►  December (3)
   * ►  November (1)
   * ►  September (1)
   * ►  August (2)
   * ►  May (3)
   * ►  March (1)
   * ►  February (2)
   * ►  January (2)

 * ►  2009 (6)
   * ►  November (1)
   * ►  October (1)
   * ►  June (1)
   * ►  May (1)
   * ►  April (2)




SUBSCRIBE TO

Posts
Atom

Posts

Comments
Atom

Comments





TRANSLATE

▼



MIDDLEWARE JOBS



 * Jython 4 WebSphere Admin
 * WebLogic Automation Course
 * MiddlewareAdmin.net
 * WebLogic System Adminitration
 * WebLogic Admin Tricks & Tips






PYTHON BOOK







WHY IS THIS WLST FOR?

Share
I published WLST/Jython scripts with concrete examples of how to configure and
administer WebLogic Basic Server, SOA, OSB, Coherence. I keep referring Python
books, Jython books, IBM DevelopersWorks pages to compose this blog. It covers
the interesting topics targeting beginners to experiance level scriptwriters
 * WebLogic Server management with WLST Scripting with more Productivity, which
   Saves valuable Time and money
 * Traversing MBeans and manipulating WebLogic configuration online and offline
 * administration tasks made more simplified
 * Setting up WebLogic server related properties and loading them to reflect
   your needs such as JDBC, JMS resource configurations and environment details.
 * Using these WLST scripts you can list, install, uninstall, deploy, undeploy
   and redeploy applications
 * You can also configure security users, groups and their roles with WLST

I appreciate your feedback and comments. Hope that you share this with other
WLST scripters which would be helpful to them.



MY BLOG LIST

 * You Never Know
   How can CSPs monetize 5G - The advent of 5G technology is currently
   revolutionizing various industries by facilitating connected vehicles, smart
   cities, industry 4.0, connected hea...
   2 weeks ago
   
 * Life is short - You need Python - Orientation!
   AWS Auto Scaling using Python Boto3 - Auto Scaling Group in AWS configure
   using Python Boto3 What is Auto Scaling means? This is key capability or
   power of Cloud Computing Engineers believe in...
   3 months ago
   
 * WebLogic Administration Essentials
   WebLogic 12.1.3 Critical Patch Updates - Learning ObjectiveOracle regularly
   publishing the Critical Patch Updates every quarter. We have been assigned to
   work on the new CPU patches which were pub...
   5 years ago
   
 * WebLogic Automation Tricks & tips blog
   -
   
   




All WLST My Experiments are shared for public by Pavan Devarakonda, Krishna
Naishadam,. Powered by Blogger.





Originaltext

Diese Übersetzung bewerten
Mit deinem Feedback können wir Google Übersetzer weiter verbessern


Diese Website verwendet Cookies von Google, um Dienste anzubieten und Zugriffe
zu analysieren. Deine IP-Adresse und dein User-Agent werden zusammen mit
Messwerten zur Leistung und Sicherheit für Google freigegeben. So können
Nutzungsstatistiken generiert, Missbrauchsfälle erkannt und behoben und die
Qualität des Dienstes gewährleistet werden.Weitere InformationenOk