I sell hundreds of routers on a weekly basis. My idea is to host a genieacs server for my customers but only support routers that was purchased from me. I have a list of all the serial numbers for all my routers as well as routers that are on the way, so I can prepare the acs even before the stock lands.
Is there a way to setup the server to use the serial as username and password? My current auth is cwmp.auth = AUTH(“myusername”, “mypassword”) and that works when setting up the router with these credentials. I just need the username and password to be the serial number.
I also have a cwmp.auth.0 = AUTH(“myusername”, “mypassword”). The router connects with my username and password successfully. Once the connection happens, the inform script tells the router to use the serial number for both CPE > ACS and ACS > CPE to authenticate.
Then I have a cwmp.auth.1 = AUTH(“TheRouterSerialNumber”, “TheRouterSerialNumber”)
This works for me for now but I would prefer to use an EXT script to fetch the Serial from an external file rather than typing each router’s serial number for cwmp.auth.
I’m sure the above config is not even close to the way it should be. I consider myself well below a JavaScript noob. I’m just trying to figure it out as I go