Still more refactoring on monitor code
This commit is contained in:
parent
925f154b74
commit
7c65394a37
3 changed files with 5 additions and 35 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
# Check for AMP status on each BTS, from BTS1 up to BTS10
|
||||
# Check for AMP status on each BTS, from BTS1 up to BTS3
|
||||
. ./vars.sh
|
||||
for bts in $BTS1 $BTS2 $BTS3 $BTS4 $BTS5 $BTS6 $BTS7 $BTS7 $BTS8 $BTS9 $BTS10; do
|
||||
for bts in $BTS1 $BTS2 $BTS3; do
|
||||
echo "BTS $bts:";
|
||||
ssh root@$bts sbts2050-util sbts2050-pwr-status | grep Amp;
|
||||
done
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#!/bin/bash
|
||||
# Turn on AMP on all BTS, from BTS1 to BTS 10
|
||||
# Turn on AMP on all BTS, from BTS1 to BTS3
|
||||
. ./vars.sh
|
||||
LOGFILE="/var/log/rhizomatica/monitor_amp.log"
|
||||
|
||||
for bts in $BTS1 $BTS2 $BTS3 $BTS4 $BTS5 $BTS6 $BTS7 $BTS7 $BTS8 $BTS9 $BTS10; do
|
||||
logc "Turning on AMP on BTS $bts:"
|
||||
for bts in $BTS1 $BTS2 $BTS3; do
|
||||
logc "Turning on AMP on BTS $bts:";
|
||||
ssh root@$bts "sbts2050-util sbts2050-pwr-enable 1 1 1";
|
||||
done
|
||||
|
|
|
@ -11,41 +11,11 @@ function logc() {
|
|||
<% if @bts1_ip_address %>
|
||||
BTS1=<%= @bts1_ip_address %>
|
||||
<% end %>
|
||||
|
||||
<% if @bts2_ip_address %>
|
||||
BTS2=<%= @bts2_ip_address %>
|
||||
<% end %>
|
||||
|
||||
<% if @bts3_ip_address %>
|
||||
BTS3=<%= @bts3_ip_address %>
|
||||
<% end %>
|
||||
|
||||
<% if @bts4_ip_address %>
|
||||
BTS4=<%= @bts4_ip_address %>
|
||||
<% end %>
|
||||
|
||||
<% if @bts5_ip_address %>
|
||||
BTS5=<%= @bts5_ip_address %>
|
||||
<% end %>
|
||||
|
||||
<% if @bts6_ip_address %>
|
||||
BTS6=<%= @bts6_ip_address %>
|
||||
<% end %>
|
||||
|
||||
<% if @bts7_ip_address %>
|
||||
BTS7=<%= @bts7_ip_address %>
|
||||
<% end %>
|
||||
|
||||
<% if @bts8_ip_address %>
|
||||
BTS8=<%= @bts8_ip_address %>
|
||||
<% end %>
|
||||
|
||||
<% if @bts9_ip_address %>
|
||||
BTS9=<%= @bts9_ip_address %>
|
||||
<% end %>
|
||||
|
||||
<% if @bts10_ip_address %>
|
||||
BTS10=<%= @bts10_ip_address %>
|
||||
<% end %>
|
||||
|
||||
RECIPIENTS=<%= @mail_admins %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue