How to create a second instance

hye,
I am new here can you help me to create service from GenieAcs to Cpe.
where i need to write that script and how that script work/communicate with my cpe.
i am able to do reset,reboot, upload config file etc.
but this is not able to do by me.
please help!

It may be that the parameter is reported as non-writable. Download the list of parameters as CSV to confirm. If writable is false then the workaround suggested by @akcoder is probably your only option here.

Hi Zaid,
on the CSV is shows like I posted on the answer 15, like this:


Nothing on the Writable option. Anyway with the @akcoder solution it’s working fine.

Thanks.

PD. Well I mean nothing when the info is loaded for the first time, if I reflesh the parameter at least twice then is shows writable true and it let my add the instance event without the workaround but I couldn’t achieve refleshing it by script.

Hi i have the same issue, creating a second wan this one works for me

   log('Creating WANPPPConnection (if necessary)');
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANPPPConnection.*", null, {path: 1});

log('Setting up WANPPPConnection');
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.*.*", {path: now}); //Refresh the node...

declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.*.Name", {value: now}, {value: "Internet"});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.*.ConnectionType", {value: now}, {value: "IP_Routed"});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.*.X_BROADCOM_COM_IfName", {value: now}, {value: "ppp0.1"});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.*.X_HW_IPv6Enable", {value: now}, {value: true});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.*.X_HW_IPv4Enable", {value: now}, {value: true});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.*.NATEnabled", {value: now}, {value: true});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.*.X_BROADCOM_COM_FirewallEnabled", {value: now}, {value: true});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.*.Enable", {value: now}, {value: true});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.*.X_HW_VLAN", null, {value: "100"});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.*.X_HW_SERVICELIST", null, {value: "VOIP_INTERNET"});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.*.Password", null,{value: serial.value[0]});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.*.Username", null,{value: serial.value[0]});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.*.X_HW_IPv6.IPv6Address.1.Origin", {value: now}, {value: "AutoConfigured"});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.*.X_HW_IPv6.IPv6Prefix.1.Origin", {value: now}, {value: "PrefixDelegation"});

and whn i try to use this one not work

declare(“InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection.1”, null, {path: 1});

declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection.1.Name",{value: now}, {value: "WAN_VOIP"});

declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection.1.Enable", {value: now}, {value: true});

declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection.1.ConnectionType", {value: now}, {value: "IP_Routed"});

declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection.1.NATEnabled", {value: now}, {value: true});

declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection.1.AddressingType", {value: now}, {value: "DHCP"});

declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection.1.X_HW_SERVICELIST", null, {value: "VOIP"});

declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection.1.X_HW_VLAN", null, {value: "150"});

declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection.1.X_HW_PRI",null, {value: "2"});

Hello, I see you doing this directly using these variables, but I can’t find it in my version and 1.2.5.

I can’t add any of that to the code.
these functions are in some shell file there in the terminal - I can’t create this at least it doesn’t work for me