Yes. In the field of computer network administration, pcap (Packet Capture) consists of an application programming interface (API) for capturing network traffic. Windows uses a port of libpcap known as WinPcap or NPcap. Users can generate pcap trace files which will be read by Wireshark. So make sure that WinPcap or NPcap is also installed while installing Wireshark with NetSim.
Steps to generate pcap file when NetSim Simulates any scenario:
Step 1: Create a simple scenario in NetSim.
Step 2: To enable Wireshark packet capture at the node, right-click on node -->go to properties --> global properties --> Wireshark option. Users can choose online/offline.
Online will open Wireshark and display the captured packets as the simulation is running. The offline option will generate the pcap file which can be opened using Wireshark post-simulation. In general, selecting the online option will slow down the simulation.
Step 3: At the end of the simulation in the results window, a packet capture option will be displayed. Under that click on Simulation and click on the link (of the node) whose pcap file you wish to open in wireshark.
You can also further save it either by saving the whole experiment in NetSim or else you can use save option in Wireshark.