You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/about-toolbox.adoc
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,12 @@
6
6
[id="about-toolbox_{context}"]
7
7
= About `toolbox`
8
8
9
+
ifndef::openshift-origin[]
9
10
`toolbox` is a tool that starts a container on a {op-system-first} system. The tool is primarily used to start a container that includes the required binaries and plug-ins that are needed to run commands such as `sosreport` and `redhat-support-tool`.
10
11
11
12
The primary purpose for a `toolbox` container is to gather diagnostic information and to provide it to Red Hat Support. However, if additional diagnostic tools are required, you can add RPM packages or run an image that is an alternative to the standard support tools image.
13
+
endif::openshift-origin[]
14
+
15
+
ifdef::openshift-origin[]
16
+
`toolbox` is a tool that starts a container on a {op-system-first} system. The tool is primarily used to start a container that includes the required binaries and plug-ins that are needed to run your favorite debugging or admin tools.
. Create a compressed file from the `must-gather` directory that was just created in your working directory. For example, on a computer that uses a Linux operating system, run the following command:
40
41
+
41
42
[source,terminal]
@@ -45,7 +46,7 @@ $ tar cvaf must-gather.tar.gz must-gather.local.472290403699006248 <1>
45
46
<1> Replace `must-gather-local.472290403699006248` with the actual directory name.
46
47
47
48
. Attach the compressed file to your support case on the link:https://access.redhat.com[Red Hat Customer Portal].
Copy file name to clipboardExpand all lines: modules/gathering-data-specific-features.adoc
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -321,8 +321,6 @@ endif::openshift-dedicated[]
321
321
====
322
322
endif::openshift-origin[]
323
323
324
-
ifdef::openshift-origin[]
325
-
326
324
. Run the `oc adm must-gather` command with one or more `--image` or `--image-stream` arguments. For example, the following command gathers both the default cluster data and information specific to KubeVirt:
327
325
+
328
326
[source,terminal]
@@ -334,8 +332,7 @@ $ oc adm must-gather \
334
332
<1> The default {product-title} `must-gather` image
335
333
<2> The must-gather image for KubeVirt
336
334
337
-
endif::openshift-origin[]
338
-
335
+
ifndef::openshift-origin[]
339
336
. Create a compressed file from the `must-gather` directory that was just created in your working directory. For example, on a computer that uses a Linux
340
337
operating system, run the following command:
341
338
+
@@ -347,6 +344,7 @@ $ tar cvaf must-gather.tar.gz must-gather.local.5421342344627712289/ <1>
347
344
actual directory name.
348
345
349
346
. Attach the compressed file to your support case on the link:https://access.redhat.com[Red Hat Customer Portal].
Copy file name to clipboardExpand all lines: modules/support-collecting-host-network-trace.adoc
+57Lines changed: 57 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,15 @@
8
8
9
9
Sometimes, troubleshooting a network-related issue is simplified by tracing network communication and capturing packets on multiple nodes at the same time.
10
10
11
+
ifndef::openshift-origin[]
11
12
You can use a combination of the `oc adm must-gather` command and the `registry.redhat.io/openshift4/network-tools-rhel8` container image to gather packet captures from nodes.
12
13
Analyzing packet captures can help you troubleshoot network communication issues.
14
+
endif::openshift-origin[]
15
+
16
+
ifdef::openshift-origin[]
17
+
You can use a combination of the `oc adm must-gather` command and the `quay.io/openshift/origin-network-tools:latest` container image to gather packet captures from nodes.
18
+
Analyzing packet captures can help you troubleshoot network communication issues.
19
+
endif::openshift-origin[]
13
20
14
21
The `oc adm must-gather` command is used to run the `tcpdump` command in pods on specific nodes.
15
22
The `tcpdump` command records the packet captures in the pods.
@@ -29,6 +36,7 @@ However, you can run any command in the container image that is specified in the
29
36
30
37
.Procedure
31
38
39
+
ifndef::openshift-origin[]
32
40
. Run a packet capture from the host network on some nodes by running the following command:
33
41
+
34
42
[source,terminal]
@@ -51,9 +59,36 @@ $ oc adm must-gather \
51
59
<.> The `--host-network=true` argument is required so that the packet captures are performed on the network interfaces of the node.
52
60
<.> The `--timeout` argument and value specify to run the debug pod for 30 seconds. If you do not specify the `--timeout` argument and a duration, the debug pod runs for 10 minutes.
53
61
<.> The `-i any` argument for the `tcpdump` command specifies to capture packets on all network interfaces. As an alternative, you can specify a network interface name.
62
+
endif::openshift-origin[]
63
+
64
+
ifdef::openshift-origin[]
65
+
. Run a packet capture from the host network on some nodes by running the following command:
<.> The `--dest-dir` argument specifies that `oc adm must-gather` stores the packet captures in directories that are relative to `/tmp/captures` on the client machine. You can specify any writable directory.
81
+
<.> When `tcpdump` is run in the debug pod that `oc adm must-gather` starts, the `--source-dir` argument specifies that the packet captures are temporarily stored in the `/tmp/tcpdump` directory on the pod.
82
+
<.> The `--image` argument specifies a container image that includes the `tcpdump` command.
83
+
<.> The `--node-selector` argument and example value specifies to perform the packet captures on the worker nodes. As an alternative, you can specify the `--node-name` argument instead to run the packet capture on a single node. If you omit both the `--node-selector` and the `--node-name` argument, the packet captures are performed on all nodes.
84
+
<.> The `--host-network=true` argument is required so that the packet captures are performed on the network interfaces of the node.
85
+
<.> The `--timeout` argument and value specify to run the debug pod for 30 seconds. If you do not specify the `--timeout` argument and a duration, the debug pod runs for 10 minutes.
86
+
<.> The `-i any` argument for the `tcpdump` command specifies to capture packets on all network interfaces. As an alternative, you can specify a network interface name.
87
+
endif::openshift-origin[]
54
88
55
89
. Perform the action, such as accessing a web application, that triggers the network communication issue while the network trace captures packets.
56
90
91
+
ifndef::openshift-origin[]
57
92
. Review the packet capture files that `oc adm must-gather` transferred from the pods to your client machine:
58
93
+
59
94
[source,text]
@@ -72,3 +107,25 @@ tmp/captures
72
107
+
73
108
<1> The packet captures are stored in directories that identify the hostname, container, and file name.
74
109
If you did not specify the `--node-selector` argument, then the directory level for the hostname is not present.
110
+
endif::openshift-origin[]
111
+
112
+
ifdef::openshift-origin[]
113
+
. Review the packet capture files that `oc adm must-gather` transferred from the pods to your client machine:
By default, running the `toolbox` command starts a container with the `registry.redhat.io/rhel8/support-tools:latest` image. This image contains the most frequently used support tools. If you need to collect node-specific data that requires a support tool that is not part of the image, you can install additional packages.
11
+
endif::openshift-origin[]
12
+
13
+
ifdef::openshift-origin[]
14
+
By default, running the `toolbox` command starts a container with the `quay.io/fedora/fedora:36` image. This image contains the most frequently used support tools. If you need to collect node-specific data that requires a support tool that is not part of the image, you can install additional packages.
By default, running the `toolbox` command starts a container with the `registry.redhat.io/rhel8/support-tools:latest` image. You can start an alternative image by creating a `.toolboxrc` file and specifying the image to run.
11
+
endif::openshift-origin[]
12
+
13
+
ifdef::openshift-origin[]
14
+
By default, running the `toolbox` command starts a container with the `quay.io/fedora/fedora:36` image. You can start an alternative image by creating a `.toolboxrc` file and specifying the image to run.
0 commit comments