ethernet statistics

Ricardo Jesus ricardo.meb.jesus at gmail.com
Fri Sep 26 23:50:37 UTC 2008


Abdullah Ibn Hamad Al-Marri wrote:
> ----- Original Message ----
>
>   
>> From: Ricardo Jesus <ricardo.meb.jesus at gmail.com>
>> To: freebsd-questions at freebsd.org
>> Sent: Friday, September 26, 2008 10:50:59 PM
>> Subject: Re: ethernet statistics
>>
>> Gian Paolo Buono wrote:
>>     
>>> Hi,
>>>
>>> try systat and  :ifstat
>>>
>>> bye
>>>
>>> On Thu, Sep 25, 2008 at 5:23 PM, Erik Osterholm <
>>> freebsd-lists-erik at erikosterholm.org> wrote:
>>>
>>>  
>>>       
>>>> On Thu, Sep 25, 2008 at 04:39:35PM +0200, Vonarburg, David wrote:
>>>>    
>>>>         
>>>>> Hi,
>>>>> I am using Intel PRO/1000PT Server adaptor with freeBSD 7.0.
>>>>> How can I read out the statistics of the card from software?
>>>>> (num bytes received, packets sent and more)
>>>>>
>>>>> Thanks in advance
>>>>> David
>>>>>      
>>>>>           
>>>> Is netstat -i what you're looking for?
>>>>
>>>> Erik
>>>> _______________________________________________
>>>> freebsd-questions at freebsd.org mailing list
>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>>>> To unsubscribe, send any mail to "
>>>> freebsd-questions-unsubscribe at freebsd.org"
>>>>
>>>>    
>>>>         
>>> _______________________________________________
>>> freebsd-questions at freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>>> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>>>
>>>  
>>>       
>> Hi,
>>
>> I'd suggest vnStat.
>>
>> I've posted a post on my blog a few days ago on how to set it up on 
>> FreeBSD: 
>> http://linux-bsd-sharing.blogspot.com/2008/09/howto-monitor-network-traffic-with.html
>>
>> Best Regards.
>>     
>
> I think there is small error with this port.
>
> BB# vnstat -l
> Monitoring eth0...    (press CTRL-C to stop)
>
>    getting traffic...Error:
> Unable to get interface statistics.
>
> Is it made to be used for linux as default?
>
>
>
>  Regards,
>
> -Abdullah Ibn Hamad Al-Marri
> Arab Portal
> http://www.WeArab.Net/
>
>
>       
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>
>   
Hi Abdullah,

That's why you should specify the interface, like so:

alterran# vnstat -l -i rl0
Monitoring rl0...    (press CTRL-C to stop)

   rx:       9.13 kB/s    20 p/s            tx:      21.15 kB/s    25 p/s

Best regards.



More information about the freebsd-questions mailing list