Sunday, July 25, 2010

Shell script to find all ports open by WL servers running

ST is a string which distinguishes all servers belonging to a ST domain


for i in `ps -ef | grep java | grep -v grep | grep ST | awk '{print $2}'`
do
    netstat -nap | grep "$i" | grep java
done


No comments: