In certain cases you need to use the node manager to start/stop weblogic servers, the common commands:
sh startNodeManager.sh
java weblogic.WLST
nmConnect(‘weblogic’, ‘password’, ‘localhost’, ‘5556’, ‘base_domain’ , ‘C:\\Oracle\\Middleware\\user_projects\\domains\\base_domain’ , ‘ssl’)
nmStart(‘AdminServer’)
nmServerStatus(‘AdminServer’)
connect(‘weblogic’,’weblogic123′)
start(‘Server-0′,’Server’)
start(‘mycluster’, ‘Cluster’)
nmKill(‘Server-0‘)
nmKill(‘AdminServer‘)
nmDisconnect()
exit()
sh startNodeManager.sh
java weblogic.WLST
nmConnect(‘weblogic’, ‘password’, ‘localhost’, ‘5556’, ‘base_domain’ , ‘C:\\Oracle\\Middleware\\user_projects\\domains\\base_domain’ , ‘ssl’)
nmStart(‘AdminServer’)
nmServerStatus(‘AdminServer’)
connect(‘weblogic’,’weblogic123′)
start(‘Server-0′,’Server’)
start(‘mycluster’, ‘Cluster’)
nmKill(‘Server-0‘)
nmKill(‘AdminServer‘)
nmDisconnect()
exit()
To find node manager process :
For windows
netstat -ao| findstr 5556
TCP ajit:5556 ajit:0 LISTENING 1900
For windows
netstat -ao| findstr 5556
TCP ajit:5556 ajit:0 LISTENING 1900
here : PID – 1900.
For Linux/unix :
netstat -an | grep -v grep | grep weblogic.NodeManager
No comments:
Post a Comment