> This one is per interface and I am looking per socket.
Then use just netstat i.e.
uname -r
5.10
type netstat
netstat is hashed (/usr/bin/netstat)
netstat
TCP: IPv4
Local Address Remote Address Swind Send-Q Rwind Recv-Q State
-------------------- -------------------- ----- ------ ----- ------ -----------
localhost.53206 localhost.64711 49152 0 49191 0 TIME_WAIT
host1.ssh host2.net.16952 32767 0 49640 0 ESTABLISHED
host1.ssh host3.13515 63712 0 49232 0 ESTABLISHED
localhost.53206 localhost.64712 49152 0 49191 0 TIME_WAIT
...
In case you want to relate the ports to process ids, then the opensource lsof utility is also available for Solaris. Alternatively, if losf isn't available, similar functionality should be possible using a script to combine netstat and fuser.