Comando ou Script para ativar campo "Trial"

Hello friends of the community, I’m a beginner here and I would like to ask for some help!

I would like to create or see what command I could execute to activate and deactivate the “Trial” field in:

IP - Hotspot - Server Profiles - (server name) - login tab - “TRIAL”

How can I create a command for me to execute via terminal or script to ACTIVATE and DISABLE this option?

Imagem1.png

Is not one “flag” on or off.
Is one array where trial is present or not…

If you’re not familiar with scripting, better leave it alone.
foreach item on array,
copy the value in new array except if is “trial” and must removed,
if trial must be added,
if trial is not already present, add trial at the end

Hello my friends!

It’s resolved!!

I was able to create the command to “Enable” and “Disable” = IP HOTSPOT PROFILE = TRIAL.

If anyone needs it, just run and test:

COMMAND TO ACTIVATE:

ip hotspot profile set [find name=test] login-by=http-chap,mac-cookie,trial

COMMAND TO DISABLE:

ip hotspot profile set [find name=test] login-by=http-chap,mac-cookie


THANKSSS!!! :wink: