Skip to content

Commit

Permalink
collect-info.sh: collect usb info
Browse files Browse the repository at this point in the history
collect info about usb devices to help debugging

Signed-off-by: Christoph Ostarek <[email protected]>
  • Loading branch information
christoph-zededa authored and eriknordmark committed Nov 11, 2023
1 parent 53e2d24 commit a56aac0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkg/debug/scripts/collect-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#

# Script version, don't forget to bump up once something is changed
VERSION=10
VERSION=11

# Add required packages here, it will be passed to "apk add".
# Once something added here don't forget to add the same package
Expand Down Expand Up @@ -225,6 +225,13 @@ echo "- lsusb, dmesg, ps, lspci, lsblk, lshw, lsof, lsmod, logread, dmidecode, l
chroot /hostfs lsusb -vvv > "$DIR/lsusb-vvv"
chroot /hostfs lsusb -vvv -t > "$DIR/lsusb-vvv-t"

{
find /sys/devices/ -path '*/usb[0-9]/*' -name "uevent" -exec awk '{print FILENAME ":" $0}' {} \;
find /sys/devices/ -path '*/usb[0-9]/*' -name "product" -exec awk '{print FILENAME ":" $0}' {} \;
echo "ls -l /sys/class/net/"
ls -l /sys/class/net/
} > "$DIR/sys-fs-usb"

dmesg > "$DIR/dmesg"
ps -xao uid,pid,ppid,vsz,rss,c,pcpu,pmem,stime,tname,stat,time,cmd \
> "$DIR/ps-xao"
Expand Down

0 comments on commit a56aac0

Please sign in to comment.