Hi Sukchan and list,
I was wondering if there was a way to create subscribers in the HSS from a script or from the command line and avoid/bypass all the node.js and npm "nightmare" (I know, it's a matter of taste, but to me it is). Particularly for automated tests, I wouldnt't want to write scripts against a web gui to create subscribers.
Also, for most operators (small or big), I guess they want to import a bulk CSV (or other format) file with key data. If there was a way to add subscribers from a script / command line, I could e.g. writea script to import the CSV for the sysmoUSIM/SJS1 easily.
Thanks for any assistance.
Hi Harald,
It is a good idea to provide these script. Let me start to survey node.js or python library.
Some time might be needed. I’ll support CSV. And also I’d like to support all possible subscriber info that nextepc test code used to.
Thanks for raising this issues.
Best Regards, Sukchan
2019. 7. 12. 오전 8:10, Harald Welte laforge@gnumonks.org 작성:
Hi Sukchan and list,
I was wondering if there was a way to create subscribers in the HSS from a script or from the command line and avoid/bypass all the node.js and npm "nightmare" (I know, it's a matter of taste, but to me it is). Particularly for automated tests, I wouldnt't want to write scripts against a web gui to create subscribers.
Also, for most operators (small or big), I guess they want to import a bulk CSV (or other format) file with key data. If there was a way to add subscribers from a script / command line, I could e.g. writea script to import the CSV for the sysmoUSIM/SJS1 easily.
Thanks for any assistance.
--
- Harald Welte laforge@gnumonks.org http://laforge.gnumonks.org/
============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6)
Hi!
it seems I found a way to do it: Insert a json document looking like the attachment using mongoimport like this:
mongoimport -d nextepc -c subscribers ./subscriber_imsi1.json
It may not be elegant, but it works for now, I'm getting a NAS AuthReq in response to an AttachReq in my test case now, after the subscriber was created with above command.