How does SNMP work. Can I use it to monitor the bandwidth currently used and upload/download speed?

Thanks, Ante
Posted on 2002-08-17 13:50:51 by ante
Does anyone know how to monitor ul/dl speed?
Posted on 2002-08-18 12:27:52 by ante
One way I can think of would be to use iphlpapi.

Call GetIfEntry to get total number of octets sent/recieved
Wait a fixed amount of time
Call it again.

Calculate bandwidth used from the difference in total sent/recieved

Not the prettiest way, but it should work.
Posted on 2002-08-18 16:07:21 by assant
Thanks, will try that tomorrow. One question though, how big is an octect?
Posted on 2002-08-18 17:17:12 by ante
good question.
An octet is commonly held to be a byte of 8 bits.
This is not however strictly true, because this is not the definition of an octet. An octet is defined as the minimum addressible bitsize of data bytes stored in memory, which in some systems can be 9 or 10 bits - or more!! HOWEVER these extra bits are generally only used internally in the ram, for things like detecting corruption and flagging refreshes (dram).
I have argued long and hard that an octet is just an 8-bit byte.
Most of the time this is true.
Posted on 2002-08-30 00:22:21 by Homer
Thanks for the answer EvilHomer2k
Posted on 2002-08-30 06:28:36 by ante