Starting Weblogic Nodemanager from OEM GridControl 11g

After fighting for a long time with starting Weblogic nodemanager using Oracle Enterprise Manager GridControl 11g. I think I finally found the solution.

The problem was that when running the directive in GC that should start the nodemanger, it would do it, but never finish the task. That made it impossible to continue the GC flow. Apparently Nodemanager writes stuff to stderr, so the solution was actually quite simple. Redirect stderr to stdout. So doing something like this worked.

$ nohup ./startNodeManager.sh > /tmp/nm.log 2>$1 &

This finally made it work. Yay!