Show all of the processes and any open ports that they may be using.
for pid in `ps -aeo pid | grep -v PID`; do
sudo pfiles ${pid} | egrep “^${pid}:|sockname:”
done
Once you know the PID’s of the processes you can determine all of the atributes of the applications using pargs, instead of ps. In Solaris 10 the /usr/ucb/ps is the same AT&T version as /bin/ps, so the output is not very handy.
sudo pargs PID
The output for both will look like the following
sudo pfiles 28141 | egrep “^28141:|sockname:”
28141: /local/apps/wlapp02/Autonomy/IDOLServer/jre/bin/java -Djava.util.loggi
sockname: AF_INET 0.0.0.0 port: 8080
sockname: AF_INET 0.0.0.0 port: 50608
sockname: AF_INET 0.0.0.0 port: 8009
sockname: AF_INET 127.0.0.1 port: 8005
sudo pargs 28141
28141: /local/apps/wlapp02/Autonomy/IDOLServer/jre/bin/java -Djava.util.logging.manage
argv[0]: /local/apps/wlapp02/Autonomy/IDOLServer/jre/bin/java
argv[1]: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
