#!/bin/bash
rsc=$(dirname "$(readlink -f "$0")")/../scripts/$0.rsc
first=1
for r in routerA routerB
do
    scp -q "$rsc" $r:
    if [ -z "$first" ]
    then
        echo -e "\n---------------------------------------------------------\n"
    fi
    echo "On $r:"
    ssh $r "/import poe-status.rsc"
    unset first
done
