Add BTS script for RT tx power control
This commit is contained in:
parent
54263dba7c
commit
d9fd3e5e6d
2 changed files with 18 additions and 2 deletions
|
@ -24,8 +24,8 @@ for bts in "${!BTS[@]}" ; do
|
||||||
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 osmo-bts_$bts.cfg root@${BTS[$bts]}:/etc/osmocom/osmo-bts-sysmo.cfg
|
scp $SSH_OPTS osmo-bts_$bts.cfg root@${BTS[$bts]}:/etc/osmocom/osmo-bts-sysmo.cfg
|
||||||
scp $SSH_OPTS pcu bts mgr root@${BTS[$bts]}:/bin/
|
scp $SSH_OPTS pcu bts mgr txp root@${BTS[$bts]}:/bin/
|
||||||
ssh $SSH_OPTS root@${BTS[$bts]} "chmod 750 /bin/pcu /bin/bts /bin/mgr"
|
ssh $SSH_OPTS root@${BTS[$bts]} "chmod 750 /bin/pcu /bin/bts /bin/mgr /bin/txp"
|
||||||
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
|
||||||
|
|
16
modules/rhizo_base/files/SysmoBTS/txp
Normal file
16
modules/rhizo_base/files/SysmoBTS/txp
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/usr/bin/expect -f
|
||||||
|
|
||||||
|
set pwr [lindex $argv 0]
|
||||||
|
set neg [lindex $argv 1]
|
||||||
|
if { $pwr == "" } { set pwr 24 }
|
||||||
|
if { $neg > 0 } { set neg "-" }
|
||||||
|
spawn telnet localhost 4241
|
||||||
|
expect ">"
|
||||||
|
send "enable\r"
|
||||||
|
expect "#"
|
||||||
|
|
||||||
|
send "trx 0 tx-power $neg$pwr\r"
|
||||||
|
expect "#"
|
||||||
|
|
||||||
|
send "exit\r"
|
||||||
|
expect "#"
|
Loading…
Add table
Add a link
Reference in a new issue