# How to get values

**URL:** <https://forum.genieacs.com/t/how-to-get-values/3193>\
**Category:** Uncategorized\
**Created:** [November 14, 2022, 10:03pm UTC](https://forum.genieacs.com/t/how-to-get-values/3193 "2022-11-14T22:03:42Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![drh8ball](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@drh8ball](https://forum.genieacs.com/u/drh8ball)\
**Post date:** [November 14, 2022, 10:03pm UTC](https://forum.genieacs.com/t/how-to-get-values/3193/1 "2022-11-14T22:03:42Z")

</div>

Sorry for this stupid questions, but I don’t get it.

Where do I have to enter “InternetGatewayDevice.LANDevice.1.LANEthernetInterfaceConfig.1.Status”  
to get this information?

I promise, when I am ready I will do a how to for beginners.

---

<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:** [November 14, 2022, 10:57pm UTC](https://forum.genieacs.com/t/how-to-get-values/3193/2 "2022-11-14T22:57:45Z")

</div>

Are you wanting to read or write the value? Because [InternetGatewayDevice.LANDevice.{i}.LANEthernetInterfaceConfig.{i}.Status](https://cwmp-data-models.broadband-forum.org/tr-069-1-0-0.html#D.InternetGatewayDevice:1.InternetGatewayDevice.LANDevice.%7Bi%7D.LANEthernetInterfaceConfig.%7Bi%7D.Status) is not writable, per the specification.

---

<div class="post-metadata">

**Author:** ![drh8ball](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@drh8ball](https://forum.genieacs.com/u/drh8ball)\
**Post date:** [November 14, 2022, 11:20pm UTC](https://forum.genieacs.com/t/how-to-get-values/3193/3 "2022-11-14T23:20:41Z")

</div>

I want to read it.

---

<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:** [November 14, 2022, 11:56pm UTC](https://forum.genieacs.com/t/how-to-get-values/3193/4 "2022-11-14T23:56:23Z")

</div>

And how are you wanting to consume this information? In your own app? In the GenieACS GUI?

To pull the data into your own app [you will need to use the API](https://docs.genieacs.com/en/latest/api-reference.html).

---

<div class="post-metadata">

**Author:** ![drh8ball](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@drh8ball](https://forum.genieacs.com/u/drh8ball)\
**Post date:** [November 15, 2022, 12:14am UTC](https://forum.genieacs.com/t/how-to-get-values/3193/5 "2022-11-15T00:14:26Z")

</div>

I want it in the UI first.

---

<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:** [November 15, 2022, 12:41am UTC](https://forum.genieacs.com/t/how-to-get-values/3193/6 "2022-11-15T00:41:19Z")

</div>

> [@Headings in parameter-list](https://forum.genieacs.com/t/headings-in-parameter-list/1511):
>
> Hello, I am wondering if there is the ability in the current Node.JS-based GenieACS-UI to add headings into the parameter-list. Our parameter-list has a total of 20 parameters and so it would benefit from being able to subdivide it with headings. Is there any way to add headings like above “Hosts” and “Faults” tables, but in the main parameter-list instead?

> [@Show alternative parameters in index page](https://forum.genieacs.com/t/show-alternative-parameters-in-index-page/1947/2):
>
> label: “‘IP’” parameter: COALESCE(InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.ExternalIPAddress,InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress)

And these buttons on the Admin → Config page  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/7/79ad9fa37e946e5dd9181cb063edb088c30abd97.png)

---

<div class="post-metadata">

**Author:** ![drh8ball](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@drh8ball](https://forum.genieacs.com/u/drh8ball)\
**Post date:** [November 15, 2022, 2:19pm UTC](https://forum.genieacs.com/t/how-to-get-values/3193/7 "2022-11-15T14:19:49Z")

</div>

![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/a/aafac3607ca7fcb3db718903e14a2bd60e9488a0.png)  
I have the Headings now, with the following conf in indexpage

```auto
- label: "'Serial number'"
  parameter: DeviceID.SerialNumber
  type: "'device-link'"
  components:
    - type: "'parameter'"
- label: "'Product class'"
  parameter: DeviceID.ProductClass
- label: "'Software version'"
  parameter: InternetGatewayDevice.DeviceInfo.SoftwareVersion
- label: "'IP'"
  parameter: InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress
- label: "'SSID'"
  parameter: InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID
- element: "'span.inform'"
  label: "'Last inform'"
  parameter: DATE_STRING(Events.Inform)
  type: "'container'"
  components:
    - type: "'parameter'"
    - chart: "'online'"
      type: "'overview-dot'"
- label: "'Tags'"
  parameter: Tags
  type: "'tags'"
  unsortable: true
  writable: false
- label: "'Status LAN 1'"
  parameter: InternetGatewayDevice.X_00507F_Status.PortStatus.1.Status
- label: "'Status LAN 2'"
  parameter: InternetGatewayDevice.X_00507F_Status.PortStatus.2.Status

```

But it’s empty

Under Device Page I did this:

```auto
- 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'"
          type: "'overview-dot'"
        - type: "'summon-button'"
          parameters:
            - InternetGatewayDevice.DeviceInfo.HardwareVersion
            - InternetGatewayDevice.DeviceInfo.SoftwareVersion
            - InternetGatewayDevice.WANDevice.*.WANConnectionDevice.*.WANIPConnection.*.MACAddress
            - InternetGatewayDevice.WANDevice.*.WANConnectionDevice.*.WANIPConnection.*.ExternalIPAddress
            - InternetGatewayDevice.LANDevice.*.WLANConfiguration.*.SSID
            - InternetGatewayDevice.LANDevice.*.WLANConfiguration.*.KeyPassphrase
            - InternetGatewayDevice.LANDevice.*.Hosts.Host.*.HostName
            - InternetGatewayDevice.LANDevice.*.Hosts.Host.*.IPAddress
            - InternetGatewayDevice.LANDevice.*.Hosts.Host.*.MACAddress
            - InternetGatewayDevice.X_00507F_Status.PortStatus.1.Status
            - InternetGatewayDevice.X_00507F_Status.PortStatus.2.Status
    - label: "'Serial number'"
      parameter: DeviceID.SerialNumber
    - label: "'Product class'"
      parameter: DeviceID.ProductClass
    - label: "'OUI'"
      parameter: DeviceID.OUI
    - label: "'Manufacturer'"
      parameter: DeviceID.Manufacturer
    - label: "'Hardware version'"
      parameter: InternetGatewayDevice.DeviceInfo.HardwareVersion
    - label: "'Software version'"
      parameter: InternetGatewayDevice.DeviceInfo.SoftwareVersion
    - label: "'MAC'"
      parameter: InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.MACAddress
    - label: "'IP'"
      parameter: InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress
    - label: "'WLAN SSID'"
      parameter: InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID
    - label: "'WLAN passphrase'"
      parameter: InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.KeyPassphrase
    - label: "'Status LAN 1'"
      parameter: InternetGatewayDevice.X_00507F_Status.PortStatus.1.Status
    - label: "'Status LAN 2'"
      parameter: InternetGatewayDevice.X_00507F_Status.PortStatus.2.Status
- 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'"

```

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/0/0ed96a4f38b33c39d1a9926a0fbcb44a37cb0f6b.png)  
But it is also empty, and even not showing

---

<div class="post-metadata">

**Author:** ![drh8ball](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@drh8ball](https://forum.genieacs.com/u/drh8ball)\
**Post date:** [November 15, 2022, 7:26pm UTC](https://forum.genieacs.com/t/how-to-get-values/3193/8 "2022-11-15T19:26:38Z")

</div>

After I “forced to update” the values, I can see it in both positions.  
How to update this value automatically every minute?

---

<div class="post-metadata">

**Author:** ![drh8ball](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@drh8ball](https://forum.genieacs.com/u/drh8ball)\
**Post date:** [November 15, 2022, 8:08pm UTC](https://forum.genieacs.com/t/how-to-get-values/3193/9 "2022-11-15T20:08:56Z")

</div>

I don’t know if this is the way to go, but i managed it via cron and api

---

<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:** [November 15, 2022, 9:21pm UTC](https://forum.genieacs.com/t/how-to-get-values/3193/10 "2022-11-15T21:21:08Z")

</div>

First, you don’t want the values to update every minute. This puts a lot of load on both the CPE and the ACS.

Second, [refreshing values is covered in the documentation](http://docs.genieacs.com/en/latest/provisions.html). You should probably familiarize yourself with the documentation.

---

<div class="post-metadata">

**Author:** ![drh8ball](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@drh8ball](https://forum.genieacs.com/u/drh8ball)\
**Post date:** [November 15, 2022, 9:29pm UTC](https://forum.genieacs.com/t/how-to-get-values/3193/11 "2022-11-15T21:29:29Z")

</div>

It’s the only way on this device to get status if port is connected or not. Via SNMP I can get 5 status codes, no one is showing a connection or not.  
When I only ask the API to get status from this Port, it is also to heavy?

---

<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:** [November 15, 2022, 9:49pm UTC](https://forum.genieacs.com/t/how-to-get-values/3193/12 "2022-11-15T21:49:43Z")

</div>

One request in and of itself isn’t heavy. But you have to consider what your other provision scripts are doing. Each 6 CONNECTION REQUEST will cause GenieACS to run through all the applicable provision scripts. This in and of itself isn’t that heavy given all the caching and optimization in GenieACS. But when you have thousands of CPEs this will contribute to significant load on your ACS.

---

<div class="post-metadata">

**Author:** ![drh8ball](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@drh8ball](https://forum.genieacs.com/u/drh8ball)\
**Post date:** [November 15, 2022, 10:23pm UTC](https://forum.genieacs.com/t/how-to-get-values/3193/13 "2022-11-15T22:23:26Z")

</div>

Is there a way to send the request directly to the cpe? I think so, but I cant get the way how.  
I only know [http://vigor:vigor@192.168.2.1:8069/cwm/CRN.html](http://vigor:vigor@192.168.2.1:8069/cwm/CRN.html).
