MikroTik Solutions

Artifact [53565ca9b6]
Login

Artifact [53565ca9b6]

Artifact 53565ca9b62f80ec1885ca60f5509811758760fc4fefa8c78f281a15eb025c7c:


#!/bin/bash
rsc=$(dirname "$(readlink -f "$0")")/../scripts/$(basename "$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