diff --git a/modules/rhizo_base/templates/rccn-functions.sh.erb b/modules/rhizo_base/templates/rccn-functions.sh.erb index 255ecf8..73df8f1 100644 --- a/modules/rhizo_base/templates/rccn-functions.sh.erb +++ b/modules/rhizo_base/templates/rccn-functions.sh.erb @@ -80,3 +80,9 @@ rk_imsi() { check_trx() { 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 -%>