Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Sep 2008 00:50:35 +0100
From:      Ricardo Jesus <ricardo.meb.jesus@gmail.com>
To:        Abdullah Ibn Hamad Al-Marri <wearabnet@yahoo.ca>,  freebsd-questions@freebsd.org
Subject:   Re: ethernet statistics
Message-ID:  <48DD754B.8030003@gmail.com>
In-Reply-To: <494769.87159.qm@web33702.mail.mud.yahoo.com>
References:  <494769.87159.qm@web33702.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Abdullah Ibn Hamad Al-Marri wrote:
> ----- Original Message ----
>
>   
>> From: Ricardo Jesus <ricardo.meb.jesus@gmail.com>
>> To: freebsd-questions@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@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@freebsd.org mailing list
>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>>>> To unsubscribe, send any mail to "
>>>> freebsd-questions-unsubscribe@freebsd.org"
>>>>
>>>>    
>>>>         
>>> _______________________________________________
>>> freebsd-questions@freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>>> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48DD754B.8030003>