projects
/
grml-hwinfo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Provide information to user if sysdump might be hanging
[grml-hwinfo.git]
/
grml-hwinfo
diff --git
a/grml-hwinfo
b/grml-hwinfo
index
06ef4e5
..
b5329b3
100755
(executable)
--- a/
grml-hwinfo
+++ b/
grml-hwinfo
@@
-211,10
+211,23
@@
cd "${OUTDIR}" || exit 1
# proc stuff
for i in cpuinfo interrupts cmdline devices dma fb iomem ioports \
# proc stuff
for i in cpuinfo interrupts cmdline devices dma fb iomem ioports \
- mdstat meminfo modules mtrr pci version ; do
+ mdstat meminfo modules mtrr pci
uptime
version ; do
[ -r /proc/$i ] && cat /proc/$i > proc_$i
done
[ -r /proc/$i ] && cat /proc/$i > proc_$i
done
+
+ if ! $_opt_quiet ; then
+ echo "Starting sysdump..."
+ echo " NOTE: if it seems to be hanging at this stage file a bug report with output of:"
+ echo " lsof -p \$(pgrep -f "\$\(which sysdump\)")"
+ fi
exectest sysdump && sysdump > ./sysdump 2>./sysdump.error
exectest sysdump && sysdump > ./sysdump 2>./sysdump.error
+ if ! $_opt_quiet ; then
+ echo "Execution of sysdump finished."
+ fi
+
+ exectest cpuid && cpuid > ./cpuid 2>./cpuid.error
+
+ exectest uptime && uptime > ./uptime 2>./uptime.error
# log
dmesg > dmesg.cur
# log
dmesg > dmesg.cur
@@
-225,6
+238,7
@@
cd "${OUTDIR}" || exit 1
exectest numactl && numactl --hardware > ./numactl
exectest x86info && x86info > ./x86info 2>./x86info.error
exectest lscpu && lscpu > ./lscpu
exectest numactl && numactl --hardware > ./numactl
exectest x86info && x86info > ./x86info 2>./x86info.error
exectest lscpu && lscpu > ./lscpu
+ exectest lscpu && lscpu -e > ./lscpu_extended
# EFI
exectest efibootmgr && efibootmgr -v > efibootmgr
# EFI
exectest efibootmgr && efibootmgr -v > efibootmgr
@@
-241,6
+255,7
@@
cd "${OUTDIR}" || exit 1
exectest ip && ip mroute show > ip_mroute
exectest ip && ip mrule show > ip_mrule 2>ip_mrule.error
exectest ip && ip neigh show > ip_neigh
exectest ip && ip mroute show > ip_mroute
exectest ip && ip mrule show > ip_mrule 2>ip_mrule.error
exectest ip && ip neigh show > ip_neigh
+ exectest ip && ip netconf > ip_netconf
exectest ip && ip netns list > ip_netns
exectest ip && ip ntable show > ip_ntable
exectest ip && ip route show > ip_route
exectest ip && ip netns list > ip_netns
exectest ip && ip ntable show > ip_ntable
exectest ip && ip route show > ip_route
@@
-338,6
+353,10
@@
cd "${OUTDIR}" || exit 1
acpidump > ./acpidump 2>./acpidump.error
fi
acpidump > ./acpidump 2>./acpidump.error
fi
+ if exectest mokutil ; then
+ mokutil --sb-state > ./mokutil_state 2>./mokutil_state.error
+ fi
+
# proxmox
exectest qm && qm list > ./qm 2>./qm.error
# libvirt
# proxmox
exectest qm && qm list > ./qm 2>./qm.error
# libvirt