1
0

solos-log-stats 606 B

12345678910111213141516171819
  1. #!/bin/sh
  2. cd /sys/class/atm/ || exit 1
  3. for PORT in solos-pci* ; do
  4. RXRATE=`cat $PORT/parameters/RxBitRate`
  5. TXRATE=`cat $PORT/parameters/TxBitRate`
  6. RXSNR=`cat $PORT/parameters/LocalSNRMargin | sed "s/ dB//"`
  7. TXSNR=`cat $PORT/parameters/RemoteSNRMargin | sed "s/ dB//"`
  8. RXERR=`cat $PORT/parameters/RSUnCorrectedErrorsDn`
  9. TXERR=`cat $PORT/parameters/RSUnCorrectedErrorsUp`
  10. RXFEC=`cat $PORT/parameters/RSCorrectedErrorsDn`
  11. TXFEC=`cat $PORT/parameters/RSCorrectedErrorsUp`
  12. echo "$RXRATE $RXSNR $RXERR $RXFEC / $TXRATE $TXSNR $TXERR $TXFEC" |
  13. logger -t $PORT
  14. done