Thanx Dave for your suggestions...
---
Peeyush Bishnoi
On Sun, 2007-01-14 at 21:46 +0000, Dave Shield wrote:
> On 08/01/07, Peeyush Bishnoi <[EMAIL PROTECTED]> wrote:
> > Can any tell me how to calculate the bandwidth of a network link
> > using SNMP in c/c++ .
>
> Retrieve the value of 'ifInOctets' and/or 'ifOutOctets' for the interface
> in question. Then wait a bit, and retrieve the same values again.
> The difference between the two readings (divided by the time between
> the readings) will give you the rate of data transfer for this interface.
>
> Comparing this against 'ifSpeed' for that interface should show how
> busy the interface is.
>
> Dave
>
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders