text stringlengths 0 4.23k |
|---|
C:\Test> pktmon filter add -p 53 |
The following filter will capture all the SYN packets sent or received by the IP address 10.0.0.10: |
C:\Test> pktmon filter add -i 10.0.0.10 -t tcp syn |
The following filter called MyPing pings 10.10.10.10 using the ICMP protocol: |
C:\Test> pktmon filter add MyPing -i 10.10.10.10 -t ICMP |
The following filter called MySmbSyb captures TCP synchronized SMB traffic: |
C:\Test> pktmon filter add MySmbSyn -i 10.10.10.10 -t TCP SYN -p 445 |
The following filter called MySubnet captures traffic on the subnet mask 255.255.255.0, or /24 in CIDR notation: |
C:\Test> pktmon filter add MySubnet -i 10.10.10.0/24 |
Other references |
pktmon filter |
Applies to: Windows Server 2022, Windows Server 2019, Windows 10, Azure Stack HCI, Azure Stack Hub, Azure |
Pktmon filter allows you to list, add, or remove packet filters. |
Syntax |
pktmon filter { list | add | remove } [OPTIONS | help] |
Parameters |
Parameter |
Description |
pktmon filter list |
Display active packet filters. |
pktmon filter add |
Add a filter to control which packets are reported. |
pktmon filter remove |
Remove all packet filters. |
pktmon hex2pkt |
Applies to: Windows Server 2022, Windows Server 2019, Windows 10, Azure Stack HCI, Azure Stack Hub, Azure |
Decode packet in hexadecimal format. |
Syntax |
pktmon hex2pkt [--type { Ethernet | IP | HTTP }] |
Parameters |
Parameter |
Description |
-t, --type |
Packet type to decode. Options are Ethernet, IP, and HTTP. Default is Ethernet. |
pktmon list |
Applies to: Windows Server 2022, Windows Server 2019, Windows 10, Azure Stack HCI, Azure Stack Hub, Azure |
Lists all active networking components that can be monitored, allowing you to examine the networking stack layout. The command shows networking components (drivers) arranged by adapters bindings. |
Syntax |
pktmon list [--all] [--include-hidden] [--json] |
Parameters |
Parameter |
Description |
-a, --all |
Show all component types. Only network adapters are displayed by default. |
-i, --include-hidden |
Show components that are hidden by default. |
--json |
Output the list in JSON format. Implies -i and -a. |
pktmon reset |
Applies to: Windows Server 2022, Windows Server 2019, Windows 10, Azure Stack HCI, Azure Stack Hub, Azure |
Reset counters to zero. |
Syntax |
pktmon reset [-counters] |
pktmon start |
Applies to: Windows Server 2022, Windows Server 2019, Windows 10, Azure Stack HCI, Azure Stack Hub, Azure |
Starts packet capture and event collection. |
Syntax |
pktmon start [--capture [--counters-only] [--comp <selector>] [--type <type>] [--pkt-size <bytes>] [--flags <mask>]] |
[--trace --provider <name> [--keywords <k>] [--level <n>] ...] |
[--file-name <name>] [--file-size <size>] [--log-mode <mode>] |
Packet capture parameters |
Use -c or --capture to enable packet capture and packet counters, along with the following optional parameters. |
Parameter |
Description |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.