I run this from cron. With remote syslog enabled, this means I have a record of ADSL line quality variation — which is useful when diagnosing and reporting faults. Signed-off-by: David Woodhouse <dwmw2@infradead.org> SVN-Revision: 31136master
parent
9813679235
commit
433a8d39da
@ -0,0 +1,19 @@ |
||||
#!/bin/sh |
||||
|
||||
cd /sys/class/atm/ || exit 1 |
||||
|
||||
for PORT in solos-pci* ; do |
||||
|
||||
RXRATE=`cat $PORT/parameters/RxBitRate` |
||||
TXRATE=`cat $PORT/parameters/TxBitRate` |
||||
RXSNR=`cat $PORT/parameters/LocalSNRMargin | sed "s/ dB//"` |
||||
TXSNR=`cat $PORT/parameters/RemoteSNRMargin | sed "s/ dB//"` |
||||
RXERR=`cat $PORT/parameters/RSUnCorrectedErrorsDn` |
||||
TXERR=`cat $PORT/parameters/RSUnCorrectedErrorsUp` |
||||
RXFEC=`cat $PORT/parameters/RSCorrectedErrorsDn` |
||||
TXFEC=`cat $PORT/parameters/RSCorrectedErrorsUp` |
||||
|
||||
echo "$RXRATE $RXSNR $RXERR $RXFEC / $TXRATE $TXSNR $TXERR $TXFEC" | |
||||
logger -t $PORT |
||||
done |
||||
|
Loading…
Reference in new issue