Provision script to configure CPE based on MAC

Hi guys how are you?
I am very new to GenieACS, and find it very nice. I will use it to run test on our own CPE brand and help R&D develop new TR nodes.
I have many questions, but will start with just a couple now jeje:
1.- If I want that some parameters of a CPE be configured base on their MAC for customization (such as SSID and wifi password, pppoe username/password), I need to use API right? Since every provisioning script will try to configure all CPE the same way…unless I put a precondition for each CPE which will not be practical.
2.- running API commands, can be run directly from GenieACS server prompt? Or I need to enter somehow into MongoDB

Later will have more questions for this lovely community!
Thanks in advance!!!

Please see this wiki entry which describes how to customize params on a per-subscriber bases.

Hi akcoder, will check that out !! Thanks !