Simple Stop Script for WebLogic Server Nodemanager
With no stop script, Node Manager has to be stopped by the ‘kill’ command or sometimes by killing the putty session from which it was launched. The goal is to provide a simple script to do the kill that can be run remotely.
Follow these steps:
- Login,, set the WLS environment in your usual way and and issue the following command:
ps -few | grep -v grep | grep -i nodemanager
Look through the results and make sure that only Node Manager processes have been picked up. (As there should only be one Node Manager on the machine, there should be no need to further grep on the middleware home, something you might do if you were looking for managed server processes.)
If the command has correctly found the Node Manager processes on the machine, proceed with the next step:
- Edit a new file and call it stop_nodemanager.
- Enter the line:
kill -15 `ps -few | grep -v grep | grep -i nodemanager | awk '{print $2}'`
NOTE: the command is enclosed in backquotes, so at the end of the command there is both an apostrophe and a backquote.
- Save the file.
- Run chmod 700 on the file to make it executable.
- Try running the script and make sure it stops Node Manager successfully.
Nice Blog keep it up.. and and some more stuff to this then it looks very good
ReplyDelete