How to use Packet Monitor (Pktmon) during troubleshooting

How to use Packet Monitor (Pktmon) during troubleshooting

153
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 16:04 PM


Objective


Packet Monitor (Pktmon) should be used when detailed packet information is required during troubleshooting. This article outlines a basic way to perform the troubleshooting that Idira may require if networking issues are suspected.

Packet Monitor is available by default on Windows Server 2019 (Version 1809) and later, as well as Windows 10 and later.

For more information about Packet Monitor and its syntax, please refer to the Microsoft documentation: https://learn.microsoft.com/en-us/windows-server/networking/technologies/pktmon/pktmon



Environment


Privileged Access Manager (PAM, self-hosted)

Procedure


  1. Open a Command or PowerShell prompt as administrator, and browse to a directory of your choosing, e.g. C:\Temp
    1. cd <directory path>
  2. Run the following command, where <address> is the endpoint you're initiating traffic to:
    1. pktmon filter add -i <address>
  3. In the same prompt, run the following command to start the packet capture:
    1. pktmon start -c
  4. Recreate the issue
  5. Run the following command to confirm the presence of expected traffic:
    1. pktmon counters
  6. Stop the capture using the following command:
    1. pktmon stop
  7. (Optional) Convert the .etl file that was generated to something that can be opened by a tool such as Wireshark for analysis:
    1. pktmon etl2pcap <directory path>\PktMon.etl

Note: If it's necessary to capture packets both on the target and the source, you can run the steps on both machines at the same time. Ensure that the <address> in step 2 is the opposite server's address.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001IaqCAE&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail