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:

Post a Comment

comments where you are promoting your business will be marked as SPAM :o)