mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-22 22:29:53 +02:00
4f2090ad48
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33830 3c298f89-4303-0410-b956-a3cf2f4a3e73
20 lines
606 B
Bash
20 lines
606 B
Bash
#!/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
|
|
|