Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Tool for recording wireless values
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ASID
Apprentice
Apprentice


Joined: 22 Mar 2006
Posts: 195

PostPosted: Wed Feb 06, 2008 10:53 am    Post subject: Tool for recording wireless values Reply with quote

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
View user's profile Send private message
mottmar
Tux's lil' helper
Tux's lil' helper


Joined: 13 Nov 2005
Posts: 103
Location: Genoa, Italy

PostPosted: Thu Feb 07, 2008 10:21 am    Post subject: RE: Tool for recording wireless values Reply with quote

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
View user's profile Send private message
ASID
Apprentice
Apprentice


Joined: 22 Mar 2006
Posts: 195

PostPosted: Thu Feb 07, 2008 12:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
mottmar
Tux's lil' helper
Tux's lil' helper


Joined: 13 Nov 2005
Posts: 103
Location: Genoa, Italy

PostPosted: Thu Feb 07, 2008 1:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum