Using the attached WMIExplore.pl, enumerating the
Win32_PerfRawData_Tcpip_NetworkInterface class on most of my servers
gives information similar to the following:

D:\CVS\secure\scripts\SystemsMonitoring>WMIExplore.pl
Win32_PerfRawData_Tcpip_NetworkInterface l3pinfra1
Collecting WMI data from l3pinfra1 for
Win32_PerfRawData_Tcpip_NetworkInterface
===========================================
        BytesReceivedPersec -> 791744567 -> PERF_COUNTER_COUNTER
        BytesSentPersec -> 1209514631 -> PERF_COUNTER_COUNTER
        BytesTotalPersec -> 2001259198 -> PERF_COUNTER_BULK_COUNT
        Caption ->  ->
        CurrentBandwidth -> 100000000 -> PERF_COUNTER_RAWCOUNT
        Description ->  ->
        Frequency_Object -> 0 ->
        Frequency_PerfTime -> 3391790000 ->
        Frequency_Sys100NS -> 10000000 ->
        Name -> Intel[R] PRO_1000 MT Network Connection _2 ->
<snip>

We have a farm of servers with 4 GB NICs teamed, so that the live
interface has a bandwidth of 4 GB/s. Running the same code on one of
these machines shows this:

D:\CVS\secure\scripts\SystemsMonitoring>WMIExplore.pl
Win32_PerfRawData_Tcpip_NetworkInterface l3pcalcamd2
Collecting WMI data from l3pcalcamd2 for
Win32_PerfRawData_Tcpip_NetworkInterface
===========================================
        BytesReceivedPersec -> 1850144995 -> PERF_COUNTER_COUNTER
        BytesSentPersec -> -876640650 -> PERF_COUNTER_COUNTER
        BytesTotalPersec -> 973504345 -> PERF_COUNTER_BULK_COUNT
        Caption ->  ->
        CurrentBandwidth -> -294967296 -> PERF_COUNTER_RAWCOUNT
        Description ->  ->
        Frequency_Object -> 0 ->
        Frequency_PerfTime -> 2606000000 ->
        Frequency_Sys100NS -> 10000000 ->
        Name -> HP Network Team _1 ->
<snip>

The CurrentBandwidth property is a negative value, almost as if it is a
counter that has wrapped. Does anybody know how I can process this to
get the true value?

Cheers,
Paul

*****************************************************************
Gloucester Research Limited believes the information 
provided herein is reliable. While every care has been 
taken to ensure accuracy, the information is furnished 
to the recipients with no warranty as to the completeness 
and accuracy of its contents and on condition that any 
errors or omissions shall not be made the basis for any 
claim, demand or cause for action.

The information in this email is intended only for the 
named recipient.  If you are not the intended recipient
please notify us immediately and do not copy, distribute 
or take action based on this e-mail.

Gloucester Research Limited, 5th Floor, Whittington House, 
19-30 Alfred Place, London WC1E 7EA
*****************************************************************

Attachment: WMIExplore.pl
Description: WMIExplore.pl

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to