Tuesday 5 March 2013

Commands to Check Weblogic Server Status


Admin Server Status

From Domain Home execute the below command

C:\Oracle\Middleware\user_projects\domains\base_domain

Java –cp C:\ Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar  weblogic.Admin  -adminurl t3:\\localhost:7001 –username weblogic –password –weblogic123 GETSTATE

You will get output as “new_Managed_1”: RUNNING

Managed Server Status

From Domain Home execute the below command

C:\Oracle\Middleware\user_projects\domains\base_domain

Java –cp C:\ Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar  weblogic.Admin  -adminurl t3:\\localhost:7001 –username weblogic –password –weblogic123 GETSTATE  new_Managed_1

You will get output as “new_Managed_1”: RUNNING

Cluster Status

From Domain Home execute the below command

C:\Oracle\Middleware\user_projects\domains\base_domain

Java utils:MULTICASTTEST  -N clustername –A clusteraddress –p clusterport –T10 –S 2






6 comments:

  1. How to check status in 12c weblogic..
    i am getting
    Error: Could not find or load main class weblogic.Server

    ReplyDelete
  2. Mr.pkdhulip you can check answers at http://stackoverflow.com/questions/30943752/error-could-not-find-or-load-main-class-weblogic-security-encrypt and try those solutions.
    Regards,
    Weblogic training in Hyderabad.

    ReplyDelete
  3. Thanks for the excellent blog!
    Unfortunately getting the status using weblogic.Admin does not work in 12c any more.
    See here:
    http://stackoverflow.com/questions/37538858/using-weblogic-admin-in-weblogic-12c

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. @cmd
    C:\Oracle\Middleware\Oracle_Home\wlserver\common\bin>wlst.cmd

    Then connect to Weblogic Admin Server
    wls:/offline> connect("Username","Password","Admin console Url")

    Example
    wls:/offline> connect("weblogic","weblogic1","localhost:7001")

    Then run following command
    wls:/woolworths/serverConfig> x=ls('Servers',returnMap='true')

    This will return all your servers :

    dr-- AdminServer
    dr-- server 1
    dr-- server 2
    dr-- server 3

    Then run :

    wls:/woolworths/serverConfig> x

    Which will return:

    [AdminServer, server 1, server 2, server 3]

    Then Run
    wls:/woolworths/serverConfig> for i in x: state(i,'Server')

    Which will return :

    Current state of "AdminServer" : RUNNING
    Current state of "server 1" : RUNNING
    Current state of "server 2" : SHUTDOWN
    Current state of "server 3" : RUNNING

    ReplyDelete

  6. I am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly. I want to share about weblogic administration .

    ReplyDelete

What are the Default Directory Permissions in Weblogic 11G Enviroment

Most of the Development environment day to day issues with Directory Permissions? Below are the default permissions suggested by Oracl...