Make sure LiteCel Amp is OFF
This commit is contained in:
parent
385a625bbc
commit
9e5c09cb80
2 changed files with 14 additions and 3 deletions
|
@ -3,9 +3,9 @@ RHIZO_SCRIPT="/home/rhizomatica/bin"
|
|||
. $RHIZO_SCRIPT/vars.sh
|
||||
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
|
||||
logc "Amplifier is OFF! Turn on amp"
|
||||
$RHIZO_SCRIPT/turn_on_amplifier.sh >/dev/null 2>&1
|
||||
logc "Amplifier is ON! Turn off amp"
|
||||
$RHIZO_SCRIPT/turn_off_amplifier.sh >/dev/null 2>&1
|
||||
logc 'Procedure completed'
|
||||
fi
|
||||
|
|
11
modules/rhizo_base/files/bin/turn_off_amplifier.sh
Executable file
11
modules/rhizo_base/files/bin/turn_off_amplifier.sh
Executable 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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue