Could you please let me know the wlst script to check the status of weblogic servers?
I know the command to check a particular server but i need the status of all the instances in that environment.
Navigate to the following location and press Enter:
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","Password","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
Hope this helps you ?