View previous topic :: View next topic |
Author |
Message |
ASID Apprentice
Joined: 22 Mar 2006 Posts: 195
|
Posted: Wed Feb 06, 2008 10:53 am Post subject: Tool for recording wireless values |
|
|
Does anyone know any tool that is able to record values from the wireless interface?
For example, I want to record the signal level (dbm) of my card for one day. This information is available with the iwconfig, but I cannot store these values.
Is there a tool available to keep this kind of statistics? |
|
Back to top |
|
|
mottmar Tux's lil' helper
Joined: 13 Nov 2005 Posts: 103 Location: Genoa, Italy
|
Posted: Thu Feb 07, 2008 10:21 am Post subject: RE: Tool for recording wireless values |
|
|
I don't know any application to do this...
Well, if you just want to record one value, you can just write a shell script for this...
for example
while (true); do
echo -n `date +"%F %T"` >> $LOGFILE
echo -n ";" >> $LOGFILE
sudo iwconfig $IFACE 2>/dev/null | sed -n -e '/Signal/p >> $LOGFILE
echo "" >> $LOGFILE
done
this generates a CSV file containing date/time plus the relevant line of iwconfig output...
then you can open this in OOo's Calc or whatever you like and make nice plots :-)
or else use gnuplot to generate them on the fly! _________________ The box said "Requires Windows 95 or better." I can't understand why it won't work on my Linux computer. |
|
Back to top |
|
|
ASID Apprentice
Joined: 22 Mar 2006 Posts: 195
|
Posted: Thu Feb 07, 2008 12:38 pm Post subject: |
|
|
Thanx a lot mottmar!!
I looked around and found a tool called "collectd" which collects various statistics. I tried it but it couldn't record some values that I wanted it to.
So I followed your approach and created a script which does exactly what I want.
Cheers! |
|
Back to top |
|
|
mottmar Tux's lil' helper
Joined: 13 Nov 2005 Posts: 103 Location: Genoa, Italy
|
Posted: Thu Feb 07, 2008 1:44 pm Post subject: |
|
|
I'm happy my suggestion was useful for you! _________________ The box said "Requires Windows 95 or better." I can't understand why it won't work on my Linux computer. |
|
Back to top |
|
|
|