Edit user_db.csv file

9 views
Skip to first unread message

praghur

unread,
May 28, 2024, 3:40:16 PMMay 28
to Powder Users
Hello all. 

I am new to POWDER platform. I am adding additional UEs and eNBs to srsLTE profile as shown in the profile - https://github.com/praghur/srsLTE_OG. I want to add these additional UEs to the user_db.csv file. However, when I open the user_db.csv file, I get a message that the file is read-only. 

I read on this forum for another question that "You cannot edit this file while `srsepc` is
running; it will update the file when it exits; this is a common source of problems. Please make sure to kill your running `srsepc`; add credentials; then restart.". Can somebody please help me understand how I can do this? When I set up the experiment, the node becomes ready for use and the file user_db.csv remains read-only. 

Thanks in advance for any suggestions. 


Kirk Webb

unread,
May 28, 2024, 3:58:27 PMMay 28
to powder...@googlegroups.com
Hello,

Try `sudo killall srsepc` on your EPC node, then make sure you add
`sudo` in front of the command you are using to edit the user_db.csv
file as doing so likely requires root privileges. You can use
`/local/repository/start_epc.sh` to start the EPC process again after
editing. I don't recall how the eNB processes react to the EPC going
down; you may have to restart those as well.

-Kirk
> --
> You received this message because you are subscribed to the Google Groups "Powder Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to powder-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/powder-users/3c493b4e-cd22-4d7c-a489-5cd8e73572aen%40googlegroups.com.

David M Johnson

unread,
May 28, 2024, 4:08:33 PMMay 28
to powder...@googlegroups.com
On 5/28/24 13:40, 'praghur' via Powder Users wrote:
> Hello all.

Hi Praghur,

> I am new to POWDER platform. I am adding additional UEs and eNBs to
> srsLTE profile as shown in the profile -
> https://github.com/praghur/srsLTE_OG. I want to add these additional UEs
> to the user_db.csv file. However, when I open the user_db.csv file, I
> get a message that the file is read-only.

Have you made sure to become `root` (e.g. by prefixing your edit command
with `sudo`)? You will need root permissions to edit this file.

David

> I read on this forum for another question that "You cannot edit this
> file while `srsepc` is
> running; it will update the file when it exits; this is a common
> source of problems. Please make sure to kill your running `srsepc`;
> add credentials; then restart.". Can somebody please help me understand
> how I can do this? When I set up the experiment, the node becomes ready
> for use and the file user_db.csv remains read-only.
>
> Thanks in advance for any suggestions.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Powder Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to powder-users...@googlegroups.com
> <mailto:powder-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/powder-users/3c493b4e-cd22-4d7c-a489-5cd8e73572aen%40googlegroups.com <https://groups.google.com/d/msgid/powder-users/3c493b4e-cd22-4d7c-a489-5cd8e73572aen%40googlegroups.com?utm_medium=email&utm_source=footer>.

Message has been deleted

praghur

unread,
Jun 4, 2024, 2:57:52 PMJun 4
to Powder Users
Thank you for your response. 

In the start.sh file, I added this for the 'epc' node to automate the user_db.csv file updating process.

if [ $NODE_ID = "epc" ]; then
    sudo killall srsepc
    chmod +x /etc/srslte/user_db.csv
    sudo echo "ue1,xor,001010123456789,00112233445566778899aabbccddeeff,opc,63bfa50ee6523365ff14c1f45f88737d,9001,000000001234,7,dynamic
    ue2,xor,001010123456790,00112233445566778899aabbccddeeee,opc,63bfa50ee6523365ff14c1f45f88737d,8000,000000001235,7,dynamic
    ue3,xor,001010123456791,00112233445566778899aabbccddffff,opc,63bfa50ee6523365ff14c1f45f88737d,7000,000000001236,7,dynamic" > /etc/srslte/user_db.csv
    echo "Text successfully written to user_db.csv"
    chmod +x /local/repository/start-epc.sh
    /local/repository/start-epc.sh


However, the file user_db.csv does not have this data. The user_db.csv file when viewed after running the start.sh is pasted below.                   
ue2,mil,001010123456780,00112233445566778899aabbccddeeff,opc,63bfa50ee6523365ff14c1f45f88737d,8000,000000001234,7,dynamic
ue1,xor,001010123456789,00112233445566778899aabbccddeeff,opc,63bfa50ee6523365ff14c1f45f88737d,9001,000000001234,7,dynamic


Is there a way I can automate the update of user_db.csv file when the node is set up? Can anyone help me see what am I missing here? Thanks in advance.  

Dustin Maas

unread,
Jun 4, 2024, 4:53:32 PMJun 4
to 'praghur' via Powder Users

Let me have a look at your experiment.

-Dustin

To unsubscribe from this group and stop receiving emails from it, send an email to powder-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/powder-users/321819cf-8c00-45c2-b68b-ef359464aa1dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages