Commit c51aff11 authored by Binh Nguyen's avatar Binh Nguyen

Restart penb

parent 1f305970
#!/bin/bash
ps fax | grep "lte"| awk '{}{print $0; system("kill -9 " $1);}'
......@@ -12,7 +12,7 @@ ssh -o StrictHostKeyChecking=no sgw.$domain -t -t "cd $EPC; sudo $EPC/start_mme.
echo mme.flush | nc -q 1 -u 192.168.254.80 10000
i=1
for e in enb2 enb3
for e in enb2
do
let enb_offset=90+$i
ssh -o StrictHostKeyChecking=no $e.$domain -t -t "cd $EPC; sudo $EPC/start_enb.sh; echo enodeb.flush | nc -q 1 -u 192.168.254.$enb_offset 10000" || {
......@@ -22,7 +22,7 @@ do
let i+=1
done
#Local client
#Emualted client
ssh -o StrictHostKeyChecking=no client1.$domain -t -t "cd $EPC; sudo $EPC/start_mm.sh" || {
echo "Could not restart mm client $client!"
exit 1
......@@ -30,13 +30,11 @@ ssh -o StrictHostKeyChecking=no client1.$domain -t -t "cd $EPC; sudo $EPC/start_
#Restart client manually, need to enable this later
#for client in client1
#do
# ssh -o StrictHostKeyChecking=no $client.$domain "sudo /proj/PhantomNet/binh/openepc-att-demo/code/script/start.sh mm /opt/OpenEPC/etc/mm.xml" || {
# echo "Could not restart mm client $client!"
# exit 1
# }
#done
#Restart OAI enodeb
ssh -o StrictHostKeyChecking=no penb1.$domain "sudo $EPC/penb.kill.sh; /usr/local/src/airinterface/openairinterface5g/SCRIPTS/run_lte_soft_modem.sh" || {
echo "Could not restart OAI eNodeB!"
exit 1
}
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment