From 8d5987a0786b6d5b970056fb7c6fb81142101bdd Mon Sep 17 00:00:00 2001 From: Keith Whyte Date: Wed, 22 Feb 2023 02:40:56 +0100 Subject: [PATCH] Add shell function to make manual handover triger a little easier --- modules/rhizo_base/templates/rccn-functions.sh.erb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/rhizo_base/templates/rccn-functions.sh.erb b/modules/rhizo_base/templates/rccn-functions.sh.erb index 52e4bc6..39e7918 100644 --- a/modules/rhizo_base/templates/rccn-functions.sh.erb +++ b/modules/rhizo_base/templates/rccn-functions.sh.erb @@ -219,6 +219,16 @@ op () { 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 () { if [ "$1" == "" ] ; then echo "BTS #?"