shortcut functions for ssh to bts
This commit is contained in:
parent
3becae1f23
commit
72568990a0
1 changed files with 6 additions and 0 deletions
|
@ -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 -%>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue