Let's say you want to know what process is tying up port 25000:
So, now let's see what the process is:# netstat -aAn | grep 25000 f100060020cf1398 tcp4 0 0 *.25000 *.* LISTEN f10006000d490c08 stream 0 0 f1df487f8 0 0 0 /tmp/.sapicm25000
If you have lsof installed, you can get the same result with the lsof command:# rmsock f100060020cf1398 tcpcb The socket 0x20cf1008 is being held by proccess 1806748 (icman).
Example:# lsof -i :[PORT]
# lsof -i :5710 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME oracle 2638066 oracle 18u IPv4 0xf1b3f398 0t1716253 TCP host:5710
If you found this useful, here's more on the same topic(s) in our blog:
- Word wrapping files
- Nimesis
- Set up private network between 2 VIO clients
- AIX: Delete multiple default gateways
- Creating graphs from NMON
UNIX Health Check delivers software to scan Linux and AIX systems for potential issues. Run our software on your system, and receive a report in just a few minutes. UNIX Health Check is an automated check list. It will report on perfomance, capacity, stability and security issues. It will alert on configurations that can be improved per best practices, or items that should be improved per audit guidelines. A report will be generated in the format you wish, and the report includes the issues discovered and information on how to solve the issues as well.
Interested in learning more?
Interested in learning more?




