# Connected Devices don't go away

**URL:** <https://forum.genieacs.com/t/connected-devices-dont-go-away/2237>\
**Category:** Uncategorized\
**Created:** [December 13, 2021, 2:11pm UTC](https://forum.genieacs.com/t/connected-devices-dont-go-away/2237 "2021-12-13T14:11:16Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![rhuanyago](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/rhuanyago/32/425_2.png) [@rhuanyago](https://forum.genieacs.com/u/rhuanyago)\
**Post date:** [December 13, 2021, 2:11pm UTC](https://forum.genieacs.com/t/connected-devices-dont-go-away/2237/1 "2021-12-13T14:11:16Z")

</div>

Good morning, I have a question, I remember that when disconnecting a device it disappeared from GenieACS in the InternetGatewayDevice.LANDevice.1.Hosts.Host.1.\* parameter, so even when disconnecting the WiFi Device or Disconnecting from the Cable, the devices are still there and never disappear. Even reloading the entire Host parameter, or one by one they keep it there. Would anyone know somehow? I’ve already changed the DHCP Release Time of the router but still I couldn’t get something.

I appreciate if anyone can help.

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/1X/0571f990965e411c74e8ef845d70164548f8d965.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:** [December 13, 2021, 5:43pm UTC](https://forum.genieacs.com/t/connected-devices-dont-go-away/2237/2 "2021-12-13T17:43:57Z")

</div>

Those values come from the CPE itself. You could use this parameter to determine if the host is still active. [InternetGatewayDevice.LANDevice.{i}.Hosts.Host.{i}.Active](https://cwmp-data-models.broadband-forum.org/tr-098-1-8-0.html#D.InternetGatewayDevice:1.InternetGatewayDevice.LANDevice.%7Bi%7D.Hosts.Host.%7Bi%7D.Active)

> Whether or not the host is currently present on the LAN. The method of presence detection is a local matter to the CPE.
> 
> The ability to list inactive hosts is OPTIONAL. If the CPE includes inactive hosts in this table, this variable MUST be set to _false_ for each inactive host. **The length of time an inactive host remains listed in this table is a local matter to the CPE**.

---

<div class="post-metadata">

**Author:** ![rhuanyago](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/rhuanyago/32/425_2.png) [@rhuanyago](https://forum.genieacs.com/u/rhuanyago)\
**Post date:** [December 15, 2021, 11:52am UTC](https://forum.genieacs.com/t/connected-devices-dont-go-away/2237/3 "2021-12-15T11:52:46Z")

</div>

Yes, I had already noticed this from Active, but there are routers that do not have this parameter and they are listed and never disappear.

---

<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 15, 2021, 6:13pm UTC](https://forum.genieacs.com/t/connected-devices-dont-go-away/2237/4 "2021-12-15T18:13:10Z")

</div>

There is nothing you can do, short of your own filtering of the Hosts table before you display 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:** [December 22, 2021, 2:16pm UTC](https://forum.genieacs.com/t/connected-devices-dont-go-away/2237/5 "2021-12-22T14:16:37Z")

</div>

Hi, you could make a provision to remove them at each boot but you will hit the commit iteration limit if the number is high.

---

<div class="post-metadata">

**Author:** ![rhuanyago](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/rhuanyago/32/425_2.png) [@rhuanyago](https://forum.genieacs.com/u/rhuanyago)\
**Post date:** [January 19, 2022, 11:37am UTC](https://forum.genieacs.com/t/connected-devices-dont-go-away/2237/6 "2022-01-19T11:37:48Z")

</div>

Wonderful, could you explain me better how this provision would be?

---

<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:** [January 19, 2022, 3:03pm UTC](https://forum.genieacs.com/t/connected-devices-dont-go-away/2237/7 "2022-01-19T15:03:04Z")

</div>

Hi,  
something like:

```auto
declare('InternetGatewayDevice.LANDevice.1.Hosts.Host.*', {path: Date.now()}, {path: 0});

```

but it’s important to have this provision run only at 1 BOOT event. Probably would be best to remove just the inactive ones or only part of them.

---

<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:** [January 19, 2022, 8:01pm UTC](https://forum.genieacs.com/t/connected-devices-dont-go-away/2237/8 "2022-01-19T20:01:38Z")

</div>

The hosts table is not writable, so you cannot do any filtering/removal/editing of entries in GenieACS. Filtering needs to be done on the client side.

[InternetGatewayDevice.LANDevice.{i}.Hosts.](https://cwmp-data-models.broadband-forum.org/tr-069-1-0-0.html#D.InternetGatewayDevice:1.InternetGatewayDevice.LANDevice.%7Bi%7D.Hosts.Host.%7Bi%7D.)

---

<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:** [January 20, 2022, 7:15am UTC](https://forum.genieacs.com/t/connected-devices-dont-go-away/2237/9 "2022-01-20T07:15:32Z")

</div>

You are right, even though the devices I have are returning the nodes as writable, which in theory would mean I can delete or add them, any attempt to do this returns a CWMP fault error. I looked up in the backups for the provisioning script I remembered I had and it was a different table for hosts where this was allowed … but only a few of the device models have this:

```auto
declare("InternetGatewayDevice.LANDevice.1.X_HW_UserDev.[DevStatus:Offline]", null, {path: 0});

```

sorry for misleading 🙁
