uzbek-plus/b23/b23-view.sh

3 lines
292 B
Bash

#!/bin/sh
# Show the last N observer lines (short form) from the board; works over NCM or Wi-Fi: b23-view.sh [N] [host]
ssh -o ConnectTimeout=10 root@${2:-192.168.77.1} "tail -${1:-10} /tmp/b23-mon.log" | sed -E 's/ (fifo|crt|brt|urt|ctrl|tchg|failed|bd|online|load)=[^ ]*( [0-9a-f]{2})*//g'