Skip to content

Commit 634b71e

Browse files
alagouttesmira
authored andcommitted
docs: move talosctl pcap example to Example Block
it is before on Long but wrong display on docs website (already use by image cache-create cmd) Signed-off-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
1 parent 8184927 commit 634b71e

File tree

2 files changed

+9
-6
lines changed
  • cmd/talosctl/cmd/talos
  • website/content/v1.13/reference

2 files changed

+9
-6
lines changed

cmd/talosctl/cmd/talos/pcap.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ var pcapCmd = &cobra.Command{
3939
Use: "pcap",
4040
Aliases: []string{"tcpdump"},
4141
Short: "Capture the network packets from the node.",
42-
Long: `The command launches packet capture on the node and streams back the packets as raw pcap file.
43-
44-
Default behavior is to decode the packets with internal decoder to stdout:
42+
Long: `The command launches packet capture on the node and streams back the packets as raw pcap file.`,
43+
Example: `Default behavior is to decode the packets with internal decoder to stdout:
4544
4645
talosctl pcap -i eth0
4746

website/content/v1.13/reference/cli.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2834,6 +2834,13 @@ Capture the network packets from the node.
28342834

28352835
The command launches packet capture on the node and streams back the packets as raw pcap file.
28362836

2837+
```
2838+
talosctl pcap [flags]
2839+
```
2840+
2841+
### Examples
2842+
2843+
```
28372844
Default behavior is to decode the packets with internal decoder to stdout:
28382845
28392846
talosctl pcap -i eth0
@@ -2857,9 +2864,6 @@ for e.g. Wireguard tunnels:
28572864
As packet capture is transmitted over the network, it is recommended to filter out the Talos API traffic,
28582865
e.g. by excluding packets with the port 50000.
28592866
2860-
2861-
```
2862-
talosctl pcap [flags]
28632867
```
28642868

28652869
### Options

0 commit comments

Comments
 (0)