blob: 5789b04133e3a9dff351a3eb256037ce1f1f4117 [file] [log] [blame]
#! /bin/sh
for suffix in 1 2; do
ssh chimera$suffix '
rm -rf /tmp/sim;
mkdir -p /tmp/sim/proc && cat /proc/uptime > /tmp/sim/proc/uptime;
for n in /sys/class/net/*/statistics/*; do
mkdir -p /tmp/sim/$(dirname $n);
test ! -d $n && cat $n > /tmp/sim/$n;
done;
ip -o -d link > /tmp/sim/ip.link.txt;
ip -o addr > /tmp/sim/ip.addr.txt;
presterastats > /tmp/sim/presterastats.json;
for n in adc rxrrc rxslicer dac; do
curl -s http://localhost:8080/api/modem/iq/$n > /tmp/glaukus/$n.json
done
'
ssh chimera$suffix cd / "&&" tar czf - -C / \
config/settings \
etc/platform \
etc/serial \
etc/softwaredate \
etc/version \
tmp/glaukus \
tmp/serial \
tmp/ssl \
tmp/platform \
tmp/gpio \
tmp/sim \
> sim$suffix.tgz
done