A useful script for troubleshooting UNIX processes and TCP ports
I found a really useful script that will show what UNIX processes are using particular TCP ports, and vice-versa. I found this useful for troubleshooting Identity Synchronization for Windows connectors. The Directory Server connector runs as a java process listening on a particular TCP port. The ISW plugin in the Sun Directory Server connects to the connector over that port number.
The script can be downloaded here
In this example, the Directory Server connector is listening on port 7890 and the corresponding Sun Directory Server is connected to the connector on port 7890
# sh pcp -p 7890
PID Process Name and Port
_________________________________________________________
7493 /usr/java/bin/java 7890 DS Connector
sockname: AF_INET 0.0.0.0 port: 7890
sockname: AF_INET 10.200.131.36 port: 7890
sockname: AF_INET 10.200.131.36 port: 7890
_________________________________________________________
7766 /opt/SUNWdsee/ds6/lib/64/ns-slapd 7890 Directory Server
peername: AF_INET 10.200.131.36 port: 7890
_________________________________________________________
Posted at 10:58AM Jul 21, 2008 by Jonathan Gershater in Identity & Directory Server |
Monday Jul 21, 2008














