Then, Your choice will be writing a handy script that will do the same task as lsof command helps to find the process id for a given WebLogic Listening port.
#!/bin/ksh pids=$(/usr/bin/ps -ef -o pid=) if [ $# -eq 0 ]; then read wlport?"Enter port you would like to know Java Process Id for: " else wlport=$1 fi for f in $pids do /usr/proc/bin/pfiles $f 2>/dev/null | /usr/xpg4/bin/grep -q "port: $wlport$" if [ $? -eq 0 ]; then echo "===============***=============***===============" echo "ListenPort: $wlport is being used by Java PID:\c" ps -ef -o pid -o args | egrep -v "grep|pfiles" | grep $f exit 0 # if you suspect more Weblogic instances with same listen port remove this fi done
Note: Save this script to commonly accessing user location name it as WLPort2Pid.ksh
Run with argument or without also it will work!! But you need to input the listening port that is must.
-->
Writing about this experiment is a new learning for me too.
Hope you enjoyed this one!! HAPPY SCRIPTING!!