Get Total Sent/Received Bytes

  • Thread starter Thread starter EricTsai - ½²©v¿«
  • Start date Start date
E

EricTsai - ½²©v¿«

Hi,
Are there any information about sent/received bytes on one/all NICs in WMI
classes?
I've found BytesReceivedPerSec, BytesSentPerSec, BytesTotalPerSec in
Win32_PerfFormattedData_Tcpip_NetworkInterface,
but they're not what I need.
I need the value like in the popup window when I double-click on the icon of
any activated network connection.
Thanks for your help.

Eric Tsai
 
Hi EricTsai - ½²©v¿«,

EricTsai - ½²©v¿« said:
Are there any information about sent/received bytes on one/all NICs in WMI
classes?
mmh, i had thought, Win32_PerfFormattedData_Tcpip_NetworkInterface or
Win32_PerfRawData_Tcpip_NetworkInterface are the classes, which can
be used therefore.
I've found BytesReceivedPerSec, BytesSentPerSec, BytesTotalPerSec in
Win32_PerfFormattedData_Tcpip_NetworkInterface,
but they're not what I need.
Why are this class with its properties not that, what you need?
I need the value like in the popup window when I double-click on the icon of
any activated network connection.
I look at my system and the values in the popup and in the prop's of
Win32_PerfRaw... are not the same, but they are about equal. Maybe
they different due to the timestamp, as they would be collected.

Why do need this data?

Cioa
Peter
 
Thank you Peter.
Win32_PerfRawData_Tcpip_NetworkInterface that's the right class!
I never give it a try because there is "PerSec" in those column names.
I misunderstand that as Byte/sec, (this is what MSDN library says)
but infact it means the value is updated every second.
 
Back
Top