Logging apps
wifi-scan
Bash script for running iwlist on your wifi card: <bash>
- !/bin/sh
touch /mnt/mmc/msp-data/mac.log
echo '------------------------------------' >> /mnt/mmc/msp-data/mac.log date >> /mnt/mmc/msp-data/mac.log
- iwlist wlan0 scanning | grep 'Address: ' >> /mnt/mmc/msp-data/mac.log
iwlist wlan0 scanning | grep -A 1 'Address: ' >> /mnt/mmc/msp-data/mac.log
</bash> Which outputs something similar to:
------------------------------------ Sun Feb 11 11:11:28 PST 2007 Cell 01 - Address: 00:0F:24:DC:B9:20 ESSID:"UniversityOfWashingtonCSE" -- Cell 02 - Address: 00:0F:24:DC:B7:D0 ESSID:"UniversityOfWashingtonCSE" -- Cell 03 - Address: 00:0F:34:9C:FF:10 ESSID:"UniversityOfWashingtonCSE" -- Cell 04 - Address: 00:0F:34:72:4C:90 ESSID:"UniversityOfWashingtonCSE" -- Cell 05 - Address: 00:0F:24:DE:10:E0 ESSID:"UniversityOfWashingtonCSE" -- Cell 06 - Address: 00:0F:34:9C:FE:80 ESSID:"UniversityOfWashingtonCSE" -- Cell 07 - Address: 00:0F:34:9D:05:C0 ESSID:"UniversityOfWashingtonCSE" -- Cell 08 - Address: 00:0F:34:9C:FE:70 ESSID:"UniversityOfWashingtonCSE" -- Cell 09 - Address: 00:0F:24:DC:B7:70 ESSID:"UniversityOfWashingtonCSE"
wifi-bt-scanner (obsolete)
<bash>
- !/bin/sh
touch /data/mac.log
while true; do until date | grep ':00 ' > /dev/null; do sleep 1 done
echo '------------------------------------' >> /data/mac.log date >> /data/mac.log
iwlist wlan0 scanning | grep 'Address: ' >> /data/mac.log hcitool inq >> /data/mac.log done </bash>
service-pinger
- uwar/subversion/ubicomp07/service-pinger
Given a network interface checks if there is network access (by requesting a Karl web page).
service-logger
- uwar/subversion/ubicomp07/service-logger
Bluetooth scanner (bt.log) and checks for GPRS availability (log.txt)