blob: f01d96417db4e383bee9bc8c24a98223a687003a [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;
'
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