29 lines
596 B
Bash
Executable File
29 lines
596 B
Bash
Executable File
#!/bin/bash
|
|
|
|
ip netns add ue1
|
|
|
|
#start oran ric
|
|
cd /opt/oran-sc-ric
|
|
docker compose up -d
|
|
|
|
#start srsRAN 4g
|
|
sleep 15
|
|
screen -dmS srsue srsue /opt/oran-sc-ric/e2-agents/srsRAN/ue_zmq.conf
|
|
|
|
# start gnb
|
|
cd /opt/srsRAN_Project/docker
|
|
docker compose up -d 5gc
|
|
cd ../build/apps/gnb
|
|
sleep 15
|
|
screen -dmS gnb ./gnb -c /opt/oran-sc-ric/e2-agents/srsRAN/gnb_zmq.yaml
|
|
|
|
#start ping
|
|
sleep 15
|
|
LC_ALL=C screen -dmS ping ip netns exec ue1 ping -i 0.1 10.45.1.1
|
|
|
|
#start xapp
|
|
sleep 15
|
|
cd /opt/oran-sc-ric
|
|
screen -S xapp docker compose exec python_xapp_runner ./simple_mon_xapp.py --metrics=DRB.UEThpDl,DRB.UEThpUl
|
|
|