1

we are using "WLST - Node Manager Commands" to control our servers restart.

but to minimize the restarting time, can we run multi servers at the same time ?

our code right now working like this :

nmConnect('weblogic','password','net4dns','5556','mydomain','/weblogic103/domains/mydomain')
    nmStart('Net4')
    nmDisconnect()

this code is starting Net4 server only but I want to start many servers together.

is that possible ?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Majed
  • 917
  • 6
  • 18

2 Answers2

3

Better you use this following logic block='false' that allows you parallel processing

    connect('weblogic','weblogic','t3://yourhost.com:7001')
    start('net1', block='false')
    start('net2', block='false')
    start('net3', block='false')

PavanDevarakonda
  • 625
  • 5
  • 27
  • This requires the admin server to be up and while it's not bad advice per se I don't feel it answers the spirit of the original question which is whether nmStart can possibly launch servers concurrently. To my knowledge it isn't possible. One must resort to launching multiple scripts with separate parameters. – peabody Jan 28 '15 at 20:14
1

Have you tried this:

nmConnect('weblogic','password','net4dns','5556','mydomain','/weblogic103/domains/mydomain')
nmStart('Net4')
nmStart('Net5')
nmStart('Net6')
nmStart('Net7')
nmStart('Net8')
nmDisconnect()
Jeff West
  • 1,563
  • 9
  • 11
  • it's cant work in that way, I have to connect to different servers also. – Majed Jun 25 '11 at 21:32
  • 2
    if your managed servers are on different physical hosts then you need to connect to the node manager on each physical host, then start the managed servers. Hopefully you are not running only one managed server per machine, unless you have very small machines. – Jeff West Jun 26 '11 at 19:25