title: Monitoring Bandwith on a remote machine with WMI
body: <p>I am trying to monitor interfaces bandwidth on a remote Windows machine. So far I used SNMP with the <a href="http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a008009496e.shtml" rel="nofollow noreferrer">Cisco Bandwidth Formula</a> but that requires to retrieve two samples at two different times. Last but not least it seems that the value I record with SNMP is quite wrong. Since I have WMI support I'd like to use it but the only value I've found (which seems to be what I'm looking for) is <strong>BytesTotalPerSec</strong> of the <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa394340(v=vs.85).aspx#properties" rel="nofollow noreferrer">Win32_PerfRawData_Tcpip_NetworkInterface</a>. That value however looks more like a total counter (just like the SNMP one). Is there a way to retrieve the instant current bandwidth through WMI? To clarify the Current Bandwidth field always return 1000000000 (which is the Maximum Bandwidth) and as you can imagine it is not helpful.</p>