Jul
11
2016

How to: Run NETSH trace for Network monitoring/timeout captures

While trying to troubleshoot the mirroring timeout issues which was in milliseconds, came across recommendation by a MS engineer to enable NetSH, below are instructions on how to enable it and capture logs, the logs can be supplied to Network vendor for further analysis.

 

  1. Run following command to enable Netsh

     

    Netsh trace start capture=yes scenario=netconnection maxsize=2000 filemode=circular overwrite=yes report=no persistent=yes tracefile=c:\%computername%.etl

     

    Note: Please make sure you place this on a drive which has 2GB free space, we are over writing the file once it reaches 2GB. 2GB space can be optimized to whatever size needed, with 500 for 500MB

     

  2. Stop this trace only when timeout is noticed or in case of any other network trace requirement

     

    Netsh trace stop

     

  3. To automate stopping trace, go to event viewer and find the event which is logged when the server mirroring times out. Right Click on that event and choose “Attach a Task to this Event”

     

  • In that task, run the following command “Netsh trace stop“, configure to run this only once when the above event occurs as this event may be triggered multiple times depending upon the number of times it is occurring

 

 

Use Microsoft Message Analyzer to convert the trace from .etl to .pcap or any other acceptable format,

DL link: https://www.microsoft.com/en-ca/download/details.aspx?id=44226

 

https://technet.microsoft.com/en-us/library/bb490939.aspx

Download PDF

About the Author: Nitin G

Indian born, trekker, biker, photographer, lover of monsoons. I've been working full time with SQL Server since year 2005 and blogs to post the content aquired during my research on new topics or fixing issues faced by me as a DBA while working in different kind of projects, hope some of my posts may helps others in SQLDBA community. Everything you read on my blog is my own personal opinion and any code is provided "AS-IS" with no warranties!

Leave a comment

Subscribe to this blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 34 other subscribers

Translate this blog!

EnglishFrenchGermanItalianPortugueseRussianSpanish

Calender

December 2017
M T W T F S S
« Nov    
 123
45678910
11121314151617
18192021222324
25262728293031

View Post by Categories

%d bloggers like this: