[LEDE-DEV] Script to gather system info for bug reports and similar.
Ben Greear
greearb at candelatech.com
Tue May 10 13:00:48 PDT 2016
Here is an initial pass at a script to gather pertinent info about
a LEDE (or similar) system. Suggestions for improvement are welcome.
If someone could add a way to put the git commit ID(s) into
the file system somewhere, I think that would be an excellent
addition.
And once the script is in place, a way to call it through the web UI would
be most welcome.
[root at ben-dt3 linux-wt.x64]# cat ~/verinfo.sh
#!/bin/sh
echo "System Information"
uname -a
echo
echo "lspci:"
lspci
echo
echo "CPU Info"
cat /proc/cpuinfo
echo
echo "Banner:"
cat /etc/banner
echo
echo "Network Devices:"
ip addr show
echo
echo "Routing information:"
ip route show
echo
echo "Qdisc information:"
tc qdisc show
echo
echo "WiFi Information"
if [ -f /sys/class/net/wlan0/address ]
then
iw dev wlan0 info
fi
if [ -f /sys/class/net/wlan1/address ]
then
iw dev wlan1 info
fi
echo
echo "dmesg output"
dmesg
--
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc http://www.candelatech.com
More information about the Lede-dev
mailing list