设为首页 - 加入收藏 ASP站长网(Aspzz.Cn)- 科技、建站、经验、云计算、5G、大数据,站长网!
热搜: 手机 数据 公司
当前位置: 首页 > 服务器 > 搭建环境 > Windows > 正文

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

发布时间:2019-05-24 10:26 所属栏目:117 来源:Magesh Maruthamuthu
导读:要查看添加的磁盘信息,请使用 -d 和 -disks 开关运行 xsos 。 # xsos --disks /var/tmp/sosreport-CentOS7-01-1005-2019-05-12-pomeqsa STORAGE Whole Disks from /proc/partitions: 2 disks, totaling 40 GiB (0.

要查看添加的磁盘信息,请使用 -d-disks 开关运行 xsos

  1. # xsos --disks /var/tmp/sosreport-CentOS7-01-1005-2019-05-12-pomeqsa
  2. STORAGE
  3. Whole Disks from /proc/partitions:
  4. 2 disks, totaling 40 GiB (0.04 TiB)
  5. - - - - - - - - - - - - - - - - - - - - -
  6. Disk Size in GiB
  7. ---- -----------
  8. sda 30
  9. sdb 10

要查看网络接口配置,请使用 -e--ethtool 开关运行 xsos

  1. # xsos --ethtool /var/tmp/sosreport-CentOS7-01-1005-2019-05-12-pomeqsa
  2. ETHTOOL
  3. Interface Status:
  4. enp0s10 0000:00:0a.0 link=up 1000Mb/s full (autoneg=Y) rx ring 256/4096 drv e1000 v7.3.21-k8-NAPI / fw UNKNOWN
  5. enp0s9 0000:00:09.0 link=up 1000Mb/s full (autoneg=Y) rx ring 256/4096 drv e1000 v7.3.21-k8-NAPI / fw UNKNOWN
  6. virbr0 N/A link=DOWN rx ring UNKNOWN drv bridge v2.3 / fw N/A
  7. virbr0-nic tap link=DOWN rx ring UNKNOWN drv tun v1.6 / fw UNKNOWN

要查看有关 IP 地址的信息,请使用 -i--ip 开关运行 xsos

  1. # xsos --ip /var/tmp/sosreport-CentOS7-01-1005-2019-05-12-pomeqsa
  2. IP4
  3. Interface Master IF MAC Address MTU State IPv4 Address
  4. ========= ========= ================= ====== ===== ==================
  5. lo - - 65536 up 127.0.0.1/8
  6. enp0s9 - 08:00:27:0b:bc:e9 1500 up 192.168.1.8/24
  7. enp0s10 - 08:00:27:b2:08:91 1500 up 192.168.1.9/24
  8. virbr0 - 52:54:00:ae:01:94 1500 up 192.168.122.1/24
  9. virbr0-nic virbr0 52:54:00:ae:01:94 1500 DOWN -
  10.  
  11. IP6
  12. Interface Master IF MAC Address MTU State IPv6 Address Scope
  13. ========= ========= ================= ====== ===== =========================================== =====
  14. lo - - 65536 up ::1/128 host
  15. enp0s9 - 08:00:27:0b:bc:e9 1500 up fe80::945b:8333:f4bc:9723/64 link
  16. enp0s10 - 08:00:27:b2:08:91 1500 up fe80::7ed4:1fab:23c3:3790/64 link
  17. virbr0 - 52:54:00:ae:01:94 1500 up - -
  18. virbr0-nic virbr0 52:54:00:ae:01:94 1500 DOWN - -

要通过 ps 查看正在运行的进程,请使用 -p--ps 开关运行 xsos

  1. # xsos --ps /var/tmp/sosreport-CentOS7-01-1005-2019-05-12-pomeqsa
  2. PS CHECK
  3. Total number of threads/processes:
  4. 501 / 171
  5. Top users of CPU & MEM:
  6. USER %CPU %MEM RSS
  7. root 20.6% 14.1% 0.30 GiB
  8. gdm 0.3% 16.8% 0.33 GiB
  9. postfix 0.0% 0.6% 0.01 GiB
  10. polkitd 0.0% 0.6% 0.01 GiB
  11. daygeek 0.0% 0.2% 0.00 GiB
  12. colord 0.0% 0.4% 0.01 GiB
  13. Uninteruptible sleep threads/processes (0/0):
  14. [None]
  15. Defunct zombie threads/processes (0/0):
  16. [None]
  17. Top CPU-using processes:
  18. USER PID %CPU %MEM VSZ-MiB RSS-MiB TTY STAT START TIME COMMAND
  19. root 6542 15.6 4.2 875 78 pts/0 Sl+ 10:11 0:07 /usr/bin/python /sbin/sosreport
  20. root 7582 3.0 0.1 10 2 pts/0 S 10:12 0:00 /bin/bash /usr/sbin/dracut --print-cmdline
  21. root 7969 0.7 0.1 95 4 ? Ss 10:12 0:00 /usr/sbin/certmonger -S -p
  22. root 7889 0.4 0.2 24 4 ? Ss 10:12 0:00 /usr/lib/systemd/systemd-hostnamed
  23. gdm 3866 0.3 7.1 2856 131 ? Sl 09:50 0:04 /usr/bin/gnome-shell
  24. root 8553 0.2 0.1 47 3 ? S 10:12 0:00 /usr/lib/systemd/systemd-udevd
  25. root 6971 0.2 0.4 342 9 ? Sl 10:12 0:00 /usr/sbin/abrt-dbus -t133
  26. root 3200 0.2 0.9 982 18 ? Ssl 09:50 0:02 /usr/sbin/libvirtd
  27. root 2855 0.1 0.1 88 3 ? Ss 09:50 0:01 /sbin/rngd -f
  28. rtkit 2826 0.0 0.0 194 2 ? SNsl 09:50 0:00 /usr/libexec/rtkit-daemon
  29. Top MEM-using processes:
  30. USER PID %CPU %MEM VSZ-MiB RSS-MiB TTY STAT START TIME COMMAND
  31. gdm 3866 0.3 7.1 2856 131 ? Sl 09:50 0:04 /usr/bin/gnome-shell
  32. root 6542 15.6 4.2 875 78 pts/0 Sl+ 10:11 0:07 /usr/bin/python /sbin/sosreport
  33. root 3264 0.0 1.2 271 23 tty1 Ssl+ 09:50 0:00 /usr/bin/X :0 -background
  34. root 3200 0.2 0.9 982 18 ? Ssl 09:50 0:02 /usr/sbin/libvirtd
  35. root 3189 0.0 0.9 560 17 ? Ssl 09:50 0:00 /usr/bin/python2 -Es /usr/sbin/tuned
  36. gdm 4072 0.0 0.9 988 17 ? Sl 09:50 0:00 /usr/libexec/gsd-media-keys
  37. gdm 4076 0.0 0.8 625 16 ? Sl 09:50 0:00 /usr/libexec/gsd-power
  38. gdm 4056 0.0 0.8 697 16 ? Sl 09:50 0:00 /usr/libexec/gsd-color
  39. root 2853 0.0 0.7 622 14 ? Ssl 09:50 0:00 /usr/sbin/NetworkManager --no-daemon
  40. gdm 4110 0.0 0.7 544 14 ? Sl 09:50 0:00 /usr/libexec/gsd-wacom
  41. Top thread-spawning processes:
  42. # USER PID %CPU %MEM VSZ-MiB RSS-MiB TTY STAT START TIME COMMAND
  43. 17 root 3200 0.2 0.9 982 18 ? - 09:50 0:02 /usr/sbin/libvirtd
  44. 12 root 6542 16.1 4.5 876 83 pts/0 - 10:11 0:07 /usr/bin/python /sbin/sosreport
  45. 10 gdm 3866 0.3 7.1 2856 131 ? - 09:50 0:04 /usr/bin/gnome-shell
  46. 7 polkitd 2864 0.0 0.6 602 13 ? - 09:50 0:01 /usr/lib/polkit-1/polkitd --no-debug
  47. 6 root 2865 0.0 0.0 203 1 ? - 09:50 0:00 /usr/sbin/gssproxy -D
  48. 5 root 3189 0.0 0.9 560 17 ? - 09:50 0:00 /usr/bin/python2 -Es /usr/sbin/tuned
  49. 5 root 2823 0.0 0.3 443 6 ? - 09:50 0:00 /usr/libexec/udisks2/udisksd
  50. 5 gdm 4102 0.0 0.2 461 5 ? - 09:50 0:00 /usr/libexec/gsd-smartcard
  51. 4 root 3215 0.0 0.2 470 4 ? - 09:50 0:00 /usr/sbin/gdm
  52. 4 gdm 4106 0.0 0.2 444 5 ? - 09:50 0:00 /usr/libexec/gsd-sound

(编辑:ASP站长网)

网友评论
推荐文章
    热点阅读