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 <gree...@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@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 <gree...@candelatech.com> > Candela Technologies Inc http://www.candelatech.com > > > _______________________________________________ > Lede-dev mailing list > Lede-dev@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/lede-dev _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev