Hello Community! Autoconfiguration

I want change some parameters automaticly when router boot. i want config wifi SSD or password or VLAN when router boot. can anyone tell me how i can send parameters? anyone can share script and where i can put scripts?

Firstly, you will need to know your device’s path to set the SSID and Password.
Next you could create a Provision script like:

const now = Date.now();
let ssid = “Your SSID here”;

declare(“InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID”, {value: now], {value: ssid});

Then create a Preset with the Event set to: 1 BOOT

Hope this helps.

To add to what @dustin said. If you want to retrieve the wifi ssid/passphrase/vlan/etc from an external system, you will need to use an extension script. Please refer to docs.genieacs.com for more info.

hi! thanks a lot for answear. i dont understend this part : “Then create a Preset with the Event set to: 1 BOOT”

Not working

You need to change the events field to “1 BOOT” without the quotes.

Dustin Ramdeen
Solutions Architect, TSTT

1 Like

Thank you very much <3

if you know, can i send autoconfig only first boot, not reboot. only one time autoconfig.

Change event code to “0 BOOTSTRAP”
See attached for other codes.

1 Like