Add some scripts to the bts
Also, allocate a tty when ssh to the BTS
This commit is contained in:
parent
b1f8621aff
commit
ea3e00ee8e
4 changed files with 3 additions and 1 deletions
0
modules/rhizo_base/files/var/SysmoBTS/bts
Executable file → Normal file
0
modules/rhizo_base/files/var/SysmoBTS/bts
Executable file → Normal file
0
modules/rhizo_base/files/var/SysmoBTS/pcu
Executable file → Normal file
0
modules/rhizo_base/files/var/SysmoBTS/pcu
Executable file → Normal file
|
@ -18,6 +18,8 @@ for bts in "${!BTS[@]}" ; do
|
||||||
ssh $SSH_OPTS root@${BTS[$bts]} "date -s '$(date)'"
|
ssh $SSH_OPTS root@${BTS[$bts]} "date -s '$(date)'"
|
||||||
ssh $SSH_OPTS root@${BTS[$bts]} "echo nameserver 1.1.1.1 > /etc/resolv.conf; echo nameserver 9.9.9.9 >> /etc/resolv.conf"
|
ssh $SSH_OPTS root@${BTS[$bts]} "echo nameserver 1.1.1.1 > /etc/resolv.conf; echo nameserver 9.9.9.9 >> /etc/resolv.conf"
|
||||||
scp $SSH_OPTS osmo-pcu.cfg root@${BTS[$bts]}:/etc/osmocom/osmo-pcu.cfg
|
scp $SSH_OPTS osmo-pcu.cfg root@${BTS[$bts]}:/etc/osmocom/osmo-pcu.cfg
|
||||||
|
scp $SSH_OPTS pcu bts root@${BTS[$bts]}:/bin/
|
||||||
|
ssh $SSH_OPTS root@${BTS[$bts]} "chmod 750 /bin/pcu /bin/bts"
|
||||||
ssh $SSH_OPTS root@${BTS[$bts]} "expect -v 2>/dev/null"
|
ssh $SSH_OPTS root@${BTS[$bts]} "expect -v 2>/dev/null"
|
||||||
|
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
|
|
|
@ -83,7 +83,7 @@ check_trx() {
|
||||||
|
|
||||||
<% @bts.each_with_index do |bts, index| -%>
|
<% @bts.each_with_index do |bts, index| -%>
|
||||||
b<%= index %>() {
|
b<%= index %>() {
|
||||||
ssh -o StrictHostKeyChecking=no <%= @bts_user[bts["model"]] %>@<%= bts["ip"] %> $*
|
ssh -t -o StrictHostKeyChecking=no <%= @bts_user[bts["model"]] %>@<%= bts["ip"] %> $*
|
||||||
}
|
}
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue