Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to get a per-socket send and receive Queues utilization on Solaris similar to the way that Linux' netstat displays it?

Example on Linux:

Proto Recv-Q Send-Q Local Address               Foreign Address             State
tcp        0      0     *                   LISTEN
tcp        0      0     *                   LISTEN
share|improve this question
up vote 3 down vote accepted

This one is per interface and I am looking per socket.

Then use just netstat i.e.

uname -r

type netstat
netstat is hashed (/usr/bin/netstat)

   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.

share|improve this answer
# netstat -i
Name Mtu   Net/Dest   Address   Ipkts   Ierrs  Opkts  Oerrs Collis Queue
lo0  8232  loopback   localhost 52559     0    52559    0     0     0
hme0 1500   sys11      sys11    18973     0    30292    0     0     0

This has a Queue column with In/Out packets. Does this meet you needs?

Note: Ran on solaris 10

share|improve this answer
No. This one is per interface and I am looking per socket. – Karlson Mar 26 '12 at 3:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.