cd /opt/robin/wls/oracle/middleware/user_projects/domains/robin/bin
$ more stop_m1.sh
/opt/robin/wls/oracle/middleware/wlserver/common/bin/wlst.sh stop_m1.py > /opt/robin/wls/oracle/middleware/user_projects/domains/robin/servers/m1/logs/robin.log
$ more stop_m1.py
# wlst script to stop managed servers`
import os
import sys
connect('weblogic','Welcome1','t3://server:7010')
print'connecting'
exitonerror=false
# Stop all managed Servers
shutdown('m1', 'Server', force="true")
print'm1 shutdown'
exit()
----------------------------------------------------------
$ more start_m1.py
# wlst script to start managed servers`
import os
import sys
connect('weblogic','Welcome1','t3://server:7010')
print'connecting'
exitonerror=false
# Start all managed Servers
start(name="m1", block="true")
print'm1 start'
exit()
$ more start_m1.sh
/opt/robin/wls/oracle/middleware/wlserver/common/bin/wlst.sh start_m1.py > /opt/robin/wls/oracle/middleware/user_projects/domains/robin/servers/m1/logs/robin.log
$ more checkstatus.py
# wlst script to check status of jvm
import os
import sys
connect('weblogic','Welcome1','t3://server:7010')
print'connecting'
exitonerror=false
servers=cmo.getServers()
print "-------------------------------------------------------"
print "\t"+cmo.getName()+" domain status"
print "-------------------------------------------------------"
for server in servers:
state(server.getName(),server.getType())
print "-------------------------------------------------------"
exit()
$ . ./setDomainEnv.sh
$ java weblogic.WLST checkstatus.py