加入收藏 | 设为首页 | 会员中心 | 我要投稿 东莞站长网 (https://www.0769zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Windows > 正文

xsos:一个在Linux上阅读SOSReport的工具

发布时间:2019-05-24 17:09:35 所属栏目:Windows 来源:Magesh Maruthamuthu
导读:副标题#e# 我们都已经知道 SOSReport。它用来收集可用于诊断的系统信息。Redhat 的支持服务建议我们在提交案例时提供 SOSReport 来分析当前的系统状态。 它会收集全部类型的报告,以帮助用户找出问题的根本原因。我们可以轻松地提取和阅读 SOSReport,但它

是的,我已经生成了一个 SOSReport,文件如下。

  1. # ls -lls -lh /var/tmp/sosreport-CentOS7-01-1005-2019-05-12-pomeqsa.tar.xz
  2. 9.8M -rw-------. 1 root root 9.8M May 12 10:13 /var/tmp/sosreport-CentOS7-01-1005-2019-05-12-pomeqsa.tar.xz

运行如下命令解开它。

  1. # tar xf sosreport-CentOS7-01-1005-2019-05-12-pomeqsa.tar.xz

要查看全部信息,带上 -a--all 开关运行 xsos

  1. # xsos --all /var/tmp/sosreport-CentOS7-01-1005-2019-05-12-pomeqsa

要查看 BIOS 信息,带上 -b--bios 开关运行 xsos

  1. # xsos --bios /var/tmp/sosreport-CentOS7-01-1005-2019-05-12-pomeqsa
  2. DMIDECODE
  3. BIOS:
  4. Vend: innotek GmbH
  5. Vers: VirtualBox
  6. Date: 12/01/2006
  7. BIOS Rev:
  8. FW Rev:
  9. System:
  10. Mfr: innotek GmbH
  11. Prod: VirtualBox
  12. Vers: 1.2
  13. Ser: 0
  14. UUID: 002f47b8-2af2-48f5-be1d-67b67e03514c
  15. CPU:
  16. 0 of 0 CPU sockets populated, 0 cores/0 threads per CPU
  17. 0 total cores, 0 total threads
  18. Mfr:
  19. Fam:
  20. Freq:
  21. Vers:
  22. Memory:
  23. Total: 0 MiB (0 GiB)
  24. DIMMs: 0 of 0 populated
  25. MaxCapacity: 0 MiB (0 GiB / 0.00 TiB)

要查看系统基本信息,如主机名、发行版、SELinux、内核信息、正常运行时间等,请使用 -o--os 开关运行 xsos

  1. # xsos --os /var/tmp/sosreport-CentOS7-01-1005-2019-05-12-pomeqsa
  2. OS
  3. Hostname: CentOS7.2daygeek.com
  4. Distro: [redhat-release] CentOS Linux release 7.6.1810 (Core)
  5. [centos-release] CentOS Linux release 7.6.1810 (Core)
  6. [os-release] CentOS Linux 7 (Core) 7 (Core)
  7. RHN: (missing)
  8. RHSM: (missing)
  9. YUM: 2 enabled plugins: fastestmirror, langpacks
  10. SELinux: enforcing (default enforcing)
  11. Arch: mach=x86_64 cpu=x86_64 platform=x86_64
  12. Kernel:
  13. Booted kernel: 3.10.0-957.el7.x86_64
  14. GRUB default: 3.10.0-957.el7.x86_64
  15. Build version:
  16. Linux version 3.10.0-957.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red
  17. Hat 4.8.5-36) (GCC) ) #1 SMP Thu Nov 8 23:39:32 UTC 2018
  18. Booted kernel cmdline:
  19. root=/dev/mapper/centos-root ro crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet
  20. LANG=en_US.UTF-8
  21. GRUB default kernel cmdline:
  22. root=/dev/mapper/centos-root ro crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet
  23. LANG=en_US.UTF-8
  24. Taint-check: 536870912 (see https://access.redhat.com/solutions/40594)
  25. 29 TECH_PREVIEW: Technology Preview code is loaded
  26. - - - - - - - - - - - - - - - - - - -
  27. Sys time: Sun May 12 10:12:22 CDT 2019
  28. Boot time: Sun May 12 09:50:20 CDT 2019 (epoch: 1557672620)
  29. Time Zone: America/Chicago
  30. Uptime: 22 min, 1 user
  31. LoadAvg: [1 CPU] 1.19 (119%), 0.27 (27%), 0.14 (14%)
  32. /proc/stat:
  33. procs_running: 8 procs_blocked: 2 processes [Since boot]: 9005
  34. cpu [Utilization since boot]:
  35. us 1%, ni 0%, sys 1%, idle 99%, iowait 0%, irq 0%, sftirq 0%, steal 0%

(编辑:东莞站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!