Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there any command that shows me the amount of data sent and received, same as Sent and Received data for my LAN connection (picture bellow)?

I need to pipe this info into a file for further use.

share|improve this question
    
What do you want: copy all data that is sent over the network, or do you want to monitor network traffic? –  SPRBRN Apr 22 '13 at 10:11
    
WMI objects (maybe something under performance data?) might come handy for monitoring... and wmic is commandline interface to WMI. –  Sampo Sarrala Apr 22 '13 at 10:14
    
From what I understand, he would like to parse those two values. –  Satoh Apr 22 '13 at 10:16
add comment

2 Answers 2

You can try:

netsh interface ip show ipstats

this will give you a table with information about received, sent, dropped packets and more.

share|improve this answer
    
it says: "The following command was not found: interface ip show ipstate." my OS: Windows XP sp2 x64 –  wiki Apr 22 '13 at 11:19
    
@wiki It should work for Windows XP. I tried it under Windows 7 and it worked. Read the Using Netsh Technet Article for details. –  Simon Apr 22 '13 at 14:24
1  
It should probably be ipstats not ipstate... –  Sampo Sarrala Apr 23 '13 at 6:50
    
@Sampo thanks! That happens when you don't copy & paste ;-). –  Simon Apr 23 '13 at 6:53
1  
@wiki did you try net start remoteaccess and then again netsh interface ip show ipstats? What was the result? –  Simon Apr 23 '13 at 7:35
show 2 more comments

You should have specified which version of Windows but the following command should work:

net statistics Workstation

Gives output like:

Workstation Statistics for \\NETBIOSNAME


Statistics since 18/04/2013 6:37:30 PM


  Bytes received                               438062
  Server Message Blocks (SMBs) received        4351
  Bytes transmitted                            537108
  Server Message Blocks (SMBs) transmitted     4346
  Read operations                              0
  Write operations                             0
  Raw reads denied                             0
  Raw writes denied                            0

  Network errors                               0
  Connections made                             312
  Reconnections made                           0
  Server disconnects                           0

  Sessions started                             1
  Hung sessions                                0
  Failed sessions                              0
  Failed operations                            0
  Use count                                    467
  Failed use count                             0
share|improve this answer
5  
This command only gives information about data sent / received concerning network shares (SMB). –  Simon Apr 22 '13 at 10:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.