diff --git a/modules/migration-using-must-gather.adoc b/modules/migration-using-must-gather.adoc index 15e51f60ba1d..139925f06d4f 100644 --- a/modules/migration-using-must-gather.adoc +++ b/modules/migration-using-must-gather.adoc @@ -39,23 +39,41 @@ endif::[] . Navigate to the directory where you want to store the `must-gather` data. . Run the `oc adm must-gather` command for one of the following data collection options: -ifdef::troubleshooting-3-4,troubleshooting-mtc[] -* To collect data for the past hour: +ifdef::troubleshooting-3-4[] +* To collect data for the past hour, use the following command: ++ +[source,terminal] +---- +$ oc adm must-gather --image=registry.redhat.io/rhmtc/openshift-migration-must-gather-rhel8:v1.7 +---- ++ +This command saves the data as the `must-gather/must-gather.tar.gz` file. You can upload this file to a support case on the link:https://access.redhat.com/[Red Hat Customer Portal]. +* To collect data for the past 24 hours, use the following command: ++ +[source,terminal] +---- +$ oc adm must-gather --image=registry.redhat.io/rhmtc/openshift-migration-must-gather-rhel8:v1.7 -- /usr/bin/gather_metrics_dump +---- ++ +This operation can take a long time. This command saves the data as the `must-gather/metrics/prom_data.tar.gz` file. +endif::[] +ifdef::troubleshooting-mtc[] +* To collect data for the past 24 hours, use the following command: + [source,terminal] ---- $ oc adm must-gather --image=registry.redhat.io/rhmtc/openshift-migration-must-gather-rhel8:v1.8 ---- + -The data is saved as `must-gather/must-gather.tar.gz`. You can upload this file to a support case on the link:https://access.redhat.com/[Red Hat Customer Portal]. -* To collect data for the past 24 hours: +This command saves the data as the `must-gather/must-gather.tar.gz` file. You can upload this file to a support case on the link:https://access.redhat.com/[Red Hat Customer Portal]. +* To collect data for the past 24 hours, use the following command: + [source,terminal] ---- $ oc adm must-gather --image=registry.redhat.io/rhmtc/openshift-migration-must-gather-rhel8:v1.8 -- /usr/bin/gather_metrics_dump ---- + -This operation can take a long time. The data is saved as `must-gather/metrics/prom_data.tar.gz`. +This operation can take a long time. This command saves the data as the `must-gather/metrics/prom_data.tar.gz` file. endif::[] ifdef::oadp-troubleshooting[] * Full `must-gather` data collection, including Prometheus metrics: