shortcut functions for ssh to bts

This commit is contained in:
Keith Whyte 2020-04-29 04:02:03 +02:00
parent 3becae1f23
commit 72568990a0

View file

@ -80,3 +80,9 @@ rk_imsi() {
check_trx() { check_trx() {
echo "show trx" | nc -q1 localhost 4242 | awk 'BEGIN { RS="TRX"; } /OK/ { print "BTS"$4" TRX"$1": OK"; }' echo "show trx" | nc -q1 localhost 4242 | awk 'BEGIN { RS="TRX"; } /OK/ { print "BTS"$4" TRX"$1": OK"; }'
} }
<% @bts.each_with_index do |bts, index| -%>
lc<%= index %>() {
ssh root@<%= bts["ip"] %>
}
<% end -%>