Thursday, 3 November 2011

Simple Stop Script for WebLogic Server Nodemanager



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:
  1. 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:
  1. Edit a new file and call it stop_nodemanager.
  2. 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.
  1. Save the file.
  2. Run chmod 700 on the file to make it executable.
  3. Try running the script and make sure it stops Node Manager successfully.

1 comment:

  1. Nice Blog keep it up.. and and some more stuff to this then it looks very good

    ReplyDelete