Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
WMI - howto get TX and RX packet count
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Frank  
View profile  
 More options Mar 11 2006, 7:54 pm
Newsgroups: microsoft.public.win32.programmer.wmi
From: "Frank" <b...@nospam.nospam>
Date: Sat, 11 Mar 2006 19:54:26 -0500
Local: Sat, Mar 11 2006 7:54 pm
Subject: WMI - howto get TX and RX packet count
Is there a way to obtain the total number of transmitted (TX) and received
(RX) packets from a particular network interface in Windows
NT/2000/2003/XP/Vista using WMI? If this is not possible with WMI and is
possible using another method such as API call, please let me know.

Thank you,

Frank


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
newbie  
View profile  
 More options Mar 12 2006, 11:53 am
Newsgroups: microsoft.public.win32.programmer.wmi
From: "newbie" <as...@aswin.be>
Date: Sun, 12 Mar 2006 17:53:24 +0100
Local: Sun, Mar 12 2006 11:53 am
Subject: Re: WMI - howto get TX and RX packet count
yes you can with wmi.
but it is a counter ... ( uint32 => +- 4GB )

"Frank" <b...@nospam.nospam> schreef in bericht
news:eCAYI%23WRGHA.4572@TK2MSFTNGP10.phx.gbl...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frank  
View profile  
 More options Mar 12 2006, 1:00 pm
Newsgroups: microsoft.public.win32.programmer.wmi
From: "Frank" <b...@nospam.nospam>
Date: Sun, 12 Mar 2006 13:00:36 -0500
Local: Sun, Mar 12 2006 1:00 pm
Subject: Re: WMI - howto get TX and RX packet count
Thank you for your reply. Can you be a little more specific as to which
couter you are referring to in WMI? Is the counter below the network
interface or part of Perfmon counters?

Thanks,

Frank

"newbie" <as...@aswin.be> wrote in message

news:441451fc$0$14132$ba620e4c@news.skynet.be...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
"Gary Chang[MSFT]"  
View profile  
 More options Mar 14 2006, 3:17 am
Newsgroups: microsoft.public.win32.programmer.wmi
From: v-gar...@online.microsoft.com ("Gary Chang[MSFT]")
Date: Tue, 14 Mar 2006 08:17:47 GMT
Local: Tues, Mar 14 2006 3:17 am
Subject: Re: WMI - howto get TX and RX packet count
Hi Frank,

Have you checked the Win32_PerfFormattedData_Tcpip_NetworkInterface class?

There has some related properties to your question:

PacketsReceivedPerSec;
PacketsSentPerSec;
..

I suggest you can refer to the following Platform SDK documentation for the
details:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmis...
win32_perfformatteddata_tcpip_networkinterface.asp

Thanks!

Best regards,

Gary Chang
Microsoft Community Support
======================================================
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006.  Please complete a re-registration process by
entering the secure code mmpng06 when prompted. Once you have entered the
secure code mmpng06, you will be able to update your profile and access the
partner newsgroups.
======================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from this issue.
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
newbie  
View profile  
 More options Mar 14 2006, 10:22 am
Newsgroups: microsoft.public.win32.programmer.wmi
From: "newbie" <as...@aswin.be>
Date: Tue, 14 Mar 2006 16:22:15 +0100
Local: Tues, Mar 14 2006 10:22 am
Subject: Re: WMI - howto get TX and RX packet count
I have searched for a long time for it...
I have some projects here who give you what you want.
send me a mail...

"Frank" <b...@nospam.nospam> schreef in bericht
news:OGE7g7fRGHA.2300@TK2MSFTNGP11.phx.gbl...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frank  
View profile  
 More options Mar 14 2006, 1:49 pm
Newsgroups: microsoft.public.win32.programmer.wmi
From: "Frank" <b...@nospam.nospam>
Date: Tue, 14 Mar 2006 13:49:28 -0500
Local: Tues, Mar 14 2006 1:49 pm
Subject: Re: WMI - howto get TX and RX packet count
Gary,

I'm looking to capture the "total" number of packets "sent" and "received"
by the interface/adapter (not looking for per second counters). In Windows
2000/2003/XP if you open the properties of the network interface there is a
section called "activity" and shows the number of packets sent/received. I'm
looking to capture this information, i.e. cumulative total packets.

Where is the information for the adapter properties being pulled from?

Thank you,

Frank

""Gary Chang[MSFT]"" <v-gar...@online.microsoft.com> wrote in message

news:dmwpP$zRGHA.4824@TK2MSFTNGXA03.phx.gbl...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
"Gary Chang[MSFT]"  
View profile  
 More options Mar 15 2006, 1:52 am
Newsgroups: microsoft.public.win32.programmer.wmi
From: v-gar...@online.microsoft.com ("Gary Chang[MSFT]")
Date: Wed, 15 Mar 2006 06:52:55 GMT
Local: Wed, Mar 15 2006 1:52 am
Subject: Re: WMI - howto get TX and RX packet count
Hi Frank,

>Where is the information for the adapter properties being pulled from?

I am afraid I don't find a WMI class which provide the TX and RX packet
count you wants. But I know that data could be easily retrieved via the
networking API. The MIB_IFROW structure's member--dwInUcastPkts and
dwOutUcastPkts are the numbers of packets received and sent by a particular
interface:

MIB_IFROW
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mib/...
_ifrow.asp

There is a sample project in the Codeguru website which queries the
MIB_IFROW structure to get the MAC/NIC statistical information:
http://www.codeguru.com/cpp/i-n/network/networkinformation/article.ph...
/

To use that sample, you can add the following code snippet just after the
follwoing code snippet:

//Print out physical address  ...line 78
printf( "%s\n", &macStr[0] );

//Insert code here:
printf( "Received Packets: %d\n", details.dwInUcastPkts );
printf( "Sent ackets: %d\n", details.dwOutUcastPkts );
..

(Note: That sample program needs the Platform SDK's Iphlpapi.h and
Iphlpapi.lib file )

Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Community Support
======================================================
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006.  Please complete a re-registration process by
entering the secure code mmpng06 when prompted. Once you have entered the
secure code mmpng06, you will be able to update your profile and access the
partner newsgroups.
======================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from this issue.
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
newbie  
View profile  
 More options Mar 15 2006, 7:22 am
Newsgroups: microsoft.public.win32.programmer.wmi
From: "newbie" <as...@aswin.be>
Date: Wed, 15 Mar 2006 13:22:34 +0100
Local: Wed, Mar 15 2006 7:22 am
Subject: Re: WMI - howto get TX and RX packet count
yes you can...
It is the same result...
WMI or MIB_IFROW.

""Gary Chang[MSFT]"" <v-gar...@online.microsoft.com> schreef in bericht
news:bp0pg0$RGHA.5524@TK2MSFTNGXA03.phx.gbl...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google