With the sos utility, you can collect configuration, diagnostic, and troubleshooting data, and give those files to Red Hat Technical Support. An sos report is a common starting point for Red Hat technical support engineers when performing analysis of a service request for {PlatformNameShort}.
You can collect an sos report for each host in your containerized {PlatformNameShort} deployment by running the log_gathering playbook with the appropriate parameters.
-
Go to the {PlatformNameShort} installation directory.
-
Run the
log_gatheringplaybook. This playbook connects to each host in the inventory file, installs thesostool, and generates thesosreport.$ ansible-playbook -i <path_to_inventory_file> ansible.containerized_installer.log_gathering
-
Optional: To define additional parameters, specify them with the
-eoption. For example:$ ansible-playbook -i <path_to_inventory_file> ansible.containerized_installer.log_gathering -e 'target_sos_directory=<path_to_files>' -e 'case_number=0000000' -e 'clean=true' -e 'upload=true' -s
-
You can use the
-soption to step through each task in the playbook and confirm its execution. This is optional but can be helpful for debugging. -
The following is a list of the parameters you can use with the
log_gatheringplaybook:Table 1. Parameter reference Parameter name Description Default target_sos_directoryUsed to change the default location for the
sosreport files./tmpdirectory of the current server.case_numberSpecifies the support case number if relevant to the log gathering.
cleanObfuscates sensitive data that might be present on the
sosreport.falseuploadAutomatically uploads the
sosreport data to Red Hat.false
-
-
Gather the
sosreport files described in the playbook output and share them with the support engineer or directly upload thesosreport to Red Hat using theupload=trueadditional parameter.