什么是支持包?
如何生成支持包
支持包存储在哪里?
如何验证支持包生成是否已开始
如何验证支持包生成是否已完成
如何从交换机检索支持包
删除现有支持包
支持包基于 sosreport 工具。支持包会生成一个 tar 文件,其中包括 Linux 系统配置和诊断信息以及 show 命令输出。戴尔技术支持工程师需要支持包才能进行详细分析。
在 EXEC 模式下运行以下命令:
OS10# generate support-bundle
OS10# generate support-bundle enable-all-plugin-options
如果您在执行命令后没有看到支持包立即生成,请勿尝试生成另一个支持包。生成支持包需要一些时间(可能超过 15 分钟)。
支持包存储在 supportbundle 目录中。要查看内容,请使用以下命令:
OS10# dir supportbundle
输出示例:
OS10# dir supportbundle Directory contents for folder: supportbundle Date (modified) Size (bytes) Name --------------------- ------------ ------------------------------------------ 2020-01-12T19:34:21Z 8070044 sosreport-OS10-20200112193142.tar.xz 2020-01-12T19:34:27Z 33 sosreport-OS10-20200112193142.tar.xz.md5
在生成支持包的过程中,我们会看到 supportbundle 目录中生成随机文件。您必须等到生成过程完成。
输出示例
OS10# dir supportbundle Directory contents for folder: supportbundle Date (modified) Size (bytes) Name --------------------- ------------ ------------------------------------------ 2020-01-13T09:17:12Z 3932160 _proc_sys.tar <<<This is not the complete file. This files size increases during support bundle generation.
日志记录
当支持包生成开始时,系统会记录它。
输出示例
OS10# show logging log-file | grep "SUPPORT_BUNDLE_STARTED" <165>1 2020-01-12T19:31:11.808623+00:00 OS10 dn_svc_sw 832 - - Node.1-Unit.1:PRI [event], Dell EMC (OS10) %SUPPORT_BUNDLE_STARTED: generate support-bundle execution has started successfully:All Plugin options enabled
在生成支持包后,support bundle 目录中会有两个文件;一个是支持包文件,另一个是带 md5 扩展名的文件。该 md5 文件是用于验证支持包文件完整性的校验和文件。请将这两个文件发送给技术支持人员。
输出示例
OS10# dir supportbundle Directory contents for folder: supportbundle Date (modified) Size (bytes) Name --------------------- ------------ ------------------------------------------ 2020-01-12T19:34:21Z 8070044 sosreport-OS10-20200112193142.tar.xz <<<Support bundle file 2020-01-12T19:34:27Z 33 sosreport-OS10-20200112193142.tar.xz.md5 <<<Md5 checksum file
在上面的示例中,sosreport-OS10-20200112193142.tar.xz 是支持包文件,sosreport-OS10-20200112193142.tar.xz.md5 是其 md5 校验和文件。
日志记录
当支持包生成完成时,系统会记录它。
输出示例
OS10# show logging log-file | grep "BUNDLE_COMPLETED" <165>1 2020-01-12T19:34:27.831211+00:00 OS10 dn_svc_sw 832 - - Node.1-Unit.1:PRI [event], Dell EMC (OS10) %SUPPORT_BUNDLE_COMPLETED: generate support-bundle execution has completed successfully:All Plugin options enabled
您可以使用 ftp、http、https、scp、sftp、tftp 或 usb 收集支持包,也可以使用系统 bash 将支持包 scp 到机架中的本地节点,以便通过 WinSCP 进行下载。
在交换机提示符处使用以下命令:
OS10# copy supportbundle://sosreport-OS10- file-number.tar.xz XXXX://server-address/path commands
其中 XXXX = ftp、http、https、scp、sftp 或 tftp。如果您使用的是 USB,请将其格式化为 FAT32 格式。
输出示例
OS10#copy supportbundle://sosreport-OS10-20200112193142.tar.xz tftp://10.0.0.0.1/sosreport-OS10-20200112193142.tar.xz
对于系统 bash,使用以下命令:
system bash
ls -ltrh /var/opt/dell/os10/support_bundle/bundle/
sudo scp /var/opt/dell/os10/support_bundle/bundle/sosreport* <user>@<node IP>:/target/dir
输出示例
OS10# system bash admin@OS10:~$ ls -ltrh /var/opt/dell/os10/support_bundle/bundle/ total 12M -rw------- 1 root root 12M Nov 6 19:47 sosreport-os10-20241106194507.tar.xz -rw-r--r-- 1 root root 33 Nov 6 19:47 sosreport-os10-20241106194507.tar.xz.md5 admin@OS10:~$ sudo scp /var/opt/dell/os10/support_bundle/bundle/sosreport* admin@192.168.219.5:/home/admin [sudo] password for admin: The authenticity of host '192.168.219.5 (192.168.219.5)' can't be established. ED25519 key fingerprint is SHA256:SObGGFqgOZ4nY8np1sYvobZAHw2F96Goi7rdzHS+jQU. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.219.5' (ED25519) to the list of known hosts. Password: sosreport-os10-20241106194507.tar.xz 100% 12MB 1.6MB/s 00:07 sosreport-os10-20241106194507.tar.xz.md5 100% 33 4.1KB/s 00:00
支持包可能会占用交换机存储中的一些空间。因此,在检索到支持包后,您可以将其删除。使用以下命令:
OS10# delete supportbundle://sosreport- filename.tar.extention
输出示例
OS10#delete supportbundle://sosreport-OS10-20200112193142.tar.xz