[LEDE-DEV] Script to gather system info for bug reports and similar.

moeller0 moeller0 at gmx.de
Wed May 11 01:13:26 PDT 2016


Hi Ben,

Richard had created someting similar salready:
https://github.com/richb-hanover/OpenWrtScripts/blob/master/getstats.sh

which we occasionally used to debug/help sqm users with, maybe it contains some useful pointers…

Best Regards
	M.

> On May 10, 2016, at 22:00 , Ben Greear <greearb at candelatech.com> wrote:
> 
> 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
> 
> 
> _______________________________________________
> Lede-dev mailing list
> Lede-dev at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/lede-dev




More information about the Lede-dev mailing list