netstat and PID
On linux box I can type "netstat -anop" and it shows me PID of established connections like this:
Code:
root@proxy:~# netstat -anop Is there any way to do this similar under solaris 10 ? |
There is no such option with Solaris netstat.
You can retrieve the ports used by a specific process with the pfiles command. Here is a script that will display all running processes and the ports they use if any. Code:
pfiles `ptree | awk '{print $1}'` | egrep '^[0-9]|port:' |
That's tricky - thanks.
|
All times are GMT -5. The time now is 10:40 AM. |