MikroTik Solutions

poe-status
Login

poe-status

File bin/poe-status from the latest check-in


#!/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