# Push PPPOE from the server

**URL:** <https://forum.genieacs.com/t/push-pppoe-from-the-server/980>\
**Category:** Uncategorized\
**Created:** [August 26, 2020, 10:53am UTC](https://forum.genieacs.com/t/push-pppoe-from-the-server/980 "2020-08-26T10:53:08Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![snuz](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@snuz](https://forum.genieacs.com/u/snuz)\
**Post date:** [August 26, 2020, 10:53am UTC](https://forum.genieacs.com/t/push-pppoe-from-the-server/980/1 "2020-08-26T10:53:09Z")

</div>

Hello, I don’t know very well TR069 and genieacs. I am new in this work…

I have to make the CPE contact the genieacs server and the server has to push the pppoe

Could you help me?  
You would be very kind, thanks

---

<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:** [August 26, 2020, 8:39pm UTC](https://forum.genieacs.com/t/push-pppoe-from-the-server/980/2 "2020-08-26T20:39:55Z")

</div>

This has been answered several times on this forum. Please use the search feature.

---

<div class="post-metadata">

**Author:** ![snuz](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@snuz](https://forum.genieacs.com/u/snuz)\
**Post date:** [August 27, 2020, 7:16am UTC](https://forum.genieacs.com/t/push-pppoe-from-the-server/980/3 "2020-08-27T07:16:12Z")

</div>

Hi,  
Thank you for your reply.

The problem is that nothing is logged like serial number, ip, etc!  
[Schermata del 2020-08-27 09-13-17|690x321](https://forum.genieacs.com/uploads/short-url/3cHkb0jcrboCymbqSYKct8Fwflx.png)

---

<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:** [August 27, 2020, 3:29pm UTC](https://forum.genieacs.com/t/push-pppoe-from-the-server/980/4 "2020-08-27T15:29:18Z")

</div>

That could be a problem. You will need to enable debug logging and look at the data being sent by the CPE to the ACS.

---

<div class="post-metadata">

**Author:** ![snuz](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@snuz](https://forum.genieacs.com/u/snuz)\
**Post date:** [August 27, 2020, 3:52pm UTC](https://forum.genieacs.com/t/push-pppoe-from-the-server/980/5 "2020-08-27T15:52:19Z")

</div>

This is what I see

2020-08-27T15:51:14.087Z [INFO] x.x.x.x Device: Inform; cpeRequestId=“52” informEvent=“2 PERIODIC” informRetryCount=0  
2020-08-27T15:51:14.117Z [INFO] x.x.x.x Device: ACS request; acsRequestId=“174309dada30100” acsRequestName=“GetParameterNames”

Was that what you meant for debug logging?

---

<div class="post-metadata">

**Author:** ![snuz](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@snuz](https://forum.genieacs.com/u/snuz)\
**Post date:** [August 27, 2020, 4:02pm UTC](https://forum.genieacs.com/t/push-pppoe-from-the-server/980/6 "2020-08-27T16:02:35Z")

</div>

I also see this if I run this command:

root@genieacs-gui/genieacs/bin# genieacs-cwmp  
2020-08-27T15:19:50.524Z [INFO] GenieACS (genieacs-cwmp) starting; pid=24413 version=“1.1.3” dependencies=“node@8.17.0,later@1.2.0,libxmljs@0.18.8,mongodb@2.2.36,redis@2.8.0,seedrandom@2.4.4” config=""  
2020-08-27T15:19:50.909Z [ERROR] Uncaught exception; pid=24434 exceptionName=“Error” exceptionMessage=“bind EADDRINUSE 0.0.0.0:7547” exceptionStack=“Error: bind EADDRINUSE 0.0.0.0:7547\n at listenOnMasterHandle (net.js:1420:16)\n at rr (internal/cluster/child.js:121:12)\n at Worker.send (internal/cluster/child.js:88:7)\n at process.onInternalMessage (internal/cluster/utils.js:42:8)\n at emitTwo (events.js:131:20)\n at process.emit (events.js:214:7)\n at emit (internal/child\_process.js:762:12)\n at \_combinedTickCallback (internal/process/next\_tick.js:142:11)\n at process.\_tickCallback (internal/process/next\_tick.js:181:9)”

---

<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:** [August 27, 2020, 4:15pm UTC](https://forum.genieacs.com/t/push-pppoe-from-the-server/980/7 "2020-08-27T16:15:55Z")

</div>

[http://docs.genieacs.com/en/latest/environment-variables.html](http://docs.genieacs.com/en/latest/environment-variables.html)

---

<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:** [August 27, 2020, 4:16pm UTC](https://forum.genieacs.com/t/push-pppoe-from-the-server/980/8 "2020-08-27T16:16:16Z")

</div>

You cannot run multiple instances of the CWMP process bound to the same IP and port.

---

<div class="post-metadata">

**Author:** ![snuz](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@snuz](https://forum.genieacs.com/u/snuz)\
**Post date:** [August 28, 2020, 10:22am UTC](https://forum.genieacs.com/t/push-pppoe-from-the-server/980/9 "2020-08-28T10:22:27Z")

</div>

I have tried this scipt that I found in the old answer  
let username = “”;  
if (“value” in args[1]) {  
// Set declared value  
username = args[1].value;  
declare(“InternetGatewayDevice.WANDevice._.WANConnectionDevice._.WANPPPConnection._.Username", null, {value: username});  
} else {  
let igd = declare("InternetGatewayDevice.WANDevice._.WANConnectionDevice._.WANPPPConnection._.Username”, {value: 1});

```
if (igd.size) {
    for (let p of igd) {
        if (p.value[0]) {
            username = p.value[0];
            break;
        }
    }
}

```

}  
return {writable: true, value: [username, “xsd:string”]};

But the problem is: script.TypeError Cannot use ‘in’ operator to search for ‘value’ in undefined

---

<div class="post-metadata">

**Author:** ![snuz](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@snuz](https://forum.genieacs.com/u/snuz)\
**Post date:** [August 28, 2020, 4:02pm UTC](https://forum.genieacs.com/t/push-pppoe-from-the-server/980/10 "2020-08-28T16:02:32Z")

</div>

Where is the mistake? Sorry but I don’t know JS

---

<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:** [August 28, 2020, 4:49pm UTC](https://forum.genieacs.com/t/push-pppoe-from-the-server/980/11 "2020-08-28T16:49:00Z")

</div>

You may want to engage the services of a developer to help you. I, and others on this forum are willing to provide assistance, but writing complete code is outside the realm of what I’m willing to do.

I know @zaidka also sells support services, it may be best to engage with him on that.

---

<div class="post-metadata">

**Author:** ![snuz](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@snuz](https://forum.genieacs.com/u/snuz)\
**Post date:** [August 31, 2020, 7:24am UTC](https://forum.genieacs.com/t/push-pppoe-from-the-server/980/12 "2020-08-31T07:24:42Z")

</div>

But I only asked why the operator “in” doesn’t work, someone can help me?

---

<div class="post-metadata">

**Author:** ![lavira](https://avatars.discourse-cdn.com/v4/letter/l/87869e/32.png) [@lavira](https://forum.genieacs.com/u/lavira)\
**Post date:** [August 31, 2020, 7:52am UTC](https://forum.genieacs.com/t/push-pppoe-from-the-server/980/13 "2020-08-31T07:52:42Z")

</div>

because you don’t pass the args needed for the script to work, leading to the use of “in” on a undefined variable.

```auto
> let x=undefined
undefined
> if ("value" in x) { console.log("true"); }
Uncaught TypeError: Cannot use 'in' operator to search for 'value' in undefined
> x={"value":1,"some_other_value":2}
{ value: 1, some_other_value: 2 }
> if ("value" in x) { console.log("true"); }
true

```

---

<div class="post-metadata">

**Author:** ![snuz](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@snuz](https://forum.genieacs.com/u/snuz)\
**Post date:** [August 31, 2020, 8:27am UTC](https://forum.genieacs.com/t/push-pppoe-from-the-server/980/14 "2020-08-31T08:27:51Z")

</div>

Thank you for your reply!

Therefore by default args [1] is set “undefined”, which value should I assign it?

---

<div class="post-metadata">

**Author:** ![lavira](https://avatars.discourse-cdn.com/v4/letter/l/87869e/32.png) [@lavira](https://forum.genieacs.com/u/lavira)\
**Post date:** [August 31, 2020, 9:08am UTC](https://forum.genieacs.com/t/push-pppoe-from-the-server/980/15 "2020-08-31T09:08:35Z")

</div>

You don’t need to assign it … args is a variable that holds the arguments passed to the provisioning script or the timestamps, current value and requested value for virtual parameters.

From the code, I think you use this as a Virtual parameter, and this should fix the code:

```auto
if (typeof(args[1])=='object' && 'value' in args[1]) {

```

but the main conclusion is that you need to learn some javascript and be commited to read the [documentation](http://docs.genieacs.com/) in order to use genieacs properly in production … otherwise I advise you to request [commercial support](https://genieacs.com/support/)

---

<div class="post-metadata">

**Author:** ![snuz](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@snuz](https://forum.genieacs.com/u/snuz)\
**Post date:** [August 31, 2020, 9:15am UTC](https://forum.genieacs.com/t/push-pppoe-from-the-server/980/16 "2020-08-31T09:15:03Z")

</div>

yes I know…Thank you all for the support!

Kind regards

---

<div class="post-metadata">

**Author:** ![kpuri1606](https://avatars.discourse-cdn.com/v4/letter/k/5e9695/32.png) [@kpuri1606](https://forum.genieacs.com/u/kpuri1606)\
**Post date:** [December 12, 2022, 9:25am UTC](https://forum.genieacs.com/t/push-pppoe-from-the-server/980/17 "2022-12-12T09:25:21Z")

</div>

Hello. I have been trying to check the steps to push PPPOE from ACS to CPE. From your last comment, it seems like thi question have already been answered. However, i am not able to find any in the forum. It might be my search criteria keywords are not good enough.

Would you be able to send me a link ?

Thanks in advance !!

---

<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:** [December 12, 2022, 6:33pm UTC](https://forum.genieacs.com/t/push-pppoe-from-the-server/980/18 "2022-12-12T18:33:25Z")

</div>

Necromancy is frowned upon. Please create your own thread.
