Make sure LiteCel Amp is OFF

This commit is contained in:
Wile E. Coyote 2018-02-10 19:47:01 +00:00
parent 385a625bbc
commit 9e5c09cb80
2 changed files with 14 additions and 3 deletions

View file

@ -3,9 +3,9 @@ RHIZO_SCRIPT="/home/rhizomatica/bin"
. $RHIZO_SCRIPT/vars.sh . $RHIZO_SCRIPT/vars.sh
LOGFILE="/var/log/monitor_amp.log" LOGFILE="/var/log/monitor_amp.log"
$RHIZO_SCRIPT/check_amp_status.sh | grep -q OFF $RHIZO_SCRIPT/check_amp_status.sh | grep -q ON
if [ $? == 0 ]; then if [ $? == 0 ]; then
logc "Amplifier is OFF! Turn on amp" logc "Amplifier is ON! Turn off amp"
$RHIZO_SCRIPT/turn_on_amplifier.sh >/dev/null 2>&1 $RHIZO_SCRIPT/turn_off_amplifier.sh >/dev/null 2>&1
logc 'Procedure completed' logc 'Procedure completed'
fi fi

View file

@ -0,0 +1,11 @@
#!/bin/bash
# Turn on AMP on all BTS, from BTS1 to BTS3
RHIZO_SCRIPT="/home/rhizomatica/bin"
. $RHIZO_SCRIPT/vars.sh
LOGFILE="/var/log/monitor_amp.log"
for bts in $BTS1 $BTS2 $BTS3; do
logc "Turning off AMP on BTS $bts:";
ssh root@$bts "sbts2050-util sbts2050-pwr-enable 1 1 0";
done