# Enabling pppoe I can't include the parameter!

**URL:** <https://forum.genieacs.com/t/enabling-pppoe-i-cant-include-the-parameter/5959>\
**Category:** Uncategorized\
**Created:** [September 16, 2024, 11:35am UTC](https://forum.genieacs.com/t/enabling-pppoe-i-cant-include-the-parameter/5959 "2024-09-16T11:35:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kim-Gambit](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@Kim-Gambit](https://forum.genieacs.com/u/Kim-Gambit)\
**Post date:** [September 16, 2024, 11:35am UTC](https://forum.genieacs.com/t/enabling-pppoe-i-cant-include-the-parameter/5959/1 "2024-09-16T11:35:46Z")

</div>

When I turn off the “Enable PPPoE” parameter, everything works, but when I try to turn it back on, an error comes out!  
the error itself  
faultCode: “9003”  
faultString: Invalid arguments  
setParameterValuesFault:

- parameterName: InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.Enable  
faultCode: “9005”  
faultString: Invalid parameter name

Here is my code!

- type: “‘tags’”
- type: “‘ping’”
- type: “‘parameter-list’”  
parameters:
  - element: “‘span.inform’”  
label: “‘Last inform’”  
parameter: DATE\_STRING(Events.Inform)  
type: “‘container’”  
components:
    - type: “‘parameter’”
    - chart: “‘online’”  
subtype: “‘overview-dot’”  
type: “‘chart’”
    - type: “‘summon-button’”  
parameters:
      - InternetGatewayDevice.DeviceInfo.HardwareVersion
      - InternetGatewayDevice.DeviceInfo.SoftwareVersion
      - InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.MACAddress
      - InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress
      - InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID
      - InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.KeyPassphrase
      - InternetGatewayDevice.LANDevice.1.Hosts.Host.1.HostName
      - InternetGatewayDevice.LANDevice.1.Hosts.Host.1.IPAddress
      - InternetGatewayDevice.LANDevice.1.Hosts.Host.1.MACAddress

  - label: “‘Serial number’”  
parameter: DeviceID.SerialNumber  
type: “‘parameter’”
  - label: “‘Product class’”  
parameter: DeviceID.ProductClass  
type: “‘parameter’”
  - label: “‘OUI’”  
parameter: DeviceID.OUI  
type: “‘parameter’”
  - label: “‘Manufacturer’”  
parameter: DeviceID.Manufacturer  
type: “‘parameter’”
  - label: “‘Hardware version’”  
parameter: InternetGatewayDevice.DeviceInfo.HardwareVersion  
type: “‘parameter’”
  - label: “‘Software version’”  
parameter: InternetGatewayDevice.DeviceInfo.SoftwareVersion  
type: “‘parameter’”
  - label: “‘MAC’”  
parameter: InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.MACAddress  
type: “‘parameter’”
  - label: “‘IP’”  
parameter: InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress  
type: “‘parameter’”
  - label: “‘Wi-Fi 2.4GHz SSID’”  
parameter: InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID  
type: “‘parameter’”
  - label: “‘Wi-Fi 2.4GHz Password’”  
parameter: InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.KeyPassphrase  
type: “‘parameter’”
  - label: “‘Wi-Fi 5GHz SSID’”  
parameter: InternetGatewayDevice.LANDevice.1.WLANConfiguration.2.SSID  
type: “‘parameter’”
  - label: “‘Wi-Fi 5GHz Password’”  
parameter: InternetGatewayDevice.LANDevice.1.WLANConfiguration.2.KeyPassphrase  
type: “‘parameter’”  
writable: true
  - label: “‘PPPoE Username’”  
parameter: InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.Username  
type: “‘parameter’”
  - label: “‘PPPoE Password’”  
parameter: InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.Password  
type: “‘parameter’”
  - label: “‘PPPoE Service Name’”  
parameter: InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.ServiceName  
type: “‘parameter’”
  - label: “‘Enable PPPoE’”  
parameter: InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.Enable  
type: “‘parameter’”  
writable: true
  - label: “‘Primary DNS’”  
parameter: InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.DNSServers.1  
type: “‘parameter’”
  - label: “‘Secondary DNS’”  
parameter: InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.DNSServers.2  
type: “‘parameter’”

- label: “‘LAN hosts’”  
parameter: InternetGatewayDevice.LANDevice.1.Hosts.Host  
type: “‘parameter-table’”  
childParameters:
  - label: “‘Host name’”  
parameter: HostName
  - label: “‘IP address’”  
parameter: IPAddress
  - label: “‘MAC address’”  
parameter: MACAddress

- element: “‘div’”  
type: “‘container’”  
components:
  - element: “‘h3’”  
type: “‘container’”  
components:
    - “‘Faults’”

  - type: “‘device-faults’”

- element: “‘div.container-full-width’”  
type: “‘container’”  
components:
  - element: “‘h3’”  
type: “‘container’”  
components:
    - “‘All parameters’”

  - type: “‘all-parameters’”

- type: “‘device-actions’”  
components:
  - action: “‘reboot’”  
label: “‘Restart Device’”  
type: “‘button’”
  - action: “‘reset’”  
label: “‘Factory Reset’”  
type: “‘button’”
  - action: “‘updateFirmware’”  
label: “‘Firmware Update’”  
type: “‘button’”

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [September 16, 2024, 4:13pm UTC](https://forum.genieacs.com/t/enabling-pppoe-i-cant-include-the-parameter/5959/2 "2024-09-16T16:13:36Z")

</div>

The yaml you pasted has no relation to the source of the fault. The yaml is used for building the UI parameters shown, not setting parameter values.

---

<div class="post-metadata">

**Author:** ![Kim-Gambit](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@Kim-Gambit](https://forum.genieacs.com/u/Kim-Gambit)\
**Post date:** [September 17, 2024, 4:17am UTC](https://forum.genieacs.com/t/enabling-pppoe-i-cant-include-the-parameter/5959/3 "2024-09-17T04:17:04Z")

</div>

// Device ID as user name  
const username = declare(“DeviceID.ID”, {value: 1}).value[0];

// Password will be fixed for a given device because Math.random() is seeded with device ID by default.  
const password = Math.trunc(Math.random() \* Number.MAX\_SAFE\_INTEGER).toString(36);

const informInterval = 300;

// Refresh values daily  
const daily = Date.now(86400000);

// Unique inform offset per device for better load distribution  
const informTime = daily % 86400000;

// Device management server settings  
declare(“InternetGatewayDevice.ManagementServer.ConnectionRequestUsername”, {value: daily}, {value: username});  
declare(“InternetGatewayDevice.ManagementServer.ConnectionRequestPassword”, {value: daily}, {value: password});  
declare(“InternetGatewayDevice.ManagementServer.PeriodicInformEnable”, {value: daily}, {value: true});  
declare(“InternetGatewayDevice.ManagementServer.PeriodicInformInterval”, {value: daily}, {value: informInterval});  
declare(“InternetGatewayDevice.ManagementServer.PeriodicInformTime”, {value: daily}, {value: informTime});

declare(“Device.ManagementServer.ConnectionRequestUsername”, {value: daily}, {value: username});  
declare(“Device.ManagementServer.ConnectionRequestPassword”, {value: daily}, {value: password});  
declare(“Device.ManagementServer.PeriodicInformEnable”, {value: daily}, {value: true});  
declare(“Device.ManagementServer.PeriodicInformInterval”, {value: daily}, {value: informInterval});  
declare(“Device.ManagementServer.PeriodicInformTime”, {value: daily}, {value: informTime});

// PPPoE settings  
declare(“InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.Username”, {value: daily}, {value: username});  
declare(“InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.Password”, {value: daily}, {value: password});  
declare(“InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ServiceName”, {value: daily}, {value: “MyServiceName”});  
declare(“InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.Enable”, {value: daily}, {value: true});
