Broadband-Hamnet™ Forum :: General
Welcome Guest   [Register]  [Login]
 Subject :Record Mesh Status Page???.. 2015-02-21- 14:44:36 
KE6WEZ
Member
Joined: 2013-12-26- 22:12:13
Posts: 7
Location

Is there a program (or something) that can periodically record the Mesh Status Page information?

I would like to monitor over a period of time just how the LQ of "Current Neighbors" goes up and down.

Especially if we have fog, rain, high winds, etc.

Thanks much.


IP Logged
 Subject :Re:Record Mesh Status Page???.. 2015-02-21- 18:43:58 
KD0ZYF
Member
Joined: 2015-02-18- 15:45:40
Posts: 1
Location
How about wget in a loop?
IP Logged
 Subject :Re:Record Mesh Status Page???.. 2015-02-21- 18:46:34 
kb9mwr
Member
Joined: 2010-10-06- 23:04:25
Posts: 53
Location

No program that I know of. But you can easily script something to make a remote connection and make a local copy of a status screen at regular intervals.

Two key components will be a time based job scheduler called cron. And you can use Lynx a command-line text based web browser to perform a screen dump.

http://en.wikipedia.org/wiki/Cron

http://en.wikipedia.org/wiki/Lynx_%28web_browser%29

Another option is to use an expect script that makes hourly ssh connects and issues the iwconfig command, etc.

IP Logged
Last Edited On: 2015-02-21- 18:47:42 By kb9mwr for the Reason
 Subject :Re:Record Mesh Status Page???.. 2015-02-21- 21:34:21 
ae5ae
Member
Joined: 2010-10-27- 00:47:17
Posts: 144
Location: Van Alstyne, TX

You could use the following line with a loop in a script  or have 'cron' run it directly:

(date; echo '/links' | nc mesh_node 2006 | sed -e '1,5d') >> /tmp/stat.dat

Port 2006 is listened to by 'olsrd' and has some tidbits of info.   Change '/links' to '/all' and run manually to see what is available.   The stat.dat file can later be processed by 'awk' or whatever to extract the data desired. The data captured here is from the same source the mesh status page displays.

    -Rusty-

IP Logged
Page # 


Powered by ccBoard


SPONSORED AD: