How to capture Network Data Using Netsh
178
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 15:54 PM
Symptom
Summary:
This article will go through the process of creating a usable network trace without 3rd party tools (like Wireshark)
Applies To:
Any Machine Identity Security Certificate Manager Self Hosted
More Info:
NetSH is a command-line utility included with the Windows Server operating systems and is therefore free to use. If you have Wireshark and would prefer to use that instead, that is fine since we'll be looking at the CAP conversion of these ETL files. But this is completely free and very simple to use.
- Prepare for the test. That is, set up the console so you are ready to perform the operation we are trying to trace. The amount of data gathered can be intense and we would prefer to limit the scope of our capture as much as possible.
- Open an elevated command prompt and run:
"netsh trace start persistent=yes capture=yes tracefile=c:\temp\nettrace-boot.etl"
(Make sure you have a \temp directory, or choose another location) - Reproduce the issue
- In the same elevated command prompt, run: "netsh trace stop"
- In the event you had to reboot, you can open up a new Command prompt and run the above command.
- In the event you had to reboot, you can open up a new Command prompt and run the above command.
- Find the ETL file created above (e.g. c:\temp\nettrace-boot.etl) and upload it to your ticket
- Be sure to update your support case, and please include any information that may help us analyze the trace including target systems (host names for instance, IP preferred), certificate names, or other relevant information. For instance, the source IP (TPP server's IP generally) is extremely useful, and the destination IP as well (e.g. F5 server's IP, or CA hostname) There's a LOT going on in these traces and it's helpful to know the participates in the communication!
Environment
14.2 TPP/TLSPDC TLSPDC