install_oran-sc-ric/run

29 lines
618 B
Plaintext
Raw Normal View History

2024-04-18 15:05:45 +02:00
#!/bin/bash
ip netns add ue1
2024-04-18 15:05:45 +02:00
#start oran ric
cd /opt/oran-sc-ric
docker compose up -d
2024-04-25 14:58:07 +02:00
#start srsRAN 4g
sleep 15
2024-04-25 14:58:07 +02:00
screen -dmS srsue srsue /opt/oran-sc-ric/e2-agents/srsRAN/ue_zmq.conf
2024-04-18 15:05:45 +02:00
# start gnb
2024-04-18 15:11:36 +02:00
cd /opt/srsRAN_Project/docker
2024-04-18 15:16:56 +02:00
docker compose up -d 5gc
2024-04-18 15:11:36 +02:00
cd ../build/apps/gnb
2024-04-25 15:25:36 +02:00
sleep 15
screen -dmS gnb ./gnb -c /opt/oran-sc-ric/e2-agents/srsRAN/gnb_zmq.yaml
2024-04-18 15:05:45 +02:00
2024-04-18 15:23:56 +02:00
#start ping
sleep 15
2024-04-29 12:05:09 +02:00
screen -dmS ping ping ip netns exec ue1 ping -i $(LC_ALL=C printf "%.1f" 0.1) 10.45.1.1
2024-04-18 15:23:56 +02:00
2024-04-18 15:05:45 +02:00
#start xapp
sleep 15
2024-04-18 15:19:54 +02:00
cd /opt/oran-sc-ric
2024-04-18 15:05:45 +02:00
screen -S xapp docker compose exec python_xapp_runner ./simple_mon_xapp.py --metrics=DRB.UEThpDl,DRB.UEThpUl