Checking Packet Queue?

A

Anonymous

Guest
I read somewhere that "netstat -i" would show me the number of packets waiting on an interface's queue. It's not showing that, is there another way to do it? I'm trying to do this so I can check to see if a network problem is being caused by the interface or cable.
 
If you're using altq, you can look at its queue with [CMD="pfctl"]-vsq[/CMD] (prints output once, no packet kbps) or [CMD="pfctl"]-vvsq[/CMD] (continues printing output w/ kbps per queue).
 
"systat -netstat em0" gives me the following static output until I kill it.

Code:
               /0  /1  /2  /3  /4  /5  /6  /7  /8  /9  /10

      Load Average

Local Address Foreign Address  Proto Recv-Q Send-Q (state)

I don't know what altq is but when i run that command it says /dev/pf can't be found.
 
If you don't know what pf/altq are, then you're not running it.

'n' is a refresh interval as DutchDaemon said, not a interface name (e.g. [CMD="systat"]-netstat 5[/CMD]).
 
I tried it with an interval first and got the same output.
 
It can take a while for DNS to resolve the hostnames, especially when there are a lot of connections. Give it a minute.

Or:
Start [cmd=]systat -netstat 5[/cmd], and when the screen comes up, type
Code:
:numbers

See systat(1) under the netstat section.
 
I see it showing me all of the currently open sockets. That pretty cool.
 
Orum said:
If you're using altq, you can look at its queue with [CMD="pfctl"]-vsq[/CMD] (prints output once, no packet kbps) or [CMD="pfctl"]-vvsq[/CMD] (continues printing output w/ kbps per queue).

I use ALTQ and was excited to learn about this, but when I tried it get the following:

Code:
No queue in use


I have tried it when transferring data so I know a queue is in use (not to mention people connecting to the box continually), but still get nothing but the above.
 
Back
Top