[adm5120] fix support for 2.6.38 kernel
[openwrt.git] / package / soloscli / files / solos-log-stats
1 #!/bin/sh
2
3 cd /sys/class/atm/ || exit 1
4
5 for PORT in solos-pci* ; do
6
7 RXRATE=`cat $PORT/parameters/RxBitRate`
8 TXRATE=`cat $PORT/parameters/TxBitRate`
9 RXSNR=`cat $PORT/parameters/LocalSNRMargin | sed "s/ dB//"`
10 TXSNR=`cat $PORT/parameters/RemoteSNRMargin | sed "s/ dB//"`
11 RXERR=`cat $PORT/parameters/RSUnCorrectedErrorsDn`
12 TXERR=`cat $PORT/parameters/RSUnCorrectedErrorsUp`
13 RXFEC=`cat $PORT/parameters/RSCorrectedErrorsDn`
14 TXFEC=`cat $PORT/parameters/RSCorrectedErrorsUp`
15
16 echo "$RXRATE $RXSNR $RXERR $RXFEC / $TXRATE $TXSNR $TXERR $TXFEC" |
17 logger -t $PORT
18 done
19
This page took 0.048082 seconds and 5 git commands to generate.