• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 152
VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Look @windows bea svc if servers are on windws
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic