Comparing netstat command in Linux and Solaris

Hi All,

In Linux when i am using netstat -anlp i am getting below columns output.

Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name

where as when i am using netstat -an -P tcp in Solaris 10 I am getting below columns output.

Local Address Remote Address Swind Send-Q Rwind Recv-Q State

I am unable to fetch the PID/Program name in Solaris 10 using netstat.

Can someone please tell me which command/option i need to use to fetch the details.

How about:

# pfiles -p pid

Does that give you the information you want?

Also,

# netstat -aun

but that might not work on Solaris 10 (only Solaris 11), but try.