The past couple of weeks I have been working on developing several Network testing scripts,<br>that make testing a more pleasant experience!<br><br>The scripts collect and display information about <br>the network configuration, telepathies and their status, the neighbor XOs and the forwarding tables <br>
<br>For details have a look at <br><a href="http://wiki.laptop.org/go/Network_Resources">http://wiki.laptop.org/go/Network_Resources<br></a>(I created this page to group general Network info, including important Wiki pages, scripts, bugs etc... but now the scripts use 90% of the page!)<br>
<br>a short overview:<br><br><b>olpc-connections</b>:  Tracks any change in msh0/eth0, dns, Telepathy status, jabber, num of XOs in the neighborhood.<br><br><b>olpc-xos</b> <b>-avahi</b>: Displays the XOs currently seen by Avahi. You may also run it continously with <b>-c</b>. Then it will continuously scan for changes, and display the list with a timestamp when a change is identified.action usb<br>
<br><b>olpc-xos -sugar</b>: The same as above, but for the sugar XOs. It works with salut and gabble.<br>(Note that sometimes avahi and salut show different XOs)<br><br>** When running a test that involves collaboration, it is very useful to have the above scripts run at boot and log to a file.<br>
All changes are timestamped so you can track down bugs much easier<br><br><b>olpc-mesh</b>: It collects data from the firmware ioctls, and displays the complete forwarding in a readable manner.<br>It may also replace the MAC address with the correspondig Nick name if you have a mac-nick table.<br>
You may create this table from the neighbor XOs with <b>olpc-xos -mac</b>, which was written for this purpose.<br><br><b>sugar-xos</b><b>: </b>(This was written by Guillaume in Python) It displays a list of the sugar XOs. <br>
It is separate so it can be used as a library from olpc-xos, olpc-connections and olpc-netstatus.<br>The reason it is split from olpc-xos is that the latter does more processing(tracks changes), and also works for Avahi,<br>
*and* also because the former is written in python, which I know very little of!<br>So i used the first as an input to the second..(perhaps i will clean this in the future)<br><br><b>sugar-telepathies</b>: (Thanks Daf for your help!)This lists the presenceservice Telepathies and is used as a library <br>
from olpc-connections and olpc-netstatus<br><br><br><br>Also, I updated the olpc-netstatus and olpc-netlog:<br><br><b>olpc-netstatus</b>: (Old versions are on our build several months now). <br>This tool collects several network info and other info like build, libertas etc.<br>
It determines which configuration you are connected to(Simple Wifi, School WIfi, Simple Mesh, School Mesh)<br>checks which Telepathy is currently active, and whether there is connection to Jabber.<br>new stuff:<br>*checks if a school is present<br>
*reads the Telepathies from Dbus(not the ps list), displays their status<br>*shows uptime<br>*shows num of XOs connected<br><br><b>olpc-log</b>: (it was previously named as olpc-netlog, and was also present in our builds long time now)<br>
It gathers all possible logs(messages, activities, dmesg, etc..) and stores them to a tarball named by S/N and timestamp.<br>It also collects several files and the output of network commands like i[f|w]config, route, olpc-nestatus etc<br>
For complete list of stuff logged check olpc-log --help(olpc-<b>net</b>log --help, for older versions)<br>new stuff:<br>*includes config file <br>*includes progress bar(sometimes it might take even 1min)<br><br>With the help of Michael, the scripts will be shortly available in the next joyride.<br>
<br>I would also highly recommend that olpc-connections to be logging by default at startup(when debug logs are enabled)<br><br>Waiting for any recommendations/feedback<br><br>yanni<br><br><br><br>