How do I remotely start multiple WebLogic Servers? (NETIQKB14131)

  • 7714131
  • 02-Feb-2007
  • 14-Aug-2007

Resolution

goal
How do I remotely start multiple WebLogic Servers?

fact
AppManager 5.01

fact
WebLogic Server UNIX

fact
BEA WebLogic Server 5.1+

fact
StartServer

fact
StartAdminServer

fix

Before you can do this, you will need to do a little preparation on each of the machines where WebLogic Server is installed.

In the same absolute directory on each of the machines, create a script called ?startWebLogic.sh? that will act as a routing mechanism to the ?real? start scripts.  It is important to make sure that this file has the same absolute path name on every machine, since the ?Start Script? parameter in the Knowledge Script allows only one value for a script name.  Here is a sample startWebLogic.sh:

 

#!/bin/sh

if [?$1? = ?myserver?]; then

  cd /usr/bea5.1/weblogic

  ./start_anotherserver.sh

fi

if [?$1? = ?petstoreServer70?]; then

  cd /usr/bea7.0/weblogic700/samples/server/config/petstore

  ./startPetStore.sh

fi

 

Notice that for each server, we first change to the directory that contains the ?real? start script.  This is necessary because most of the start scripts that we?ve seen require that they be run from the directory in which they are contained.

Once you have the startWebLogic.sh scripts in place, you are now ready to start one or more WebLogic Servers on one or more machines.

1.        Drag the StartServer (or StartAdminServer) Knowledge Script onto the WebLogic Servers in the TreeView Pane that you wish to start.  You may need to drop the Knowledge Script on the ?Master? icon in the TreeView Pane, and then select the desired WebLogic Servers in the Objects tab of the dialog box.

2.        Click on the Values tab.

3.        Enter the absolute path of the script that you created for starting the WebLogic Servers on the machines.

4.        Change the value of the ?Pass name of server, IP address, ?? parameter to ?y.?

5.        Press OK.

 

.


Additional Information

Formerly known as NETIQKB14131