Adding skeleton test file to BTS scripts

This commit is contained in:
Keith Whyte 2020-04-29 03:48:57 +02:00
parent bd8f00a3d0
commit 3becae1f23
2 changed files with 30 additions and 1 deletions

View file

@ -0,0 +1,21 @@
#!/bin/bash
exec 2> /dev/null
SSH_OPTS="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
. /home/rhizomatica/bin/vars.sh
for bts in "${!BTS[@]}" ; do
if [ "$(ssh $SSH_OPTS ${BTS[$bts]} sysmobts-util trx-nr)" == "0" ] ; then
# Master Verified.
echo "BTS $bts is a 2050 Master"
fi
if [ "$(ssh $SSH_OPTS ${BTS[$bts]} sysmobts-util trx-nr)" == "1" ] ; then
# Slave Verified.
echo "BTS $bts is a 2050 Slave"
fi
done