Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Automate start/stop Admin Server and managed server for 11g

 
Ong Vua
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right now i start/stop them via command prompt one after the other. I want to put these steps in a batch file or something and have it automatically called when the server start/stop so no manual steps are required.

The steps would be

1) Start Admin Server
2) Start managed server AFTER admin server started

Can you tell me what's the best way to achieve this?

I'm using Windows and Weblogic 11g

Thanks
 
Joseph Antoine Raja
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In Unix O/S we can accommodate all your requirements in a single shell script in effective manner.

Since you are using windows you can write a NT command script (*.cmd ) which will do the following activities.

1)Load the Weblogic jars and CLASSPATH variables
2)Start the Admin server wait until it comes up
3)Check the status of the server [ you can use Weblogic.Admin utility]
4)Based on the Admin status start the Managed server
 
Matt Cartwright
Ranch Hand
Posts: 152
Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A platform independent way would be using
WebLogic Scripting Tool (WLST).

Have a look in your %WLS_HOME%\common\wlst
directory.

Another option would be start NodeManager as a
Windows Service.
Then configure it to bring up the Admin Server.

So when your machine starts, the Admin will get
started as well.

Yoou can start your Managed Servier instances
from the console.

Hope that helps.
Matt
 
Bhargav Ram
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Look @windows bea svc if servers are on windws
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic