Coder Social home page Coder Social logo

grml-hwinfo's People

Contributors

formorer avatar jkirk avatar mika avatar mrud avatar richih avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

grml-hwinfo's Issues

grml-hwinfo: Add inxi output

Grml (Full) ships inxi since quite some time now.

Next to the grml-hwinfo output, I usually document the output of inxi -xx -F, which looks something like this:

❯ inxi -xx -Fz 
System:    Kernel: 5.10.0-25-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1 Desktop: LXQt tk: Qt 5.15.2 wm: Openbox dm: LightDM 
           Distro: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Laptop System: LENOVO product: 20KF001GGE v: ThinkPad X280 serial: <filter> Chassis: type: 10 
           serial: <filter> 
           Mobo: LENOVO model: 20KF001GGE v: SDK0J40697 WIN serial: <filter> UEFI: LENOVO v: N20ET64W (1.49 ) date: 11/21/2022 
Battery:   ID-1: BAT0 charge: 44.2 Wh condition: 44.5/48.0 Wh (93%) volts: 12.7/11.5 model: SMP 5B10W13921 serial: <filter> 
           status: Not charging 
CPU:       Info: Quad Core model: Intel Core i7-8550U bits: 64 type: MT MCP arch: Kaby Lake note: check rev: A 
           L1 cache: 256 KiB L2 cache: 8 MiB L3 cache: 7.8 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 31999 
           Speed: 2912 MHz min/max: 400/4000 MHz Core speeds (MHz): 1: 2912 2: 2965 3: 2943 4: 2842 5: 3163 6: 2861 7: 2956 
           8: 3204 
Graphics:  Device-1: Intel UHD Graphics 620 vendor: Lenovo driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:5917 
           Device-2: Chicony Integrated Camera (1280x720@30) type: USB driver: uvcvideo bus ID: 1-8:5 chip ID: 04f2:b604 
           Display: server: X.Org 1.20.11 driver: loaded: modesetting unloaded: fbdev,vesa resolution: 1: 1920x1200~60Hz 
           2: 1920x1200~60Hz s-dpi: 96 
           OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 20.3.5 direct render: Yes 
Audio:     Device-1: Intel Sunrise Point-LP HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
           chip ID: 8086:9d71 
           Device-2: Lenovo ThinkPad Dock USB Audio type: USB driver: hid-generic,snd-usb-audio,usbhid bus ID: 3-1.2.4:31 
           chip ID: 17ef:306f 
           Sound Server: ALSA v: k5.10.0-25-amd64 
Network:   Device-1: Intel Ethernet I219-V vendor: Lenovo driver: e1000e v: kernel port: efa0 bus ID: 00:1f.6 
           chip ID: 8086:15d8 
           IF: enp0s31f6 state: down mac: <filter> 
           Device-2: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel port: efa0 bus ID: 3b:00.0 chip ID: 8086:24fd 
           IF: wlp59s0 state: up mac: <filter> 
           IF-ID-1: br-510c106ac21c state: down mac: <filter> 
           IF-ID-2: br-956e55279926 state: up speed: 10000 Mbps duplex: unknown mac: <filter> 
           IF-ID-3: br-a354d78c59f7 state: up speed: 10000 Mbps duplex: unknown mac: <filter> 
           IF-ID-4: br-be3a309fdb06 state: down mac: <filter> 
           IF-ID-5: docker0 state: up speed: 10000 Mbps duplex: unknown mac: <filter> 
           IF-ID-6: vboxnet0 state: down mac: <filter> 
           IF-ID-7: vboxnet1 state: down mac: <filter> 
           IF-ID-8: vetha9c70bb state: up speed: 10000 Mbps duplex: full mac: <filter> 
           IF-ID-9: vethabcee53 state: up speed: 10000 Mbps duplex: full mac: <filter> 
           IF-ID-10: vethe8ed2bb state: up speed: 10000 Mbps duplex: full mac: <filter> 
           IF-ID-11: wg-hetzner state: unknown speed: N/A duplex: N/A mac: N/A 
           IF-ID-12: wwan0 state: unknown mac: <filter> 
Bluetooth: Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8 bus ID: 1-7:31 chip ID: 8087:0a2b 
           Report: ID: hci0 state: up running pscan bt-v: 2.1 lmp-v: 4.2 sub-v: 100 address: <filter> 
Drives:    Local Storage: total: 596.19 GiB lvm-free: 71.75 GiB used: 390.68 GiB (65.5%) 
           ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLB512HAJQ-000L7 size: 476.94 GiB speed: 31.6 Gb/s lanes: 4 
           serial: <filter> temp: 47 C 
           ID-2: /dev/sda type: USB vendor: Generic model: SD MMC size: 119.25 GiB serial: <filter> 
Partition: ID-1: / size: 21.55 GiB used: 18.95 GiB (87.9%) fs: ext4 dev: /dev/dm-1 mapped: vg0-rootfs 
           ID-2: /boot size: 234.3 MiB used: 88.6 MiB (37.8%) fs: ext2 dev: /dev/nvme0n1p2 
           ID-3: /boot/efi size: 511 MiB used: 12.1 MiB (2.4%) fs: vfat dev: /dev/nvme0n1p1 
           ID-4: /home size: 63.87 GiB used: 62.9 GiB (98.5%) fs: ext4 dev: /dev/dm-2 mapped: vg0-home 
Swap:      ID-1: swap-1 type: partition size: 7.45 GiB used: 2.16 GiB (29.0%) priority: -2 dev: /dev/dm-3 mapped: vg0-swap 
Sensors:   System Temperatures: cpu: 56.5 C mobo: N/A 
           Fan Speeds (RPM): cpu: 3865 
Info:      Processes: 510 Uptime: 24d 17h 35m Memory: 15.39 GiB used: 10.77 GiB (70.0%) Init: systemd v: 247 runlevel: 5 
           Compilers: gcc: 10.2.1 alt: 10 Packages: apt: 3123 Shell: Zsh v: 5.8 running in: server inxi: 3.3.01 

Note, that I added the -z option which "Adds security filters for IP addresses, serial numbers, MAC, location (-w), and user home directory name. Removes Host:.". The option should not be added when running under grml-hwinfo.

It might make sense to use inxi -xx -Fa, which gives a bit more output.

It would be nice to have this included in grml-hwinfo.

sysdump causing grml-hwinfo to hang

Similar to issue #55 sysdump causes grml-hwinfo to hang. But this time on a Sony Vaio VGN-TT11WN. The last lines before sysdump hangs

/sys/kernel/security/apparmor/features/rlimit:
/sys/kernel/security/apparmor/features/rlimit/mask = 'cpu fsize data stack core rss nproc nofile memlock as locks sigpending msgqueue nice rtprio rttime'
/sys/kernel/security/apparmor/features/signal:
/sys/kernel/security/apparmor/features/signal/mask = 'hup int quit ill trap abrt bus fpe kill usr1 segv usr2 pipe alrm term stkflt chld cont stop stp ttin ttou urg xcpu xfsz vtalrm prof winch io pwr sys emt lost'
/sys/kernel/security/apparmor/policy -> apparmorfs:[8322]
/sys/kernel/security/apparmor/profiles = ''

sysdump causing grml-hwinfo to hang

Similar to issue #1 and grml/grml#55 sysdump causes grml-info to hang. This time on a Desktop PC (MSI X99S GAMING 7 (MS-7885) + Intel Core i7-5820K + 16GB).

Currently no time to debug longer, but running sysdump | less (as root) ends up here:

[...]
can't open /sys/devices/virtual/thermal/cooling_device5/stats/reset: 'Permission denied'
can't open /sys/devices/virtual/thermal/cooling_device6/stats/reset: 'Permission denied'
can't open /sys/devices/virtual/thermal/cooling_device7/stats/reset: 'Permission denied'
can't open /sys/devices/virtual/thermal/cooling_device8/stats/reset: 'Permission denied'
can't open /sys/devices/virtual/thermal/cooling_device9/stats/reset: 'Permission denied'
can't open /sys/firmware/efi/vars/del_var: 'Permission denied'
can't open /sys/firmware/efi/vars/new_var: 'Permission denied'
can't open /sys/fs/ext4/dm-0/trigger_fs_error: 'Permission denied'

Pressing CTRL-C once at that point continues sysdump:

/sys:
/sys/block:
/sys/block/dm-0 -> ../devices/virtual/block/dm-0
/sys/block/loop0 -> ../devices/virtual/block/loop0
/sys/block/loop1 -> ../devices/virtual/block/loop1
/sys/block/loop10 -> ../devices/virtual/block/loop10
/sys/block/loop11 -> ../devices/virtual/block/loop11
/sys/block/loop12 -> ../devices/virtual/block/loop12
/sys/block/loop13 -> ../devices/virtual/block/loop13
/sys/block/loop14 -> ../devices/virtual/block/loop14
/sys/block/loop15 -> ../devices/virtual/block/loop15
/sys/block/loop16 -> ../devices/virtual/block/loop16
/sys/block/loop17 -> ../devices/virtual/block/loop17
/sys/block/loop18 -> ../devices/virtual/block/loop18
[...]
/sys/kernel/tracing/per_cpu:
/sys/kernel/tracing/per_cpu/cpu0:
/sys/kernel/tracing/per_cpu/cpu0/buffer_size_kb = '0'
/sys/kernel/tracing/per_cpu/cpu0/snapshot = '# tracer: nop
#
#
# * Snapshot is freed *
#
# Snapshot commands:
# echo 0 > snapshot : Invalid for per_cpu snapshot file.
# echo 1 > snapshot : Allocates snapshot buffer, if not already allocated.
#                      Takes a snapshot of the main buffer for this cpu.
# echo 2 > snapshot : Clears this cpu's snapshot buffer (but does not allocate)
#                      (Doesn't have to be '2' works with any number that
#                       is not a '0' or '1')'

And seems to finish fine then. Hope this gives a clue where to look for the problem.
If you need more infos, please let me know.

grml-hwinfo does not collect partition tables for NVMe disks

grml-hwinfo does not collect partition tables for NVMe disks.

  grml@grml ~ % cat /proc/partitions
  major minor  #blocks  name

   259        0  250059096 nvme0n1
   259        1     510976 nvme0n1p1
   259        2     131072 nvme0n1p2
   259        3  246915072 nvme0n1p3
   259        4    2500608 nvme0n1p4
     8        0  125313283 sda
     8        1  125279488 sda1
     8        2      32768 sda2
   254        0     974080 dm-0
     7        0     893808 loop0

I took the line:

disklist=$(egrep ' etherd/e[[:digit:]]+\.[[:digit:]]+\b| i2o/hd.+\b| cciss/c.+d.+\b| ida/c.+d.+\b| rd/c.+d.+\b| fio.\b| hd.\b| sd[a-z]{1,2}\b|/disc\b| vd.\b| xvd.\b' /proc/partitions | checkdisk)

This lines returns only sda:

  grml@grml ~ % egrep ' etherd/e[[:digit:]]+\.[[:digit:]]+\b| i2o/hd.+\b| cciss/c.+d.+\b| ida/c.+d.+\b| rd/c.+d.+\b| fio.\b| hd.\b| sd[a-z]{1,2}\b|/disc\b| vd.\b| xvd.\b' /proc/partitions
     8        0  125313283 sda

A fix could be:

  grml@grml ~ % egrep ' etherd/e[[:digit:]]+\.[[:digit:]]+\b| i2o/hd.+\b| cciss/c.+d.+\b| ida/c.+d.+\b| rd/c.+d.+\b| fio.\b| hd.\b| sd[a-z]{1,2}\b|/disc\b| vd.\b| xvd.\b| nvme[[:digit:]]+n[[:digit:]]+\b' /proc/partitions
   259        0  250059096 nvme0n1
     8        0  125313283 sda

I find the line hard to read. What about we use something like this?

  % lsblk -nd -d -o NAME -e 7
  sda
  nvme0n1

(The option -e 7 excludes the loop device).

Add `sdparm.error` output

The sdparm error output is missing in grml-hwinfo:

root@grml ~ # sdparm --all --long  /dev/sda > /dev/null
descriptor overflows reply len (12) for AT_LAST.1
descriptor overflows reply len (12) for CDA_UNIT.1
descriptor overflows reply len (12) for CDB_UNIT.1
descriptor overflows reply len (12) for IOA_MODE.1

We should include this output (for whatever it is worth).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.