Hotspot Script Help

Hi

I have the Hotspot configured and running perfectly

But I have one issue. When I setup the Hotspot, I run the Hotspot Setup, looks like a wizard. It works great, but I want what is behind that wizard, I want to have a script with the commands line and just copy paste.

This is the Hotspot Setup

I already found many of the commands line for this hotspot setup:

ip pool add name=hs-pool1 ranges=192.168.1.1-192.168.1.239,192.168.1.241-192.168.1.254
ip hotspot profile add hotspot-address=192.168.1.240 use-radius=yes login-by=http-pap smtp-server=0.0.0.0 dns-name=hotspot
ip firewall nat add chain=srcnat action=masquerade out-interface=Hotspot
ip hotspot add interface=Hotspot address-pool=hs-pool1 profile=hsprof1
ip hotspot user add name=admin password=
ip hotspot enable hotspot1
ip dhcp-server add interface=Hotspot address-pool=hs-pool1
ip dhcp-server enable dhcp1

But something is missing, it does’t work

Someone can Help me?

/ip hotspot export