Add shell function to make manual handover triger a little easier
This commit is contained in:
parent
d3636dd4fd
commit
8d5987a078
1 changed files with 10 additions and 0 deletions
|
@ -219,6 +219,16 @@ op () {
|
||||||
ps awxf | grep [o]smo\-
|
ps awxf | grep [o]smo\-
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ho () {
|
||||||
|
if [ $# -lt 5 ] ; then
|
||||||
|
echo "BTS TRX TS SS BTS"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
expect -c 'set bts '$1'; set trx '$2'; set ts '$3'; set ss '$4'; set dst '$5'; spawn telnet localhost 4242; expect ">"; send "enable\r"; expect "#";
|
||||||
|
send "bts $bts trx $trx timeslot $ts sub-slot $ss handover $dst\r"; expect "#";
|
||||||
|
send "exit\r"; expect "#";';
|
||||||
|
}
|
||||||
|
|
||||||
lock () {
|
lock () {
|
||||||
if [ "$1" == "" ] ; then
|
if [ "$1" == "" ] ; then
|
||||||
echo "BTS #?"
|
echo "BTS #?"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue